Range is the difference between your highest and lowest values
Range is the simplest measure of spread in a dataset. It tells you how far apart your smallest and largest numbers are. To find it, subtract the minimum value from the maximum value. That is all the calculation requires.
Range appears in everyday situations: the temperature range for a day (high minus low), salary ranges in a job posting, or the spread of test scores in a classroom. It gives you a quick sense of how scattered your data is without needing complex formulas.
Key Takeaways
- Range equals the maximum value minus the minimum value in your dataset.
- You need only two numbers to calculate range: the highest and the lowest.
- Range is useful for spotting outliers and understanding data spread, but it ignores all values in between.
- A larger range means your data is more spread out; a smaller range means values cluster closer together.
- Range works best alongside other measures like standard deviation or interquartile range for a fuller picture.
The formula and a worked example
The formula is straightforward:
Range = Maximum Value − Minimum Value
Suppose you have test scores from eight students: 72, 85, 91, 68, 79, 88, 95, and 74. Your maximum is 95 and your minimum is 68. The range is 95 − 68 = 27 points. This tells you that the spread between the lowest and highest score is 27 points.
Another example: a store tracks daily sales over a week. The sales are $450, $520, $380, $610, $495, $575, and $420. The maximum is $610 and the minimum is $380. The range is $610 − $380 = $230. Sales varied by $230 across the week.
Why range matters and what it shows
Range is the fastest way to see whether your data is tightly grouped or widely scattered. A small range suggests consistency; a large range suggests variability. If you are comparing two datasets, the one with the larger range has more extreme differences between its highest and lowest points.
Range also helps you spot outliers quickly. If most of your values cluster between 20 and 30, but one value is 100, the range will be 80 — much larger than you would expect. That signals something unusual in your data worth investigating.
However, range has a limitation: it tells you nothing about the values in between. Two datasets can have the same range but very different distributions. For instance, scores of 50, 50, 50, 50, 100 have a range of 50, as do scores of 50, 60, 70, 80, 100. The first clusters at one end; the second spreads evenly. Range alone does not reveal this difference.
How to find maximum and minimum values
Before you calculate range, you must identify the highest and lowest values in your dataset. For small datasets, scan the numbers by eye. For larger ones, sort the data in ascending order — the first number is the minimum and the last is the maximum.
In spreadsheet software like Excel or Google Sheets, use the MAX() and MIN() functions. Type =MAX(A1:A10) to find the largest value in cells A1 through A10, and =MIN(A1:A10) to find the smallest. Then subtract: =MAX(A1:A10)−MIN(A1:A10) gives you the range in one formula.
In Python, use max(dataset) and min(dataset) to pull these values, then subtract them. In R, the range() function returns both the minimum and maximum, so you can subtract directly.
Range versus other measures of spread
Range is the simplest spread measure, but it is not always the most useful. Standard deviation measures how far values typically fall from the average, giving you a sense of typical variation rather than just the extremes. Interquartile range (IQR) measures the spread of the middle 50 percent of your data, ignoring the highest and lowest quarters — this makes it less sensitive to outliers than range.
Use range when you need a quick, straightforward-to-understand snapshot. Use standard deviation when you want to know how tightly clustered most values are around the average. Use IQR when outliers might distort your picture and you want to focus on the central bulk of your data.
In practice, analysts often report all three. Range tells stakeholders the full spread; standard deviation and IQR provide context about where most of the data actually sits.
Common mistakes when calculating range
The most frequent error is forgetting to sort your data first. If you scan unsorted numbers, you may misidentify the maximum or minimum. Always arrange values in order or use MAX and MIN functions to avoid this.
Another mistake is including units inconsistently. If your dataset mixes different units — say, some temperatures in Celsius and some in Fahrenheit — convert everything to one unit before calculating. Otherwise your range is meaningless.
A third pitfall is treating range as a complete picture of variation. A range of 50 tells you the spread between extremes, but not whether most values cluster at one end or scatter evenly. Always pair range with at least one other measure for a fuller understanding.
When range is the right choice
Range is most useful in quality control and manufacturing, where you need to know whether output stays within acceptable bounds. If a machine produces bolts that should be between 10 mm and 12 mm, the range tells you when ready whether any bolt falls outside that window.
Range also works well for weather reporting (high and low temperature), salary transparency (entry-level to senior pay), and sports statistics (fastest and slowest lap times). In these cases, the extreme values are what people care about most.
For academic or research data where you need to understand the typical behavior of your dataset, range alone is too crude. Pair it with standard deviation, variance, or IQR to tell the full story.
Frequently Asked Questions
Can range be negative?
No. Range is always zero or positive because you subtract the minimum from the maximum. If your maximum is larger than your minimum (which it always is), the result is positive. If all values are identical, the range is zero.
What if my dataset has only one value?
The range is zero. The maximum and minimum are the same number, so the difference is zero. This indicates no spread at all — perfect consistency.
Does range change if I add a new data point in the middle?
No, unless the new point becomes the new maximum or minimum. Range depends only on the extremes. Adding a value between the highest and lowest does not change the range.
How do I calculate range for negative numbers?
Use the same formula. If your values are −10, −5, 0, 5, and 10, the maximum is 10 and the minimum is −10. The range is 10 − (−10) = 20. Subtract carefully when negatives are involved.
Is range the same as domain?
No. In mathematics, domain refers to all possible input values for a function, while range refers to all possible output values. In statistics, range means the spread between minimum and maximum. The terms overlap in name but have different meanings depending on context.