Home/Statistics/Mean Median Mode Range Calculator

Mean Median Mode Range Calculator

Calculate mean, median, mode and range instantly, with full step-by-step working. Supports a raw data list, a frequency table, or grouped class-interval data.

Quick Answer: How Do You Calculate Mean, Median, Mode and Range?

Mean: add all values, divide by how many there are. Median: sort the values and take the middle one (or average the two middle values if there's an even count). Mode: the value that appears most often. Range: the highest value minus the lowest. Mean is pulled around by extreme values; median usually isn't — which is exactly why house-price and income statistics use median, not mean.

Enter Data

Separate values with commas, spaces or new lines. Repeated values are fine and expected.

Results
Mean, Median, Mode & Range

StatisticValue
Quick Formula Summary
Mean: x̄ = Σx / n
Median (odd n): middle value of sorted data  |  Median (even n): average of the two middle values
Mode: the most frequently occurring value(s) — can be one, several, or none
Range: max − min
Grouped mean: Σ(f × midpoint) / Σf
Grouped median: L + ((N/2 − CF)/f) × h
Grouped mode: L + ((f₁−f₀)/((f₁−f₀)+(f₁−f₂))) × h

Mean, Median, Mode & Range Guide

What Is the Mean?

The mean (average) is the sum of all values divided by how many values there are. It's the most familiar measure of central tendency, but it has a real weakness: a single extreme value can drag it far from what most of the data actually looks like.

Mean = (sum of all values) / (count of values)

What Is the Median?

The median is the middle value when the data is sorted from smallest to largest. With an odd number of values, it's the single middle one. With an even number, it's the average of the two middle values. The median doesn't care how extreme the highest or lowest value is — only its position matters.

Odd count: middle value  |  Even count: average of the two middle values

What Is the Mode?

The mode is the value that occurs most often. A data set can have exactly one mode (unimodal), two (bimodal), three or more (multimodal), or none at all if every value occurs the same number of times.

What Is the Range?

The range is the simplest measure of spread: the highest value minus the lowest. It's easy to calculate but very sensitive to a single extreme value, the same weakness the mean has.

Why Mean and Median Can Tell Very Different Stories

This is the single most important idea on this page, and it's easiest to see with real numbers. Take six house sale prices, in thousands: 250, 275, 280, 290, 300, and 2500 (that last one is a mansion sale in the same suburb).

Mean vs median with one extreme value

Mean = (250+275+280+290+300+2500) / 6 = 649.17 (thousand)
Median = (280+290) / 2 = 285 (thousand)
Every single one of the other five houses sold for under 300 — the mean of 649 doesn't represent a single one of them. The median of 285 is a genuinely typical price. This is exactly why real estate reports and government income statistics use median, not mean.

The mode and range behave differently again: removing the mansion changes the range enormously (from 2250 down to 50) but might not touch the mode at all. All four statistics measure something different, and a full picture needs all of them, not just one.

When There's No Mode, or More Than One

Students often expect every data set to have exactly one mode, but that's not guaranteed:

ℹ️ A calculator that silently reports only the first mode it finds is misleading with bimodal or multimodal data. This calculator always reports every tied mode explicitly, and says so clearly when there isn't one at all.

Mean, Median and Mode for Grouped Data

When data is already summarised into class intervals (for example, "10–20 years old: 8 people"), you no longer know the exact individual values — only which class they fall into. The formulas below are the standard estimation method used across statistics courses worldwide:

Mean = Σ(f × midpoint) / Σf
Median = L + ((N/2 − CF)/f) × h   (L = lower boundary of the median class, CF = cumulative frequency before it, f = its frequency, h = class width)
Mode = L + ((f₁−f₀)/((f₁−f₀)+(f₁−f₂))) × h   (L = lower boundary of the modal class, f₁ its frequency, f₀ and f₂ the frequencies of the classes before and after it)

Verified worked example

Classes 0–10, 10–20, 20–30, 30–40, 40–50 with frequencies 5, 8, 15, 16, 6 (total 50 observations)
Mean = 27, Median = 28, Mode ≈ 30.91

Mean vs Median: Which Should You Use?

SituationBetter choiceWhy
Symmetric data, no extreme valuesMeanUses every value, most statistically efficient
Income, house prices, wealthMedianA few very high values would drag the mean far from what's typical
Test scores with one very low or missed testMedianOne zero or missed exam shouldn't dominate a whole term's average
Categorical or non-numeric-feeling data (shoe size, favourite colour)ModeMean and median may not even make practical sense

Real-World Applications

FieldUse
EducationClass average test scores (mean), the "typical" student's mark (median), the most common grade (mode)
EconomicsMedian household income and median house price, specifically to avoid a handful of very high earners or very expensive properties distorting the picture
Sports statisticsBatting averages, point averages (mean); most frequent final score in a season (mode)
Quality controlRange monitors how much a measured dimension varies across a production run
RetailMode identifies the best-selling size or variant; mean/median inform typical basket value

Common Mistakes

MistakeFix
Forgetting to sort the data before finding the medianThe median is a position in sorted order, not the middle of however the data happened to be typed in
Reporting only one mode when a data set is bimodalCheck for ties at the highest frequency — there can genuinely be two or more modes
Assuming every data set has a modeIf every value is unique, there is no mode at all — that's a valid, expected result
Using the mean on heavily skewed dataFor income, prices, or anything with a long tail of extreme values, median is usually more representative
Using exact ungrouped formulas on grouped dataGrouped data needs the interpolation formulas — individual values inside a class interval are genuinely unknown
⏱️ Last Updated: August 2026 | Reviewed by Mohsin Iqbal

🔑 Key Takeaways

  • Mean uses every value but is easily pulled off-centre by extreme values
  • Median only depends on position in sorted order — far more resistant to outliers
  • A data set can have zero, one, two, or more modes — check for ties, don't assume there's exactly one
  • Range is simple but extremely sensitive to a single extreme value, just like the mean
  • Grouped data needs interpolation formulas — individual values inside a class interval are genuinely unknown, not estimated by guesswork

Practice Questions

Beginner (with answers)

  1. Find the mean, median and range of {4, 8, 6, 5, 3}.
  2. Find the mean and median of {12, 15, 12, 18, 20, 12}. What is the mode?
  3. Find the median of {1, 2, 3, 4, 5, 6}.
  4. A data set is {7, 7, 8, 8, 9}. Is it unimodal, bimodal, or does it have no mode?
  5. What is the range of {100, 102, 98, 250, 101}?
Show answers

1) mean=5.2, median=5, range=5   2) mean≈14.83, median=13.5, mode=12   3) median=3.5 (even count, average of 3 and 4)   4) Bimodal — 7 and 8 both appear twice   5) range=250−98=152

