Saved

Press the star next to a tool's name to save it.

All my tools

Range Calculator

Enter a list of numbers to find the range, which is the gap between the highest and lowest values.

Separate them with commas, spaces or semicolons.

Your result opens on the next page.

Range

22

Enter at least two numbers to see the range.

How to find the range

The range shows how spread out a set of numbers is. Subtract the lowest value from the highest value.

Range = highest value − lowest value

Worked example

Take the numbers 12, 7, 3, 25, 18 and 9. The highest is 25 and the lowest is 3, so the range is 25 − 3 = 22.

How to use this calculator

  1. Enter your numbers. Separate them with commas, spaces or semicolons.
  2. Read your range. It updates as you type.
  3. Check the other results. You’ll also see the mean, median and midrange.

Commas separate numbers here, so type 1000 rather than 1,000.

Range, mean, median and midrange

MeasureWhat it tells youExample result
RangeThe gap from lowest to highest22
MeanThe total divided by the count12.3333
MedianThe middle value when sorted10.5
MidrangeHalfway between lowest and highest14

What the range can’t tell you

The range uses only the two most extreme values, so one unusual number can change it a lot. For example, 2, 3, 4, 5 has a range of 3, but 2, 3, 4, 50 has a range of 48.

What the range calculator shows

After you press Find the range, your result opens on the next page. The big number is the range. Under it, a line shows the subtraction, such as 25 − 3 = 22, so you can see which two values were used. A negative lowest value is put in brackets, as in 8 − (−6.5) = 14.5, so the double minus is easy to read.

The table then lists:

  • Lowest value and Highest value, taken from your list after sorting.
  • How many numbers you entered, counting repeats.
  • Mean (average), the total divided by the count.
  • Median, the middle value of the sorted list.
  • Midrange, the point halfway between the lowest and highest values.

Results show up to four decimal places, so a mean of 73.571428… appears as 73.5714. Very large values are written with a power of 10.

Worked example: a week of temperatures

Say the daily highs for a week were 68, 72, 75, 71, 90, 66 and 73 degrees. Enter them in any order.

  • Sorted: 66, 68, 71, 72, 73, 75, 90
  • Range: 90 − 66 = 24
  • Midrange: (66 + 90) ÷ 2 = 78
  • Mean: 73.5714
  • Median: 72

Six of the seven days fall between 66 and 75, a gap of only 9 degrees. The one hot day at 90 stretches the range to 24 and pulls the midrange up to 78, above every day but one. The median of 72 sits much closer to a typical day. This is a good habit: when the range looks big, check whether one value is doing all the work.

Worked example with negatives and decimals

The calculator accepts negative numbers and decimals. Try 4.5, −2, 0, 3.25, −6.5 and 8. The lowest value is −6.5 and the highest is 8, so the range is 8 − (−6.5) = 8 + 6.5 = 14.5. The midrange is 0.75, the mean is 1.2083 and the median is 1.625. Subtracting a negative number adds its size, which is the step people most often get wrong by hand.

How statisticians describe the range

The NIST/SEMATECH e-Handbook of Statistical Methods defines the range as the largest value minus the smallest value in a data set.[1] It also points out the weakness: the range is based only on the lowest and highest extreme values, and the spread near the center of the data is not captured at all.[1]

The handbook lists other measures of spread that fill that gap. The interquartile range is the 75th percentile minus the 25th percentile, and it tries to measure the variability of points near the center.[1] The standard deviation is the square root of the variance, and it is in the same units as your data.[1] The handbook adds that the variance can be greatly affected by the tail behavior of the data.[1]

So use the range as a quick first look, then reach for the standard deviation calculator, the percentile calculator or the descriptive statistics calculator when you need a fuller picture.

Same range, different spread

Compare these two lists of eight numbers:

  • 1, 5, 5, 5, 5, 5, 5, 9
  • 1, 2, 3, 4, 6, 7, 8, 9

Both have a range of 8, a mean of 5 and a median of 5, so this calculator gives the same main figures for each. Yet the first list is packed tightly around 5, while the second is spread evenly across the whole gap. Only a measure that uses every value, such as the standard deviation, tells them apart.

Common mistakes when finding the range

  • Typing thousands with commas. Commas split numbers here, so 1,000 is read as two numbers, 1 and 0. Type 1000 instead, or the range will be wrong without any warning.
  • Subtracting the first and last numbers you typed. The range uses the highest and lowest values, not the first and last. The calculator sorts the list for you.
  • Mixing units. Don’t combine inches and feet, or grams and kilograms, in one list. Convert first so every number uses the same unit.
  • Entering one number. A range needs at least two values. The calculator accepts up to 10,000.

How we calculate this

The tool reads your numbers from the box, separated by commas, spaces or new lines. It sorts them from low to high. The range is the highest value minus the lowest value.

It also shows the lowest, the highest, how many values you entered, the mean (sum ÷ count), the median, and the midrange, which is (lowest + highest) ÷ 2. The median is the middle value of the sorted list, or the average of the two middle values when the count is even.

You need at least two numbers, and the tool accepts up to 10,000. Anything in the box that is not a number gives an error message.

What next

Use this often? Add Range to your Home screen.

Frequently asked questions

How do you find the range of a set of numbers?

Subtract the lowest value from the highest value. For 3, 7, 9, 12, 18 and 25, the range is 25 − 3 = 22.

Can the range be negative?

No. The highest value is never below the lowest, so the smallest possible range is 0, when all the numbers are the same.

Can I use negative numbers and decimals?

Yes. For example, the range of −4, 1.5 and 6 is 6 − (−4) = 10.

What is the difference between range and median?

The range measures how spread out the numbers are. The median is the middle value when they’re sorted.

What is the midrange?

It is the point halfway between the lowest and highest values: (lowest + highest) ÷ 2. For 12, 7, 3, 25, 18 and 9, the midrange is (3 + 25) ÷ 2 = 14.

Why does typing 1,000 give the wrong range?

The calculator uses commas to separate numbers, so 1,000 is read as 1 and 0. Type large numbers without commas, such as 1000.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools