What this calculator does
The range of a data set is the gap between its smallest and largest values: the maximum minus the minimum. It is the simplest possible measure of spread, telling you how far the data stretches from end to end without saying anything about how the values in between are distributed.
Because it only looks at the two extreme values, range is quick to calculate and easy to understand, but it can be misleading on its own. A single unusually high or low value (an outlier) can make the range large even if almost every other value in the set sits close together, which is why range is normally reported alongside other spread measures like the standard deviation or interquartile range rather than in isolation.
The formula
Sort the numbers from smallest to largest, then subtract the smallest (minimum) from the largest (maximum). The result is the range. It uses only these two values from the data set; everything in between plays no part in the calculation, which is exactly what makes range fast to compute but limited as a full picture of spread.
| Term | Meaning |
|---|---|
| Minimum | The smallest value in the data set. |
| Maximum | The largest value in the data set. |
| Range | Maximum minus minimum: the total spread from the smallest to the largest value. |
The inputs explained
| Field | What to enter |
|---|---|
| Data (comma or space separated) | The list of numbers, separated by commas, spaces or line breaks. |
When to use it
A quick first look at spread
Before running a full statistical breakdown, the range gives an immediate sense of how widely a data set is spread, useful as a first check before deciding whether more detailed measures are needed.
Quality control and tolerance checks
Manufacturing and lab settings often track the range of repeated measurements to flag when a process is producing results more spread out than expected, since a widening range can signal a developing problem even before the average shifts.
Spotting a likely outlier
A range that looks unexpectedly large compared to how tightly clustered most of the data appears is often a sign that one or two extreme values are pulling it, worth checking against the individual minimum and maximum shown alongside the range.
Worked examples
Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.
How does the range compare across a few small data sets?
Range, minimum and maximum for a few short example data sets.
| Data set | Minimum value | Maximum value |
|---|---|---|
| 12, 15, 11, 18, 22, 15, 9, 14, 15, 20 | 9.000 | 22.000 |
| 5, 5, 6, 5, 4, 5, 6 | 4.000 | 6.000 |
| 1, 2, 3, 100 | 1.000 | 100.000 |
| 10, 20, 30, 40, 50 | 10.000 | 50.000 |
Questions
How do I calculate the range of a data set by hand?
Find the smallest and largest numbers in the set, then subtract the smallest from the largest. No sorting of the middle values is needed, since the range only depends on the two extremes.
Why is range considered a weak measure of spread on its own?
It depends entirely on the two most extreme values and ignores everything else in the data set. A single unusually high or low value can inflate the range even when the rest of the data is tightly clustered, which is why it is normally reported alongside a measure like standard deviation.
What is the difference between range and interquartile range?
Range uses the absolute minimum and maximum, so it is sensitive to outliers. The interquartile range uses the 25th and 75th percentiles instead, trimming off the most extreme quarter of values at each end, which makes it a more robust measure when outliers are present.
Can the range be zero?
Yes, if every value in the data set is identical, the maximum and minimum are the same number, so the range is zero.
For a fuller statistical picture beyond just the spread, see the descriptive statistics calculator, which reports the mean, median, mode, standard deviation and range together. For a spread measure less affected by outliers, see the interquartile range calculator.