How to Calculate the Range

Finds the largest and smallest values of a data set and the range, their difference. The range is the simplest measure of spread.

The range is the difference between the largest and the smallest value in a data set — the simplest measure of spread there is.

R=xmaxxminR = x_{\max} - x_{\min}

Example

For the data 12, 15, 18, 20, 25 the maximum is 25 and the minimum is 12.

R=2512=13R = 25 - 12 = 13

Watch out

The range is easy to grasp, but it is a blunt instrument.

For a serious look at spread, use the standard deviation, which uses every value, or the interquartile range, which resists outliers. The range is for a quick sense of the overall width.