Range Calculator
The range is the difference between the largest and smallest values in a dataset: Range = maximum − minimum. For 4, 8, 15, 16, 23, 42 the range is 42 − 4 = 38 and the midrange is 23.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
What Is the Range in Statistics?
The range is the simplest measure of spread. It tells you how far apart the extreme values of a dataset are by subtracting the smallest value from the largest. A small range means all the values lie close together, and a large range means they are spread over a wide stretch.
Because it uses only two numbers, the range is quick to compute and easy to explain, which is why it appears in weather reports (the day’s temperature range), pricing (the range of prices for a product) and school statistics. Its simplicity is also its weakness: it ignores every value between the extremes.
Range Compared with Other Measures of Spread
| Measure | Uses | Sensitive to outliers? | Best for |
|---|---|---|---|
| Range | Maximum and minimum only | Extremely | A quick overall spread |
| Interquartile range | Q1 and Q3 | Not at all | Skewed data or outliers |
| Standard deviation | Every value | Strongly | Symmetric data |
| Variance | Every value (squared) | Strongly | Calculations and tests |
Range Formula
Maximumis the largest value in the dataset.Minimumis the smallest value.- The midrange is the point exactly halfway between them. It is a rough estimate of the centre, though it is heavily affected by extremes.
The range is always zero or positive and has the same units as the data. A range of zero means every value is identical.
Worked Example: Finding the Range
The preloaded data is 4, 8, 15, 16, 23, 42.
- Find the maximum: 42.
- Find the minimum: 4.
- Subtract: 42 − 4 = 38.
- Midrange: (42 + 4) ÷ 2 = 23.
How One Outlier Changes the Range
Remove the 42 and the data becomes 4, 8, 15, 16, 23. The range drops from 38 to 19, exactly half, even though only one value was removed. This is why the range should be used with care when extreme values are possible.
| Dataset | Minimum | Maximum | Range |
|---|---|---|---|
| 4, 8, 15, 16, 23, 42 | 4 | 42 | 38 |
| 4, 8, 15, 16, 23 | 4 | 23 | 19 |
For a measure that ignores such extremes, use the interquartile range from the quartile and IQR calculator.
Related Quick Measures
The coefficient of range, (max − min) ÷ (max + min), turns spread into a unit-free ratio: 38 ÷ 46 = 0.826 for the example data, which lets you compare datasets measured in different units. A common rough check says the standard deviation is about one quarter of the range. Here that would suggest 9.5, whereas the actual sample standard deviation is 13.49, a reminder that small skewed datasets break such shortcuts.
Ranges in Quality Control
Control charts for manufacturing often plot the range of small repeated samples over time. A rising range signals that a machine’s consistency is deteriorating, even before the average moves.
How to Use This Range Calculator
- Enter your numbers separated by commas, spaces or new lines.
- The calculator finds the minimum and maximum automatically.
- Read the range, minimum, maximum, midrange and the number of values.
- Open the steps to see the subtraction.
Want the whole picture? The five-number summary calculator adds the quartiles and median, and the standard deviation calculator measures spread using every value.
Real-World Uses of the Range
- Weather: the daily temperature range shows how much the temperature swings between night and day.
- Finance: the 52-week high-to-low range of a stock shows how much its price has moved.
- Quality control: range charts track the variation within small samples of a process.
- Education: the range of test scores shows the gap between the top and the bottom student.
- Everyday decisions: comparing the price range of similar products before buying.
What Are the Most Common Mistakes With the Range Calculator?
- Ignoring outliers. A single extreme value can inflate the range and misrepresent typical spread.
- Reading it as an interval. The range is one number (38), not the interval from 4 to 42, though people sometimes report both.
- Comparing datasets of different sizes. Larger samples tend to have larger ranges simply because there are more chances to see extremes.
- Forgetting units. The range is in the same units as the data.
- Relying on it alone. It says nothing about how values are distributed between the extremes. Use it together with the standard deviation or IQR.
- Confusing range with midrange. One measures spread, the other estimates the centre.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is the formula for the range?
Range = maximum value − minimum value. For 4, 8, 15, 16, 23, 42 it is 42 − 4 = 38.
What does the range tell you?
It tells you the total spread of the data, from the smallest to the largest value. A larger range means a wider spread, though it ignores everything in between.
Why is the range sensitive to outliers?
It depends only on the two most extreme values, so one unusually large or small value changes it immediately.
What is the difference between range and interquartile range?
The range covers the full spread from minimum to maximum. The interquartile range covers only the middle 50% of the data, so it is not affected by outliers.
What is the midrange?
The midrange is the average of the minimum and maximum, (max + min) ÷ 2. It gives a quick estimate of the centre of the data but is easily distorted by extreme values.
Can the range be negative?
No. The maximum is never less than the minimum, so the range is zero or positive. A range of zero means all values are the same.