Range Calculator

Range Calculator

Find the range of a list of numbers, the gap between the smallest and largest, along with the midrange, the interquartile range and a comparison with the standard deviation.

Range = maximum − minimum · Midrange = (maximum + minimum) ÷ 2

Separate with commas, spaces or new lines. Negative numbers are fine.

Enter at least two numbers to find the range

What is the Range?

The range is the largest value minus the smallest. It's the simplest measure of spread: the full width of the data in a single number.

Its simplicity is also its weakness. The range depends on only two values, the most extreme ones, so a single unusual reading changes it completely. It also tends to grow as you collect more data, simply because a bigger sample is more likely to include an extreme value.

For a steadier picture of spread, use the interquartile range (the middle half of the data) or the standard deviation. The range is still useful for small samples, such as quality checks on five items at a time, and for spotting typing errors before you analyse anything.

How to Calculate the Range

Definitions as given in OpenStax Introductory Statistics; d₂ constants from the NIST/SEMATECH e-Handbook. See Sources.

1. Find the extremes

Pick out the smallest and largest values. With negative numbers, the smallest is the most negative.

2. Subtract

Range = max − min
Midrange = (max + min) ÷ 2

3. Estimate the standard deviation (optional)

Rule of thumb: SD ≈ range ÷ 4
Better, for n values from a normal distribution: SD ≈ range ÷ d₂

Quality-control charts use the d₂ version, because it accounts for how the expected range depends on the sample size.

Worked Example: Ten Delivery Times

Given:
Delivery times in minutes: 14, 27, 3, 88, 45, 12, 67, 5, 39, 72.
Step 1:
Extremes:
Minimum 3 · maximum 88
Step 2:
Range and midrange:
88 − 3 = 85 minutes · (88 + 3) ÷ 2 = 45.5
Step 3:
Estimate the standard deviation:
85 ÷ 4 = 21.3 (rule of thumb) · 85 ÷ 3.078 = 27.6 (d₂ for 10 values) · actual 30.2
Result:
The range is 85 minutes.

With only 10 values, range ÷ 4 underestimates the spread. The d₂ estimate gets much closer, and the remaining gap is because these times are spread fairly evenly rather than bunched in the middle like a bell curve.

How the Range Grows with Sample Size

The average range of n values drawn from a normal distribution, measured in standard deviations. These are the d₂ constants used in quality-control charts. Range ÷ 4 only fits samples of about 25 to 30.

Expected range of normal samples by sample size
Sample sizeExpected range (× SD)Estimate SD as
21.128range ÷ 1.13
52.326range ÷ 2.33
103.078range ÷ 3.08
153.472range ÷ 3.47
203.735range ÷ 3.73
253.931range ÷ 3.93

Common Range Mistakes

  • Giving the range as two numbers. "From 3 to 88" describes the extremes. In statistics the range is one number: 85.
  • Getting negative values wrong. The range of −5 and 10 is 10 − (−5) = 15, not 5.
  • Comparing ranges of different-sized samples. A sample of 100 will usually have a bigger range than a sample of 10 from the same population, even though the spread is the same.
  • Letting a typo set the range. A height entered as 1,750 cm instead of 175 makes the range meaningless. Check the minimum and maximum before trusting any spread measure.

Range Calculator FAQs

Can the range be negative?

No. The maximum is always at least as big as the minimum, so the range is zero or positive. Zero means every value is the same.

What’s the difference between the range and the interquartile range?

The range covers all the data, from the very smallest to the very largest. The IQR covers only the middle 50%, so it ignores extreme values. Use the range when the extremes themselves matter, such as the hottest and coldest days.

What is the midrange used for?

It’s a quick estimate of the centre, halfway between the extremes. Because it depends only on the two extremes, it’s easily thrown off and rarely used in serious analysis.

Why do quality-control charts use the range?

For the small subgroups typical in quality control (often 4 or 5 items), the range is quick to work out on the shop floor and almost as informative as the standard deviation.

How do I find the range in Excel?

There’s no RANGE function. Use =MAX(range) − MIN(range).

Does the range tell me about outliers?

Indirectly. A range much bigger than you’d expect from the IQR or standard deviation suggests an extreme value. The outlier calculator checks this properly.

Is a bigger range always worse?

Only if consistency is the goal, as with a manufacturing process. For something naturally varied, such as the ages at a family event, a wide range is just a description.

How accurate is the range ÷ 4 rule?

It’s a rough check that works best for bell-shaped data with about 25 to 30 values. For smaller samples, divide by the d₂ constant in the table above instead.

Sources

Related Tools