Range Calculator Formula

Understand the math behind the range calculator. Each variable explained with a worked example.

Formulas Used

Range

range = max_val - min_val

Minimum

minimum = min_val

Maximum

maximum = max_val

Mean

mean = (a + b + c + d) / 4

Midrange

midrange = (min_val + max_val) / 2

Variables

VariableDescriptionDefault
aValue 115
bValue 228
cValue 37
dValue 442
min_valDerived value= min(min(a, b), min(c, d))calculated
max_valDerived value= max(max(a, b), max(c, d))calculated

How It Works

How to Calculate the Range

Formula

Range = Maximum Value - Minimum Value

The range is the simplest measure of spread in a data set. It tells you the total span of your data.

The midrange is the average of the minimum and maximum: (min + max) / 2.

Worked Example

Find the range of the values 15, 28, 7, and 42.

a = 15b = 28c = 7d = 42
  1. 01Minimum = 7
  2. 02Maximum = 42
  3. 03Range = 42 - 7 = 35
  4. 04Midrange = (7 + 42) / 2 = 24.5

Ready to run the numbers?

Open Range Calculator