Range Calculator

Range Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

Range=max⁡(Data Set)−min⁡(Data Set)\text{Range} = \max\!\left(\text{Data Set}\right) - \min\!\left(\text{Data Set}\right)
Usage stats

Advertisement

Results

Range
38
maximum − minimum
Maximum 42
Minimum 4
Count 6

Report an error on this page

What Is the Range?

The range is one of the simplest measures of spread (dispersion) in statistics. It tells you how far apart the largest and smallest values in a data set are. A large range means the values are widely scattered; a small range means they are tightly clustered. Because it uses only two values, the range is quick to compute but sensitive to outliers.

Number line showing data points with the lowest and highest values marked and the span between them highlighted
The range is the distance from the smallest to the largest value on the number line.

How to Use This Calculator

Type your numbers into the box, separated by commas or spaces (for example 4, 8, 15, 16, 23, 42). The calculator finds the maximum and minimum, subtracts them, and reports the range along with the count of values. Decimals and negative numbers are supported.

The Formula Explained

The range is defined as:

$$\text{Range} = \max\!\left(\text{Data Set}\right) - \min\!\left(\text{Data Set}\right)$$

First locate the largest value in your list, then the smallest, and subtract. The result is always zero or positive. If every value is identical, the range is 0.

Advertisement
Simple formula illustration: maximum minus minimum equals range with two boxes subtracting
Range equals the maximum value minus the minimum value.

Worked Example

Consider the data set 4, 8, 15, 16, 23, 42. The maximum is 42 and the minimum is 4. So the range is $$42 - 4 = \mathbf{38}.$$ This single number summarises the total spread of the values.

More Range Examples: Negatives, Decimals and Outliers

The range is always the maximum minus the minimum. These three examples show cases that often cause mistakes.

Example 1: Data with negative numbers

Data set: -12, -5, 0, 7, 3. The minimum is -12 and the maximum is 7.

$$\text{Range} = 7 - (-12) = 7 + 12$$

Subtracting a negative number is the same as adding its positive value, so the range is 19. A common error is to write 7 - 12 = -5, which is wrong because the minimum is -12, not 12.

Example 2: Decimals

Data set: 2.5, 3.1, 9.8, 4.4. The minimum is 2.5 and the maximum is 9.8.

$$\text{Range} = 9.8 - 2.5$$

The range is 7.3. Line up the decimal points when subtracting by hand.

Example 3: An outlier changes the range a lot

Data set A: 10, 12, 13, 14, 95. The minimum is 10 and the maximum is 95.

$$\text{Range}_A = 95 - 10$$

The range is 85.

Now remove the value 95 to get data set B: 10, 12, 13, 14. The maximum is 14 and the minimum is still 10.

$$\text{Range}_B = 14 - 10 = 4$$

One extreme value moved the range from 4 to 85, even though the other four values are tightly clustered. The range depends only on the two extreme values, so it is very sensitive to outliers. When outliers are present, consider also reporting the interquartile range or the standard deviation.

How to Find the Range by Hand

  1. List all values. Write every number in the data set and include repeats. Repeated values do not change the range, but they do change the count.
  2. Find the minimum and maximum. Scan the list, or sort it from smallest to largest. The first value in the sorted list is the minimum and the last is the maximum.
  3. Subtract. Calculate \(\text{Range} = \text{Maximum} - \text{Minimum}\).
  4. Check the result. The range should be zero or positive. A negative answer means the numbers were subtracted in the wrong order. A range of zero means every value is identical.
  5. Optionally note the count. Count how many values are in the set (\(n\)). It is useful context for judging how reliable the range is, because larger samples tend to have wider ranges.

Tip on sorting: sorting makes the extremes easy to see and helps you catch a missed value. For example, 7, -12, 3, 0, -5 sorts to -12, -5, 0, 3, 7.

Tip on negative minimums: when the minimum is negative, put it in parentheses and change the two minus signs to a plus. For example, \(7 - (-12) = 7 + 12 = 19\). If both the maximum and minimum are negative, such as -3 and -20, the range is \(-3 - (-20) = 17\).

Advertisement

Key Terms: Range, Maximum, Minimum, Spread

Range
The difference between the largest and smallest values in a data set (maximum minus minimum). It is expressed in the same units as the data.
Maximum
The largest value in the data set.
Minimum
The smallest value in the data set. It may be negative.
Data set
A collection of numerical values, such as test scores or daily temperatures, that you want to summarize or analyze.
Count
The number of values in the data set, often written \(n\). Repeated values are each counted.
Measure of spread (dispersion)
A statistic that describes how widely the values in a data set are scattered. Examples include the range, interquartile range, variance and standard deviation.
Outlier
A value that lies unusually far from the rest of the data. A single outlier can greatly change the range.
Interquartile range (IQR)
The difference between the third quartile and the first quartile (\(Q_3 - Q_1\)). It measures the spread of the middle 50% of the data and is much less affected by outliers than the range.
Standard deviation
A measure of how far values typically fall from the mean. Unlike the range, it uses every value in the data set, not just the two extremes.

FAQ

Does the range change with outliers? Yes — because it depends only on the extreme values, a single unusually large or small value can dramatically change the range.

Can the range be negative? No. Since the maximum is always at least as large as the minimum, the range is never negative.

What is a better measure of spread? For data with outliers, the interquartile range (IQR) or standard deviation give a more robust picture of dispersion.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators