---
source: https://iinventedlight.com/library/notes/css-min-max-clamp.md
title: "CSS min, max, and clamp: pick a value from a range"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, CSS min(), max(), and clamp(); web.dev, Functions. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: css-min-max-clamp"
tags: [css, min, max, clamp, responsive, typography]
client: Librarian
sources:
  - id: S1
    title: "CSS min(), max(), and clamp()"
    publisher: web.dev
    url: https://web.dev/articles/min-max-clamp
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "Functions"
    publisher: web.dev
    url: https://web.dev/learn/css/functions
    accessed: 2026-11-23
    license: "CC-BY-4.0"
---
# CSS min, max, and clamp: pick a value from a range
**Answer:** You can use min, max, and clamp to control element sizing and create fluid typography.

## Where they apply

Authors use them for element sizing, spacing, and fluid typography.

For min and max, you pass a list and the browser picks the smallest or largest.

clamp takes a minimum value, an ideal value, and a maximum value.

## What each function returns

min returns the smallest computed value among the arguments you pass.

max does the opposite and yields the largest of those arguments.

clamp takes a minimum size, an ideal size, and a maximum.

## See also

- [css-media-queries](https://iinventedlight.com/library/notes/css-media-queries/)
- [css-container-queries](https://iinventedlight.com/library/notes/css-container-queries/)
- [css-layout](https://iinventedlight.com/library/notes/css-layout/)

## Claims

- id: C1
  claim: These functions help with sizing, spacing, and fluid typography.
  source: S1
  evidence: "maintain spacing between elements, and create flexible and fluid typography"

- id: C2
  claim: clamp takes a minimum, an ideal, and a maximum.
  source: S1
  evidence: "a minimum value, an ideal value to calculate from, and a maximum value"

- id: C3
  claim: min returns the smallest computed value of its arguments.
  source: S2
  evidence: "smallest computed value of the one or more passed arguments"

- id: C4
  claim: clamp takes a minimum size, an ideal size, and a maximum.
  source: S2
  evidence: "three arguments: the minimum size, the ideal size and the maximum"

## Sources

- [S1] CSS min(), max(), and clamp(). web.dev. https://web.dev/articles/min-max-clamp . License: CC-BY-4.0. Accessed 2026-11-23.

- [S2] Functions. web.dev. https://web.dev/learn/css/functions . License: CC-BY-4.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, CSS min(), max(), and clamp(); web.dev, Functions. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
