The range in statistics is the simplest way to describe how far a data set stretches, and learning how to find the range takes exactly one subtraction: the largest value minus the smallest. That single operation — Maximum − Minimum — is the entire range formula: no averaging, no squaring, and no sorting required beyond spotting the two extremes. This guide covers how to calculate a range step by step, what the range formula in statistics looks like applied to negative numbers, decimals, and grouped frequency tables, and exactly where the range of data stops being trustworthy as a measure of spread.
Key takeaways
| Point | Details |
|---|---|
| Range is one subtraction | Range = Maximum − Minimum. Nothing else about a data set — not the mean, not the count — factors into the calculation. |
| Only two values matter | The range ignores every value except the largest and smallest, which makes it fast but blind to what happens in the middle. |
| Negative numbers add, they don’t subtract | Subtracting a negative minimum adds its absolute value — Range = 5 − (−18) = 23, not 5 − 18. |
| Grouped data gives an estimate | When you only have class intervals, the range comes from the boundaries of the end classes and is an upper bound, not an exact figure. |
| One outlier can multiply the range | A single unusual value can inflate the range several times over, and standard deviation moves almost as sharply behind it — variance swings far harder still, since squaring the deviations also squares the outlier’s effect. Only the IQR stays about where it was. |
Quick Checklist: How to Calculate the Range of a Data Set
Before you touch a calculator, run through these checks — most wrong answers to “how do you calculate range” trace back to skipping one of them.
Quick checklist: finding the range
- List every value You don’t need to sort the whole data set — scanning once for the two extremes is faster than a full sort.
- Identify the maximum and minimum Record x_max and x_min; for a long list, sorting first makes them impossible to miss.
- Subtract: Range = x_max − x_min The result should always be zero or positive. A negative answer means the subtraction happened backwards.
- Watch the sign with negative numbers Subtracting a negative value adds its absolute value — write the subtraction out in full rather than doing it in your head.
- Use class boundaries for grouped data Without the raw values, the range from a frequency table is an estimate, not an exact number.
- Check for outliers before reporting If one value sits far from the rest, the range alone will overstate how spread out the data really is.
What Is Range in Statistics?
Range in statistics is a measure of spread built from exactly two numbers in a data set: its maximum and its minimum. Every other value in between is ignored entirely, which is both the range’s main advantage — it’s the fastest spread statistic to compute by hand — and its main limitation, since it tells you nothing about how the values are distributed between those two extremes.
It sits alongside the mean, median, mode, variance, and standard deviation in the standard descriptive-statistics toolkit. The NIST/SEMATECH e-Handbook of Statistical Methods lists the range alongside variance, standard deviation, and the interquartile range as the common numerical measures of spread, and defines it exactly this way: the largest value minus the smallest value in a data set, based only on the extremes, with the spread near the center of the data not captured at all. That trade-off — speed for blindness to the middle — is the one fact worth carrying through everything else in this guide.
What Is the Range Formula?
The range in statistics formula is the simplest one in the entire descriptive-statistics toolkit:
Range = Maximum value − Minimum value
Range = x_max − x_min
Where x_max is the largest value in the data set and x_min is the smallest. You don’t need the mean, the median, or a running total — just the two extremes, subtracted in that order.
| Measure | Uses all values? | Resistant to outliers? | Units | Effort |
|---|---|---|---|---|
| Range | No — only 2 | No | Same as data | Lowest |
| Interquartile range (IQR) | No — middle 50% | Yes | Same as data | Low |
| Variance | Yes | No | Squared | Moderate |
| Standard deviation | Yes | No | Same as data | Moderate |
How Do You Calculate the Range of a Data Set?
Find the largest and smallest values in the data set and subtract: Range = x_max − x_min. That’s how to calculate range — or how to find the range of a data set, however the question happens to be phrased — for any list of numbers, and it breaks down into three steps.
- Gather every value. List out the data set. If it’s already sorted, you’re a step ahead; if not, don’t bother sorting the whole thing just to find the range.
- Identify the maximum and minimum. Scan the list and record the largest value (x_max) and the smallest value (x_min). For a short list you can usually spot both by eye.
- Subtract the minimum from the maximum. Range = x_max − x_min. The result should always come out zero or positive.
Try the range calculator
Enter your own list of numbers below and the calculator returns the range, minimum, and maximum instantly — useful for checking how to find range by hand against a quick automated result.
How Do You Find the Range in a Data Set With Negative Numbers or Decimals?
The three-step process doesn’t change for messier data, but two situations trip people up often enough to walk through on their own.
Negative numbers
Data set: overnight low temperatures (°C) recorded at a weather station over one week: −12, 3, −7, 0, −18, 5, −4.
Sorted: −18, −12, −7, −4, 0, 3, 5. Maximum: 5. Minimum: −18.
Range = 5 − (−18) = 5 + 18 = 23
The range is 23°C. Subtracting a negative number is the same as adding its absolute value — the mistake to watch for is treating −18 itself as “the range,” or forgetting to flip the sign. Write the subtraction out in full rather than doing it in your head.
Decimal values
Nothing changes except lining up the decimal point correctly.
Data set: body-mass index (BMI) readings from six patients at a routine screening: 22.4, 27.1, 19.8, 31.5, 24.6, 18.3.
Maximum: 31.5. Minimum: 18.3.
Range = 31.5 − 18.3 = 13.2
The BMI range across this group is 13.2.
How Do You Calculate the Range for Grouped Data?
Knowing how to calculate for range when data arrives already binned into class intervals is a different problem: you don’t have the individual values anymore, so the range of data becomes an estimate built from the boundaries of the two end classes, not an exact figure.
Example: a regional courier logs weekly delivery times (minutes) in bins for an operations report.
| Class interval (minutes) | Deliveries |
|---|---|
| 20–30 | 6 |
| 30–40 | 14 |
| 40–50 | 9 |
| 50–60 | 3 |
The lower boundary of the lowest class is 20; the upper boundary of the highest class is 60.
Range ≈ 60 − 20 = 40 minutes
A Worked Example: Patient Wait Times at an Urgent Care Clinic
A clinic manager wants to know how consistent patient wait times were on a Tuesday shift, before deciding whether the clinic needs a second triage nurse. Over one 12-patient shift, wait times from check-in to being seen (in minutes) were:
8, 15, 22, 9, 12, 6, 18, 17, 14, 13, 11, 19
Step 1 — List the values. All 12 are recorded above.
Step 2 — Find the max and min. Sorted ascending, the extremes are easy to spot:
6, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19, 22
Minimum: 6 minutes. Maximum: 22 minutes.
Step 3 — Subtract.
Range = 22 − 6 = 16 minutes
That’s the range for this shift: 16 minutes. On its own, that number tells the manager patients weren’t waiting wildly different lengths of time — but it says nothing about whether most people waited close to 6 minutes or close to 22.
What happens if one patient is different. Suppose a 13th patient needed a complex work-up and waited 95 minutes for a specialist consult. None of the other 12 patients’ wait times changed, but the range jumps to:
Range = 95 − 6 = 89 minutes
Decision. A 16-minute range across 12 patients is tight enough that the manager can reasonably conclude the shift ran smoothly without a second triage nurse. An 89-minute range driven by one outlier is a different story — before concluding wait times turned erratic, the manager should check whether that 95-minute wait was a genuine complex case (keep it in the data, and lean on the IQR rather than the range for the headline number) or a logging error (fix it). The range alone can’t tell the difference between those two explanations; it only flags that something is worth investigating.
Range vs. IQR and Standard Deviation: When Does the Range Mislead You?
The range misleads whenever one extreme value sits far from the rest of the data: because it only uses the maximum and minimum, a single outlier can set the result almost by itself, as the worked example above just showed (16 minutes to 89 minutes from one added patient). That’s exactly why the NIST/SEMATECH e-Handbook lists the range alongside the IQR and standard deviation as separate measures of spread rather than treating any one of them as sufficient on its own — each answers a different question about spread, and the range’s answer is the easiest for one bad data point to distort.
Range vs. interquartile range (IQR)
The interquartile range trims the extremes away before measuring anything — it’s the distance between the 75th percentile (Q3) and the 25th percentile (Q1), so the top and bottom quarters of the data can’t influence it.
IQR = Q3 − Q1
Run both measures on the clinic data: before the 95-minute outlier, Q1 = 10 and Q3 = 17.5, so IQR = 7.5 minutes. After adding it, Q1 stays at 10 but Q3 moves to 18.5, so IQR = 8.5 minutes — it barely moved, because the outlier landed outside the middle 50% the IQR actually measures. The range, over that same comparison, moved from 16 to 89. Whenever a data set might contain a data-entry error or a genuine one-off event, the IQR is the more trustworthy spread statistic to report. The same NIST/SEMATECH page on box plots and outlier fences uses the IQR to build the 1.5×IQR fences that flag exactly this kind of unusual value — one more reason an implausibly large range is often worth checking against the IQR before you trust it.
Range vs. standard deviation
Standard deviation is the square root of the average squared distance from the mean (roughly, a typical distance from the mean), not just the two extremes, so it reflects the whole shape of the data at the cost of a heavier calculation — and unlike the IQR, it doesn’t resist outliers either. OpenStax’s Introductory Statistics, 2.7 Measures of the Spread of the Data defines it the same way: a number that measures how far data values are from their mean, calculated by first finding the variance (the average of the squared deviations) and then taking its square root. On the clinic data, adding the 95-minute outlier moves the sample standard deviation from about 4.79 minutes to about 23.02 minutes — a roughly 4.8-fold increase, close to the range’s own 5.6-fold jump from 16 to 89. The variance swings much harder, from about 23.0 to about 529.9 — a roughly 23-fold increase — because squaring each deviation from the mean also squares the outlier’s effect on the result. Only the IQR, which ignores the top and bottom quarters entirely, stayed close to where it started.
A 2005 study in BMC Medical Research Methodology that tested ways to estimate standard deviation from summary statistics found that for moderately sized samples (roughly 15 to 70 observations), Range ÷ 4 was the best estimator of the standard deviation in their simulations, while for larger samples (above 70 observations), Range ÷ 6 fit better — in other words, the range tends to run about four to six standard deviations wide once a sample passes about 15 observations.
Hozo, Djulbegovic & Hozo, BMC Medical Research Methodology (2005)For moderately sized samples (15 < n ≤ 70), our simulations show that the formula range/4 is the best estimator for the standard deviation (variance). For large samples (n > 70), the formula range/6 gives the best estimator for the standard deviation (variance).
If your computed range sits far outside that band, treat it as a signal to check for an outlier or a skewed distribution before trusting either number. Reach for the range when you want a fast, easy-to-explain first pass, when you’re scanning for data-entry errors, or when you’re picking histogram bin widths — a histogram is built by splitting the range of the data into equal-sized bins, as the NIST/SEMATECH e-Handbook’s histogram guidance defines it, so the range sets the span those bins have to cover. Reach for the IQR or standard deviation the moment you suspect outliers, or when “spread” needs to describe what’s typical rather than what’s extreme.
Calculating the Range in Excel and Python
For raw lists rather than grouped data, the range is just a call to each tool’s built-in maximum and minimum functions.
Excel: =MAX(A1:A12) - MIN(A1:A12)
Python: values = [8, 15, 22, 9, 12, 6, 18, 17, 14, 13, 11, 19]
data_range = max(values) - min(values) # 16
Microsoft’s documentation for the MAX and MIN functions covers the Excel syntax above, including how both functions ignore empty cells and text automatically. Python’s built-in functions reference documents max() and min() the same way — both accept any iterable of numbers, so the subtraction works identically to the hand calculation.
Common Mistakes When Calculating the Range
- Subtracting in the wrong order. The range is always maximum minus minimum. Reverse the order and you get a negative number that means nothing as a measure of spread — if your result comes out negative, you subtracted backwards.
- Confusing the range statistic with the range interval. “The data ranges from 6 to 22” describes an interval; the range itself is a single number — in that example, 16. Keep the two uses of the word separate when you’re reporting results.
- Forgetting the sign rule with negative numbers. Subtracting a negative adds its absolute value: 5 − (−18) equals 23, not 5 − 18 = −13. Write the subtraction out in full rather than doing the arithmetic in your head.
- Treating “the range” and “the spread” as interchangeable. It’s common to hear “the range was high” when the speaker actually means variance or standard deviation was high. They aren’t the same number — the range can spike from a single outlier (the clinic example above went from 16 to 89 minutes), standard deviation moves almost as sharply, and variance swings harder still since it’s a squared measure, while the IQR is the one measure that tends to hold steady.
- Reporting a grouped-data range as exact. A range calculated from class boundaries is an upper-bound estimate. State it as “at most” the boundary difference, not as a measured figure.
Statohub’s Take on the Range as a Measure of Spread
Statohub’s position is that the range earns its place as a first-pass check, not a final answer. It’s the fastest way to catch an obvious data-entry error or get a rough sense of spread, but reporting it alone — especially for a data set that might contain outliers — overstates how confident you should be in what it’s telling you. Pair it with the IQR or standard deviation whenever the stakes are higher than a quick sanity check.
Put the Range to Work With Statohub’s Tools
The calculator above handles the range, minimum, and maximum for any list you enter — for a full-page version, open the dedicated range calculator. To build out the rest of the spread picture, try the standard deviation calculator or read the mean guide for the center the spread is measured around. The Descriptive Statistics hub covers mean, median, mode, variance, and standard deviation together, and the full calculators hub has every tool on the site in one place.
Sources
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods — 1.3.5.6. Measures of Scale NIST
- NIST/SEMATECH e-Handbook of Statistical Methods — 7.1.6. What are Outliers in the Data? NIST
- NIST/SEMATECH e-Handbook of Statistical Methods — 1.3.3.14. Histogram NIST
- OpenStax — 2.7 Measures of the Spread of the Data, Introductory Statistics OpenStax
- Hozo, S.P., Djulbegovic, B., Hozo, I. — "Estimating the mean and variance from the median, range, and the size of a sample," BMC Medical Research Methodology (2005) BMC / PMC
- Microsoft Support — MAX function Microsoft
- Microsoft Support — MIN function Microsoft
- Python Software Foundation — Built-in Functions (max, min) Python Software Foundation
FAQ
Frequently asked questions
- How Do I Calculate Range When a Data Set Has Negative Numbers?
- Exactly as for positive numbers: find the maximum and minimum as usual, then subtract. Because you’ll typically be subtracting a negative minimum, remember that subtracting a negative number adds its absolute value — for example, if x_max = 5 and x_min = −18, Range = 5 − (−18) = 23, not 5 − 18.
- How Do You Calculate for Range in a Grouped Frequency Table?
- Use the upper boundary of the highest class interval minus the lower boundary of the lowest class interval. This produces an approximation, since the individual values inside each class aren’t available — the true range could be somewhat smaller than this estimate, so report it as an upper bound rather than an exact figure.
- How Do You Find Range in a Data Set Where Every Value Is the Same?
- The range is 0. If the maximum and minimum are identical, Range = x_max − x_min = 0, which correctly signals a data set with no spread at all. This is a useful sanity check: a range of exactly zero on real-world data is rare enough to be worth double-checking for a data-entry error.
- Can the Range of Data Ever Be Negative?
- No. The range is always zero or positive, because it’s defined as the maximum minus the minimum, and the maximum of a data set is never smaller than its minimum. A negative result always means the two values were subtracted in the wrong order.
- When Should You Use the Range Instead of the Standard Deviation?
- Use the range for a quick, easy-to-explain snapshot of spread, especially in a small data set without outliers. Use the standard deviation when you need a fuller picture — one that reflects how every data point varies from the mean, not just the two extremes. When outliers are a real possibility, the IQR is usually the better choice over both.
- What Counts as a Good Range for a Data Set?
- There’s no universal "good" range — it depends entirely on context. A range of 5 points is tight for exam scores out of 100 and enormous for precision manufacturing tolerances measured in micrometres. Judge the range relative to the scale of the measurement and the purpose of the analysis, not against a fixed number.