Minimum and maximum of numbers

Type a, b and optional c. Dedicated JS computes min, max and range. 3, 7 and 5 give 3 / 7 / 4. 1 and 9 give 1 / 9 / 8. −1, 4 and 2.5 give −1 / 4 / 5.

Three results: minimum, maximum and range. c is optional. Fewer than two numbers leaves the placeholder. Each number: integer String or six decimal places.

Input data

Results

Enter data and click Calculate.

How it works

Minimum and maximum of numbers is its own card, not generic a*b. Three fields a, b, c. An empty c drops out of the list. From the leftover numbers the calculator uses the smallest value, the largest value and the difference. 3, 7 and 5 give min 3, max 7, range 4.

The result is three strings, not one number. 1 and 9, with no c, give 1 / 9 / 8. −1, 4 and 2.5 give −1 / 4 / 5. A fraction in min or max goes through six decimal places: 2.5 shows as 2.500000.

An empty a or b is a blank value and drops out. One number left, the calculator returns to the placeholder. Zero is a number: 0, 5 and 2 give 0 / 5 / 5.

Maximum of two numbers is on the neighbouring page and shows one value. Range from a list in one field is another calculator and after a number read usually shows 0.

The header units switch does not multiply anything. 3, 7 and 5 stay 3 / 7 / 4 whatever the label says.

3, 7 and 5 give 3 / 7 / 4. 1 and 9 give 1 / 9 / 8. −1, 4 and 2.5 give −1 / 4 / 5.

Formula

min, max, range = max − min from a, b and optional c

How to use

  1. Type two or three numbers, for example 3, 7 and 5.
  2. Click Calculate. Minimum 3, maximum 7, range 4.
  3. 1 and 9, with the third field empty, give 1 / 9 / 8.
  4. One number is not enough. The result is the placeholder.
  5. Maximum of two numbers alone lives on the neighbouring card.

3, 7 and 5 give 3 / 7 / 4

Dedicated JS computes min, max and range. 3, 7 and 5 give 3 / 7 / 4. 1 and 9 give 1 / 9 / 8. −1, 4 and 2.5 give −1 / 4 / 5.

Minimum
The smallest of a, b and optional c. 3, 7 and 5 give 3. −1, 4 and 2.5 give −1.
maximum
The largest. 3, 7 and 5 give 7. 1 and 9 give 9.
range
max − min. 3, 7 and 5 give 4. 1 and 9 give 8.

Examples

Example 1

  • a = 3
  • b = 7
  • c = 5

3 / 7 / 4

What is min / max / range from 3, 7 and 5? 3 / 7 / 4.

Example 2

  • a = 1
  • b = 9

1 / 9 / 8

What is min / max / range from 1 and 9, no c? 1 / 9 / 8.

Example 3

  • a = −1
  • b = 4
  • c = 2.5

-1 / 4 / 5

What is min / max / range from −1, 4 and 2.5? −1 / 4 / 5.

Related calculators

Common questions

What is min / max / range from 3, 7 and 5?

3 / 7 / 4. Three separate the result string values.

What does minimum and maximum of numbers mean?

Smallest, largest and the difference. Three fields: a, b and c.

What about 1 and 9 with no c?

1 / 9 / 8. Empty c does not join the list.

What about −1, 4 and 2.5?

−1 / 4 / 5. Range 5 is an integer, min is −1.

Is the result one number?

No. Three fields: min, max, range. Each value has its own formatting.

What if there is only one number?

The placeholder stays. The calculator needs two values.

Does 2.5 show as 2.5?

No. A fraction goes through six decimal places, so 2.500000.

Is 0 a number?

Yes. 0, 5 and 2 give 0 / 5 / 5.

Where is maximum alone?

On the maximum of two numbers page. There you get the larger number only.

Does a comma in 2.5 work?

Yes. The calculator turns a comma into a dot before it reads a number.

Knowledge sources

The calculator computes the same formula as the definition below.

Page updated in 2026.