Math calculators

Range Calculator

Updated Sep 1, 2026 By Infinity Calculator
Rate Formulas
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. 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.

Data Set: Type in your numbers separated by commas. For example, you might enter "3, 7, 12, 5, 9". You can enter as many numbers as you need. These are the values the calculator will use to find the range.

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. 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 numbers are far apart. 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. 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. Still, the range is a great starting point and is often the first measure of spread that students learn.

When Is the Range Used?

The range is used in many everyday situations. Teachers use it to see how varied student grades are. Weather forecasters use it to report the difference between high and low temperatures. Businesses use it to track changes in prices or sales. Anytime you want a quick idea of how much values differ, the range is a helpful tool.


Formulas used

Range
\text{Range} = X_{\max} - X_{\min}
Mean
\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n}
Median (odd n)
\tilde{x} = x_{\frac{n+1}{2}}
Median (even n)
\tilde{x} = \frac{x_{n/2} + x_{n/2+1}}{2}
Midrange
\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 separators can I use when entering data?

You can separate your numbers with commas, spaces, tabs, semicolons, or new lines. The calculator understands all of these. For example, you can type 5, 10, 15 or 5 10 15 or put each number on its own line.

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. 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. 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.