Education

How to Calculate Mean, Median and Mode (Worked Example)

ToolOrbit Team 2 min readUpdated
How to Calculate Mean, Median and Mode (Worked Example)

The word average hides three different ideas: mean, median, and mode. Pick the wrong one and your summary can mislead. The Average Calculator takes a list of numbers and reports all three at once, plus the range, sum, minimum, and maximum, so you can see the full shape of your data and choose the right figure for the job.

Three kinds of average

  • Mean: add every value and divide by how many there are. It uses all the data but is pulled around by extreme values.
  • Median: sort the values and take the middle one. For an even count, the median is the average of the two middle values. It resists outliers.
  • Mode: the value that appears most often. A list can have one mode, several, or none if every value is unique.
mean   = sum(values) / count
median = middle value (or average of two middle values)
mode   = most frequent value(s)
range  = max - min

Calculating mean, median and mode

Paste or type your numbers separated by commas, spaces, or new lines. The tool parses them, ignores stray separators, and instantly shows mean, median, mode, range, sum, count, minimum, and maximum. Everything is computed in your browser, so even a long list of sensitive figures stays on your machine.

A worked example

Take the values 4, 8, 8, 10, 12. The sum is 42 and the count is 5, so the mean is 42 divided by 5, or 8.4. Sorted, the middle value is 8, so the median is 8. The value 8 appears twice, more than any other, so the mode is 8. The range is the maximum 12 minus the minimum 4, which is 8.

Now add an outlier. With 4, 8, 8, 10, 120, the mean jumps to 30, but the median stays at 8. That gap is the clearest signal that an extreme value is distorting the mean, and that the median better represents a typical entry.

When your data has a few very large or very small values, report the median. The mean is best for symmetric data without outliers, like evenly spread test scores.

Choosing the right measure

Use the mean for things like average rainfall or grades where every value should count. Use the median for incomes, house prices, or response times, where a handful of large values would otherwise skew the picture. Use the mode for categories or repeated readings, such as the most common shoe size sold.

Seeing all the statistics together makes patterns obvious. If the mean and median are close, your data is fairly balanced. If they diverge, the Average Calculator has just told you to look closer before you trust a single number.


Tools mentioned

More reading

View all guides
How to Write Numbers in Words: Rules and Examples
Education

How to Write Numbers in Words: Rules and Examples

How numbers are spelled out in English: three-digit groups, scale words such as thousand and million, hyphens, and a worked example.

2 min readUpdated
How Roman Numerals Work: Symbols, Rules and Examples
Education

How Roman Numerals Work: Symbols, Rules and Examples

The seven Roman numeral symbols, the subtraction rule behind IV and IX, which forms are invalid, and a worked example.

2 min readUpdated
How to Tell if a Number Is Prime (with a Worked Example)
Education

How to Tell if a Number Is Prime (with a Worked Example)

How primality testing by trial division works, a worked example with factors, and where prime numbers matter in practice.

2 min readUpdated
How to Learn the Times Tables: Which Facts to Learn First
Education

How to Learn the Times Tables: Which Facts to Learn First

How a times table is built, a worked example, and an order for learning the multiplication facts that makes them quicker to remember.

2 min readUpdated
How to Calculate Weighted GPA on the 4.0 Scale
Education

How to Calculate Weighted GPA on the 4.0 Scale

The 4.0 grade point scale, how Honors and AP weighting changes the result, and a worked example.

2 min readUpdated
Mean vs Median vs Mode: Which Average Should You Use?
Education

Mean vs Median vs Mode: Which Average Should You Use?

They are all called "the average", but they answer different questions — and using the wrong one can badly mislead. Here is how to choose, with worked examples.

2 min readUpdated
What Is Base64? How Encoding Works and Common Mistakes
Developer

What Is Base64? How Encoding Works and Common Mistakes

What Base64 encoding actually does, where it is used, and the mistakes that cause broken or oversized output.

2 min readUpdated
encodeURI vs encodeURIComponent: Which One to Use
Developer

encodeURI vs encodeURIComponent: Which One to Use

How percent-encoding works, the difference between encoding a whole URL and a single component, and the mistakes that break links.

2 min readUpdated