Advanced (with answers)

  1. Find the mean and median of {5, 7, 7, 9, 10, 20}. Which is more representative, and why?
  2. A frequency table shows value 5 with frequency 3, and value 8 with frequency 2. Find the mean.
  3. Grouped data: classes 0–10 (freq 5), 10–20 (freq 8), 20–30 (freq 15), 30–40 (freq 16), 40–50 (freq 6). Find the mean.
  4. Using the same grouped data as Q3, find the median.
  5. Using the same grouped data as Q3, find the mode.
Show answers

1) mean≈9.67, median=8 — median is more representative since 20 is an outlier pulling the mean up   2) mean=(5×3+8×2)/5=6.2   3) mean=27   4) median=28   5) mode≈30.91

Formula Cheat Sheet

Quick Reference

Mean: x̄ = Σx / n  |  Median (odd n): middle value  |  Median (even n): average of two middle values
Mode: most frequent value(s)  |  Range: max − min  |  Midrange: (max + min) / 2
Grouped mean: Σ(f×midpoint) / Σf  |  Grouped median: L + ((N/2−CF)/f)×h  |  Grouped mode: L + ((f₁−f₀)/((f₁−f₀)+(f₁−f₂)))×h

Glossary

Central tendency
A single value that attempts to describe the "centre" or typical value of a data set — mean, median and mode are the three standard measures.
Outlier
A data point far removed from the rest of the data set, capable of dramatically shifting the mean and range while barely affecting the median or mode.
Bimodal / multimodal
A data set with two (bimodal) or three-plus (multimodal) values tied for the highest frequency.
Class interval
A range of values (e.g. 10–20) used to group continuous data into a frequency table when individual values aren't recorded separately.
Midrange
The average of the maximum and minimum values — a quick, rough measure of centre, distinct from the mean or median.

Frequently Asked Questions