In statistics, the range is the simplest measure of data spread. You calculate it by subtracting the lowest value from the highest value in a dataset. This single number tells you the total span of your data, showing how far apart the extreme values sit.
While it's easy to compute, the range gives you a very limited picture of data distribution. It ignores every data point in the middle and remains highly vulnerable to extreme values. Knowing when to use the range—and when to rely on alternatives like the interquartile range or standard deviation—is essential for accurate data analysis.
How to Calculate the Range in Mathematics
Finding the range takes just two steps once you have your numbers. You don't need complex formulas or specialized software for basic datasets.
Here is the standard formula: To understand the bigger picture, check out the recent analysis by The New York Times.
Range = Maximum Value - Minimum Value
Step-by-Step Calculation Example
Imagine you're tracking daily test scores for a small study group. The raw scores are: 72, 85, 60, 91, 78, 88, and 65.
- Sort the numbers from least to greatest to avoid mistakes: 60, 65, 72, 78, 85, 88, 91.
- Identify the minimum value: The lowest score is 60.
- Identify the maximum value: The highest score is 91.
- Subtract the minimum from the maximum: 91 - 60 = 31.
The range of these test scores is 31 points. This tells you that the gap between the lowest performer and highest performer in this group spans 31 points.
Why the Range Matters in Data Analysis
Even though it's basic, the range provides immediate value across multiple fields. When you first encounter a new dataset, calculating the spread gives you a quick baseline before you run heavier statistical tests.
- Quality Control: Manufacturing plants monitor the range of product dimensions. If a machine produces parts with a suddenly expanding range, technicians know calibration is drifting.
- Finance and Investing: Analysts look at the range of stock prices over 52 weeks to gauge historical volatility. A massive range signals high risk and heavy price swings.
- Meteorology: Weather stations track daily temperature ranges to understand atmospheric stability. Desert climates often show massive daily ranges compared to coastal regions.
The Major Flaw: Sensitivity to Outliers
The biggest trap when using the range is its complete dependence on extreme values. If a single data point is abnormally high or low, it distorts the entire calculation.
For example, look at employee hourly wages at a small startup: $20, $22, $23, $25, $26, and $150 (the founder's wage).
- Minimum: $20
- Maximum: $150
- Range: $150 - $20 = $130
A range of $130 suggests massive wage dispersion across the company. Yet, five out of the six employees earn wages tightly packed between $20 and $26. That single outlier completely skews what the range tells you about typical pay.
Better Alternatives for Measuring Data Spread
Because outliers break the usefulness of the range, statisticians use more robust metrics to understand how data clusters.
Interquartile Range (IQR)
The IQR measures the spread of the middle 50% of your data. It cuts off the top 25% and bottom 25%, completely shielding your analysis from extreme outliers. You find it by subtracting the first quartile (25th percentile) from the third quartile (75th percentile). You can read more about how percentiles work on StatPearls.
Standard Deviation
Standard deviation tells you how far, on average, every data point lies from the mean. Instead of only looking at the two extreme edges, it factors in every single number in your dataset. It's the gold standard for scientific and financial research.
Range in Algebra and Functions
In algebra, the word "range" means something entirely different than it does in statistics. Instead of describing data spread, it describes function outputs.
For any function, the domain is the complete set of all possible input values (usually $x$), and the range is the complete set of all resulting output values (usually $y$).
If you have the function $f(x) = x^2$ and your domain is all real numbers, your output can never be negative. Therefore, the range is all real numbers greater than or equal to zero.
Frequently Asked Questions
Can a range ever be a negative number?
No. Because the formula subtracts the minimum value from the maximum value, the result is always zero or positive. If your calculation yields a negative number, your minimum and maximum values are reversed.
What does a range of zero mean?
A range of zero means every single number in your dataset has the exact same value. For example, if test scores are 80, 80, 80, and 80, the maximum is 80, the minimum is 80, and the range is 0. This indicates zero variability in the data.
How do I find the range of negative numbers?
Subtracting negative numbers follows standard integer rules. If your dataset is -10, -5, 0, 3, and 8:
- Maximum = 8
- Minimum = -10
- Calculation = 8 - (-10) = 8 + 10 = 18. The range is 18.
Is the range considered a statistic or a parameter?
It depends on your data source. If you calculate the range for an entire population, it's a parameter. If you calculate it for a sample taken from a larger group, it's a statistic used to estimate the population spread. For official guidelines on statistical terminology, visit the National Institute of Standards and Technology.