Math calculators

Range Calculator

Updated Nov 22, 2026 By Infinity Calculator Formulas Sources
2.8 · Rate
Enter individual data values separated by commas, spaces, tabs, semicolons, or newlines.
Range of the Dataset
36
Data Summary
Minimum
2
Maximum
38
Count (n)
7
Mean
22.14
Median
23
Midrange
20
Step-by-Step Calculation
Step 1: Sort the Data
2, 10, 21, 23, 23, 38, 38
Step 2: Identify Minimum and Maximum
Minimum = 2, Maximum = 38
Step 3: Calculate the Range
Range = Maximum − Minimum = 38 − 2 = 36
Data Visualization

Introduction

The range calculator is a simple statistics tool that finds the difference between the highest and lowest values in a data set.1 The range tells you how spread out your numbers are. To find the range, you subtract the smallest number from the largest number. For example, if your data set is 3, 7, 10, and 15, the range is 15 − 3 = 12. This is one of the easiest ways to measure how much your data varies. Use this calculator to quickly find the range of any set of numbers you enter.

How to Use Our Range Calculator

Enter a set of numbers and this calculator will find the range, which is the difference between the highest and lowest values in your data set.

Input Mode: Choose Plain Data to type a list of numbers, Frequency Table to type each value once with how many times it appears, or Grouped Data to type class intervals with how many values fall in each.

Dataset: In Plain Data mode, type your numbers separated by commas, spaces, tabs, semicolons or new lines. For example, you might enter "3, 7, 12, 5, 9". Fractions such as 3/4 are accepted. Type large numbers without commas (1000, not 1,000), because a comma starts a new value. Enter at least two numbers. These are the values the calculator will use to find the range.

In Frequency Table mode, put the values on the first line and their frequencies on the second line after f:, for example "1.1 2.5 3.99" and then "f: 5 10 15". In Grouped Data mode, put the class intervals on the first line, such as "10-20 20-30", and on the second line their frequencies after f: or their cumulative frequencies after cf:. In both modes the frequencies must add up to at least 2.

What Is the Range in Statistics?

The range is one of the simplest ways to measure how spread out a set of numbers is. To find the range, you subtract the smallest number in your data set from the largest number.1 That's it!

Range = Largest Value − Smallest Value

A Quick Example

Say you have these test scores: 72, 85, 91, 64, and 88. The largest value is 91 and the smallest value is 64. So the range is 91 − 64 = 27. This tells you that the scores are spread across 27 points.

Why Is the Range Useful?

The range gives you a fast snapshot of how much your data varies. A small range means the numbers are close together, while a large range means the highest and lowest values are far apart, even when most of the other numbers are close together.1 For example, if everyone in your class scored between 88 and 92 on a quiz, the range is only 4, so the scores are very consistent. But if scores went from 45 to 99, the range is 54, showing a big difference between the highest and lowest performers.

Limitations of the Range

While the range is easy to calculate, it only looks at two numbers: the maximum and the minimum.1 This means a single outlier (an unusually high or low value) can make the range misleading. For a deeper understanding of how spread out your data is, statisticians also use measures like the interquartile range (IQR), variance, and standard deviation.1 Still, the range is a quick and simple place to start, and it is often the first measure of spread that students learn.

When Is the Range Used?

The range is used in many everyday situations. Teachers can use it to compare how spread out the test grades are in two classes. Weather services use it for the diurnal temperature range, the difference between the night's low and the day's high. It is also used in quality control because it is simple to work out.1 Businesses use it to track how much prices or sales move. Anytime you want a quick idea of how much values differ, the range is a helpful tool.


Formulas used

Range 1
\text{Range} = X_{\max} - X_{\min}
Mean 2
\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n}
Median (odd n, data sorted from smallest to largest) 2
\tilde{x} = x_{\frac{n+1}{2}}
Median (even n, data sorted from smallest to largest) 2
\tilde{x} = \frac{x_{n/2} + x_{n/2+1}}{2}
Midrange 2
\text{Midrange} = \frac{X_{\min} + X_{\max}}{2}
Range (Grouped Data)
\text{Range} = U_{\text{highest}} - L_{\text{lowest}}

Frequently asked questions

What is the formula for range?

The formula for range is simple: Range = Maximum Value − Minimum Value. You find the biggest number in your data set, find the smallest number, and subtract. For example, if your data is 4, 8, 15, and 20, the range is 20 − 4 = 16.

Can the range be negative?

No, the range can never be negative. The range is always zero or a positive number because you always subtract the smaller value from the larger value. If all your numbers are the same, the range is 0. Otherwise, it will always be a positive number.

What is the midrange and how is it calculated?

The midrange is the number exactly halfway between the smallest and largest values in your data set. The formula is: Midrange = (Minimum + Maximum) ÷ 2.2 For example, if the minimum is 10 and the maximum is 30, the midrange is (10 + 30) ÷ 2 = 20.

What does cumulative frequency mean in grouped data?

Cumulative frequency is a running total of frequencies. Instead of listing how many values fall in each class, you list the total count up to and including that class. Use the cf: prefix on the second line. The calculator will convert cumulative frequencies into regular frequencies automatically.

What is the difference between range and interquartile range?

The range uses only the highest and lowest values, so one extreme number can change it a lot.1 The interquartile range (IQR) measures the spread of the middle 50% of your data by subtracting the first quartile from the third quartile. The IQR is less affected by outliers and gives a better picture of typical spread.1


Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale. National Institute of Standards and Technology. § 1.3.5.6. Accessed September 28, 2026.
  2. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.1 Measures of Location. National Institute of Standards and Technology. § 1.3.5.1. Accessed September 28, 2026.