Mean Calculator Formula
Understand the math behind the mean calculator. Each variable explained with a worked example.
Formulas Used
Mean
mean = (a + b + c + d) / 4Sum
sum = a + b + c + dRange
range = max(max(a, b), max(c, d)) - min(min(a, b), min(c, d))Variables
| Variable | Description | Default |
|---|---|---|
a | Value 1 | 12 |
b | Value 2 | 18 |
c | Value 3 | 24 |
d | Value 4 | 30 |
mean_val | Derived value= (a + b + c + d) / 4 | calculated |
How It Works
How to Calculate the Mean
Formula
Mean = (x₁ + x₂ + x₃ + ... + xₙ) / n
The arithmetic mean is the most common type of average. Add all values together and divide by the number of values.
Worked Example
Find the mean of 12, 18, 24, and 30.
a = 12b = 18c = 24d = 30
- 01Sum = 12 + 18 + 24 + 30 = 84
- 02Count = 4
- 03Mean = 84 / 4 = 21
Ready to run the numbers?
Open Mean Calculator