# progress()

> The `progress()` CSS function returns the position of a value between two other values as a number from 0 to 1.

## What does the progress() function do in CSS?

The function that calculates where a value lies between a start and an end value, returning a number from '0' to '1'. Useful for fluid typography and smooth interpolation of properties depending on viewport or container size.

- Topic: Mathematics
- Type: function
- Browser support: Chrome 138+, Chrome Android 138+, Edge 138+, Firefox 155+, Firefox Android 155+, Safari 26+, Safari iOS 26+

## Example

Wrong:

```css
.title {
  opacity: calc((100cqw - 300px) / 300px);
}
```

Right:

```css
.title {
  opacity: progress(100cqw, 300px, 600px);
}
```

`progress()` returns the position of the container width between '300px' and '600px' as a number, which works directly as opacity.

## Common mistakes

- Expecting a length back, while `progress()` returns a plain number.

## Key points

- Arguments go in order: value, start, end, all in compatible units.
- The number result is multiplied by a unit inside `calc()` where a length is needed.
- A fallback value is declared first where `progress()` is unsupported.

## Interview questions

### What does progress() return?

A plain number that shows where the value lies between the start and end, with 0 at the start and 1 at the end.

### How is progress() different from clamp()?

`clamp()` limits a value to a range. `progress()` tells where a value sits inside a range, as a number.

## Related cards

- [calc()](https://wonderium.dev/css/calc.md)
- [clamp()](https://wonderium.dev/css/clamp.md)
- [Container Query Units](https://wonderium.dev/css/container-query-units.md)
- [sign()](https://wonderium.dev/css/sign.md)
- [opacity()](https://wonderium.dev/css/opacity.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/progress
- Last updated: 2026-11-25
