Average Calculator formula — how it actually works
The Average Calculator uses four short formulas, one per answer. Nothing is hidden: the page shows the sorted list and the sum, so every step can be checked.
This post states each formula plainly, then runs the tool’s own default numbers through all four: 12, 18, 24, 18 and 30.
The four formulas
Mean = sum of the numbers ÷ how many there are Median = the middle value once the list is sorted Mode = the value that appears most often Range = largest − smallest
For the median with an even count, there is no single middle value, so the calculator averages the two middle values. For 4, 8, 12 and 20 the two middle values are 8 and 12, so the median is (8 + 12) ÷ 2 = 10, while the mean is 44 ÷ 4 = 11.
Worked example
Start with 12, 18, 24, 18 and 30. The sum is 102 and there are 5 numbers, so the mean is 102 ÷ 5 = 20.4. Sorted, the list is 12, 18, 18, 24, 30, and the middle value — the third of five — is 18, so the median is 18. The value 18 appears twice and nothing else repeats, so the mode is 18. The range is 30 − 12 = 18.
12 + 18 + 24 + 18 + 30 = 102 Mean = 102 ÷ 5 = 20.4 Median = 18, Mode = 18, Range = 30 − 12 = 18
At a glance
The bars are 12, 18, 24, 18 and 30. The dashed line at 20.4 is the mean; the middle bar of the sorted list, 18, is the median.
The mistake to avoid
Sorting wrongly before finding the median. The median is the middle of the sorted list, not the middle of the list as typed. In 12, 18, 24, 18, 30 the third number as typed is 24, but sorted the third number is 18 — and 18 is the correct median. Always sort first.
Frequently asked questions
What is the formula for the mean?
Add all the numbers, then divide by how many there are. For 12, 18, 24, 18 and 30 that is 102 ÷ 5 = 20.4.
How is the median worked out for an even count?
Sort the list and average the two middle values. For 4, 8, 12 and 20 the median is (8 + 12) ÷ 2 = 10.
What if two values tie for most common?
The calculator reports the first value to reach the highest count. A list with a genuine tie has two modes, so treat that answer as a starting point and check the counts yourself.
Why is the mean 20.4 and not 20?
Because 102 divided by 5 is 20.4 exactly. Rounding it to 20 would throw away real value — the calculator keeps two decimal places rather than rounding to a whole number.
More guides on the Average Calculator
- How to use the Average Calculator — step by step
- Average Calculator explained with worked examples
- Average Calculator for beginners — start here
- Common mistakes people make with the Average Calculator
- Average Calculator vs doing it by hand — which is faster?
- average calculator — the complete guide
- How to get an accurate result from the Average Calculator
- Average Calculator for students — with examples
- Average Calculator for homeowners and DIYers
A free calculator that shows the mean, median, mode and range for any list of numbers.