# max() Function & Examples

Use the max() statistics function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## max

#### max(a, b, c, ...)

#### max(A)

#### max(A, dimension)

Try it yourself:

```calculio
max(2, 3, 4, 1)
max([2, 3, 4, 1])
max([2, 5; 4, 3])
max([2, 5; 4, 3], 1)
max([2, 5; 4, 3], 2)
max(2.7, 7.1, -4.5, 2.0, 4.1)
min(2.7, 7.1, -4.5, 2.0, 4.1)
```

[mean](https://calcul.io/function/mean/index.md)

[median](https://calcul.io/function/median/index.md)

[min](https://calcul.io/function/min/index.md)

[prod](https://calcul.io/function/prod/index.md)

[std](https://calcul.io/function/std/index.md)

[sum](https://calcul.io/function/sum/index.md)

[variance](https://calcul.io/function/variance/index.md)

---

## Find the largest value with max

**max** returns the greatest value among supplied numbers or collection entries. It is useful for upper bounds, peak measurements, and normalization workflows.

## Example

`max(3, 9, -2)` is 9. Pair it with [min](https://calcul.io/function/min/index.md) to find a range, or with [mean](https://calcul.io/function/mean/index.md) and [std](https://calcul.io/function/std/index.md) to put a peak in context. [arg](https://calcul.io/function/arg/index.md) is not an index finder; retain positions separately when needed.

## Caveats

Values must be comparable and nonnumeric entries or missing values require a defined cleaning policy. Use [filter](https://calcul.io/function/filter/index.md) before max to exclude invalid observations. An extreme maximum can be an outlier rather than a representative value.

[All functions](https://calcul.io/functions/index.md)
