Mean, Median & Mode Calculator
Enter a list of numbers to instantly find the mean, median, mode, range, sum, count and population standard deviation — with each statistic explained and worked examples.
Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser
What is a mean, median and mode calculator?
A mean, median and mode calculator is a tool that takes a list of numbers and instantly returns the three measures of central tendency — plus the range, sum, count and standard deviation. Together these statistics describe both the centre of your data (where the typical value sits) and its spread (how far values are scattered).
This tool accepts numbers separated by commas, spaces or new lines and reports six results: mean, median, mode, range, sum/count and the population standard deviation, each rounded to four decimal places.
How do you calculate the mean, median and mode?
Each statistic uses a distinct method. Here are the exact formulas this calculator applies.
- Mean (arithmetic average): add every value and divide by how many there are —
mean = Σx ÷ n. - Median: sort the values. With an odd count, the median is the single middle value. With an even count, it is the average of the two middle values.
- Mode: the value that occurs most frequently. If several values tie for the top frequency, all are modes (multimodal); if every value appears once, there is no mode.
- Range:
max − min— the spread between the largest and smallest values. - Population standard deviation:
σ = √( Σ(x − mean)² ÷ n ). The calculator divides byn, giving the population value.
| Statistic | Formula | What it tells you |
|---|---|---|
| Mean | Σx ÷ n | The average; the balance point |
| Median | Middle value (sorted) | The typical value, resistant to outliers |
| Mode | Most frequent value | The most common observation |
| Range | max − min | Total spread |
| Std. deviation (population) | √(Σ(x − mean)² ÷ n) | Average distance from the mean |
Worked example: a six-number data set
For the set 4, 8, 15, 16, 23, 42 (six values):
- Sum = 4 + 8 + 15 + 16 + 23 + 42 = 108, so the mean = 108 ÷ 6 = 18.
- Median: already sorted; the two middle values are 15 and 16, so median = (15 + 16) ÷ 2 = 15.5.
- Mode: every value appears once → none.
- Range = 42 − 4 = 38.
- Population standard deviation: the squared deviations from 18 are 196, 100, 9, 4, 25 and 576. Their sum is 910; divide by 6 to get variance = 151.6667, and √151.6667 ≈ 12.3153.
Worked example: a data set with a clear mode
For 2, 4, 4, 4, 5, 5, 7, 9 (eight values):
- Mean = 40 ÷ 8 = 5.
- Median: the 4th and 5th sorted values are 4 and 5, so median = (4 + 5) ÷ 2 = 4.5.
- Mode = 4 (it appears three times).
- Range = 9 − 2 = 7.
- Population standard deviation: squared deviations from 5 sum to 32; 32 ÷ 8 = 4, and √4 = 2.
If instead you treated these eight numbers as a sample, you would divide by n − 1 = 7: 32 ÷ 7 ≈ 4.5714, giving a sample standard deviation of about 2.1381. See the comparison below for why this matters.
When should you use the mean vs the median vs the mode?
Choose the measure that best matches your data’s shape and type.
- Mean — best for roughly symmetric numeric data with no extreme values (test scores, daily temperatures). It uses every data point.
- Median — best for skewed data or data with outliers (house prices, salaries, response times). It ignores how extreme the tails are.
- Mode — best for categorical or discrete data where you care about the most common option (shoe sizes, survey choices, the most-sold product).
| Situation | Best measure | Why |
|---|---|---|
| Symmetric, no outliers | Mean | Uses all data, most precise |
| Skewed or outlier-heavy | Median | Resistant to extreme values |
| Categories / repeated labels | Mode | Identifies the most common item |
| Need total then per-item | Mean | Derived directly from the sum |
How do outliers and skew affect the mean?
A single outlier can drag the mean far from the typical value, while the median barely moves. Consider 20, 22, 24, 25, 200:
- Mean = 291 ÷ 5 = 58.2 — higher than four of the five numbers.
- Median = 24 — squarely among the bulk of the data.
The lone value of 200 inflates the mean by more than 34 points, but the median stays anchored at 24. This is exactly why economists report median household income, not the mean: a small number of very high earners would otherwise distort the “average”. When the mean sits well above the median, the data is right-skewed; when it sits below, the data is left-skewed.
What is the difference between population and sample standard deviation?
The two differ only in the denominator. Population standard deviation divides the summed squared deviations by n; sample standard deviation divides by n − 1. This calculator reports the population value.
Use the population formula when your numbers represent the entire group you care about (every student in one class). Use the sample formula (n − 1, known as Bessel’s correction) when your numbers are a sample meant to estimate a larger population — dividing by n − 1 corrects the tendency of a sample to underestimate the true spread. The smaller your data set, the bigger the gap between the two, as the worked example above shows (2 vs 2.1381 for eight values).
| Measure | Denominator | Use when |
|---|---|---|
| Population (σ) | n | Data is the whole group |
| Sample (s) | n − 1 | Data is a sample of a larger group |
Real-world use cases
- Education: averaging exam marks (mean) or finding the most common grade (mode).
- Finance: comparing the median of returns to the mean to spot skew. For broader money tools see the percentage calculator and loan calculator.
- Health and fitness: summarising repeated measurements; pair it with the BMI calculator for body metrics.
- Surveys and research: reporting the mode of categorical answers and the standard deviation of ratings.
Tips and common mistakes
- Sort before finding the median by hand — forgetting to sort is the most frequent error.
- Don’t confuse “no mode” with “mode = 0”. If every value is unique there simply is no mode; zero is only the mode if 0 appears most often.
- Match the standard deviation to your goal — population (n) for a complete set, sample (n − 1) for an estimate.
- Watch your units. Mean and standard deviation share the data’s units; variance is in squared units.
- Check for typos in your input — a stray digit becomes an outlier and skews the mean.
Limitations and accuracy notes
The calculator works with the values you enter and rounds results to four decimal places, so very long decimals are truncated for display. Because it uses the population standard deviation, treat the spread figure accordingly and recompute with n − 1 if you need the sample value. Like any summary statistic, a single number can hide the shape of your data — a symmetric set and a wildly skewed one can share the same mean, so always look at the median, range and standard deviation together.
This tool is for educational and general analytical use; it is not a substitute for professional statistical advice on study design or inference.
Related tools
Explore more in the statistics category, or try the mixed number calculator, the square root calculator (handy for standard deviation work), the percentage calculator or the word counter.
Frequently asked questions
What is the difference between mean, median and mode?+
The mean is the average (sum ÷ count), the median is the middle value when the numbers are sorted, and the mode is the value that appears most often. They are the three common measures of central tendency.
How do you find the median of an even set of numbers?+
Sort the numbers and average the two middle values. For example, the median of 4, 6, 8, 10 is (6 + 8) ÷ 2 = 7. The calculator does this automatically.
Can a data set have more than one mode?+
Yes. If two or more values tie for the highest frequency the set is multimodal and all of them are modes. If every value appears exactly once there is no mode.
When should I use the median instead of the mean?+
Use the median when your data is skewed or contains outliers — such as house prices or incomes — because a few extreme values can pull the mean far from the typical value, while the median stays anchored in the middle.
Does this calculator use population or sample standard deviation?+
It reports the population standard deviation, dividing the squared deviations by n. If your numbers are a sample drawn from a larger group, divide by n − 1 instead to get the sample (unbiased) standard deviation.
What is the range and why does it matter?+
The range is the largest value minus the smallest value. It is the simplest measure of spread, but because it uses only two data points it is very sensitive to outliers.
How many decimal places does the calculator show?+
Results are rounded to four decimal places. Whole-number answers display without trailing zeros, so a mean of 18.0000 shows as 18.
How do I enter my numbers?+
Type or paste them into the box separated by commas, spaces or new lines — for example "4, 8, 15" or "4 8 15". Non-numeric text is ignored.