Range Calculator Formula
Understand the math behind the range calculator. Each variable explained with a worked example.
Formulas Used
Range
range_result = max_val - min_valMidrange
midrange = (max_val + min_val) / 2Variables
| Variable | Description | Default |
|---|---|---|
max_val | Maximum Value | 95 |
min_val | Minimum Value | 22 |
How It Works
How to Calculate the Range
Formula
Range = Maximum Value - Minimum Value
The range is the simplest measure of spread. It tells you the total span of the data but is highly sensitive to outliers because it depends only on the two most extreme observations.
Midrange
The midrange is the average of the maximum and minimum: (Max + Min) / 2. It estimates the center of the data using only the extremes.
Worked Example
A dataset has a maximum of 95 and a minimum of 22. Find the range.
max_val = 95min_val = 22
- 01Range = 95 - 22 = 73
- 02Midrange = (95 + 22) / 2 = 58.5
Ready to run the numbers?
Open Range Calculator