acalculator

What is the range of my data?

Paste or type your numbers. The range calculator gives the range, the largest value minus the smallest, with the midrange and the list in order.

Your numbers

Read as: 7; 2; 10; 4; 9; 3
Range
8

The range of your 6 numbers is 8: from 2 to 10.

Smallest value
2
Largest value
10
Midrange
6
Count
6
Sorted list
2, 3, 4, 7, 9, 10

Range: 8. The range of your 6 numbers is 8: from 2 to 10.

Where do your numbers fall?

How to calculate

Finds the range of a list of numbers, the largest value minus the smallest, with the smallest, the largest, the midrange and the sorted list.

Example with the default inputs (Your numbers [7, 2, 10, 4, 9, 3]): The range of your 6 numbers is 8: from 2 to 10.

Method: range = largest − smallest; midrange = (smallest + largest) ÷ 2, in exact decimals.

  • Every number in the list counts, including repeats.
  • Numbers are read as the exact decimals typed, so the range has no rounding error.
  • The list holds 1 to 10,000 numbers.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. Your numbers 7, 2, 10, 4, 9, 3 gives Range 8, Smallest value 2, Largest value 10, Midrange 6, Count 6, Sorted list 2, 3, 4, 7, 9, 10.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale: the range is the largest value minus the smallest value (https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm, retrieved 2026-10-02)
  2. Your numbers -4.5, 12, 0, 3.25 gives Range 16.5, Smallest value -4.5, Largest value 12, Midrange 3.75.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale: the range is the largest value minus the smallest value (https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm, retrieved 2026-10-02)
  3. Your numbers 0.1, 0.3, 0.2 gives Range 0.2, Midrange 0.2.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale: the range is the largest value minus the smallest value (https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm, retrieved 2026-10-02)
  4. Your numbers 42 gives Range 0, Smallest value 42, Largest value 42, Midrange 42.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale: the range is the largest value minus the smallest value (https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm, retrieved 2026-10-02)

How it works

Type 1 to 10,000 numbers, separated by commas, spaces, semicolons or new lines. Every number counts, repeats included.

  • Range = largest value − smallest value.
  • Smallest value and largest value: the minimum and the maximum of the list.
  • Midrange = (smallest value + largest value) ÷ 2.
  • Count: how many numbers you typed.
  • Sorted list: the numbers from smallest to largest. Only the first 200 are shown, followed by "…" when there are more.

Each number is read as the exact decimal you typed (the shortest decimal of the stored number), and the range and midrange are worked out exactly from those decimals. So the range of 0.1, 0.3 and 0.2 is exactly 0.2. The page shows each result to at most 15 significant figures; a value with more digits is rounded half up from its decimal value. If a result is past about 1.8 × 10³⁰⁸, the largest number the page can store (for example the range of 1.7e308 and −1.7e308), the page gives no answer and says the answer is too large to show.

Worked examples by hand

7, 2, 10, 4, 9, 3. Sorted: 2, 3, 4, 7, 9, 10. Range = 10 − 2 = 8. Midrange = (2 + 10) ÷ 2 = 6.

−4.5, 12, 0, 3.25. Smallest −4.5, largest 12. Range = 12 − (−4.5) = 16.5. Midrange = (−4.5 + 12) ÷ 2 = 3.75.

0.1, 0.3, 0.2. Range = 0.3 − 0.1 = 0.2. Midrange = (0.1 + 0.3) ÷ 2 = 0.2.

42. One value is both the smallest and the largest. Range = 42 − 42 = 0; midrange 42.

Other questions people ask

How do I find the range of a data set?

Find the largest value and the smallest value, then subtract: range = largest − smallest. For 7, 2, 10, 4, 9, 3 the largest is 10 and the smallest is 2, so the range is 10 − 2 = 8.

Can the range be negative?

No. The largest value is never less than the smallest, so the range is 0 or more. It is 0 only when every number in the list is the same.

How do I find the range with negative numbers?

The same way: largest minus smallest. For −4.5, 12, 0 and 3.25 the range is 12 − (−4.5) = 16.5. Subtracting a negative number adds its size.

What is the midrange?

The point halfway between the smallest and the largest value: (smallest + largest) ÷ 2. For 2 and 10 it is 6. Like the range, it uses only the two extreme values.

Why is the range not always a good measure of spread?

It depends only on the two extreme values, so one unusual value changes it a lot, and it says nothing about how the other values spread out. The NIST/SEMATECH handbook notes this; the standard deviation and the interquartile range use more of the data.

Is the range the same as the range of a function?

No. In statistics the range is one number, the spread of a data set. The range of a function in algebra is the set of all its output values.