Math & Statistics

Statistics calculator

Mean Median Mode Calculator

Calculate mean, median, mode, and range for a dataset. Enter up to 8 values to find all four measures of central tendency and spread in one step.

Updated 3 June 2026No sign-in requiredMath & Statistics calculator

Enter Your Numbers

1
2
3
4
5

5 values · zero is treated as real data.

Mean (Average)

5.8000

Sum ÷ count of values.

Median

7.0000

Middle value when sorted; average of two middle values for even count.

Mode (most frequent)

7.0000

Most frequently occurring value. 0 shown when all values are unique (no mode).

Range

7.0000

Max minus min.

Sum

29.0000

Total of all values.

Count (n)

5

Number of values in dataset.

Report an issue

Mean vs Median vs Mode

Add your numbers to see the visual breakdown.

Summary of Computed Statistics

Central tendency and spread for the values you entered, recomputed from your inputs.

StatisticValue
Count (n)5
Sum29
Mean (average)5.8
Median7
Mode7
Minimum2
Maximum9
Range (max − min)7

How It Works

The mean (arithmetic average) is the most common measure of central tendency — calculated by summing all values and dividing by count.

Mean = Σx / n | Median = middle value of sorted data | Mode = most frequent value | Range = max − min
  • The median is the middle value of a sorted dataset — more robust to outliers than the mean.
  • The mode is the most frequently occurring value — useful for categorical or discrete data.
  • The range measures spread: the distance from the smallest to the largest value.

Worked Example

Dataset: 4, 7, 2, 7, 9 (n = 5).

Sum

4 + 7 + 2 + 7 + 9 = 29

Mean

29 / 5 = 5.8

Sorted

2, 4, 7, 7, 9

Median

7 (middle value)

Mode

7 (appears twice)

Range

9 − 2 = 7

The dataset has a mean of 5.8 but a median of 7 — the two low values (2 and 4) pull the mean below the middle.

Mean, Median, Mode, and Range Explained

Four summary statistics at once

This tool computes the four basic summary statistics for a dataset at once: the mean, the median, the mode, and the range. The first three describe the "center" of your data from different angles, while the range describes how far it spreads from smallest to largest.

Seeing all four together is genuinely useful, because no single measure tells the whole story. A class’s average score, its middle score, its most common score, and the gap between best and worst each answer a different question about the same numbers.

How each measure is defined

The mean is the arithmetic average: add every value and divide by how many there are. The median is the middle value once the data is sorted — and for an even count, it is the average of the two middle values. The mode is whichever value appears most often.

The range rounds out the picture as a measure of spread, equal to the maximum minus the minimum. Center plus spread is the minimum you need to describe a dataset meaningfully.

When to use mean versus median

The mean uses every value, which makes it powerful but also sensitive: a few extreme numbers can pull it far from the typical value. The median ignores how extreme the outliers are and just reports the middle, so it resists distortion.

That is why incomes and house prices are usually reported as medians — a handful of very high values would inflate the mean and overstate what is "typical." For roughly symmetric data with no outliers, the mean and median land close together.

Reading skew from the numbers

Comparing the mean and median reveals the shape of the data. When the mean sits above the median, the distribution is skewed to the right, dragged up by high values; when it sits below, it is skewed left. When all three measures coincide, the data is symmetric.

The mode adds a third reference point. In a clean bell shape, mean, median, and mode all stack on top of one another, so any gap between them is a quick visual cue that the data leans one way.

A worked example

For the dataset 4, 7, 2, 7, 9, the sum is 29, so the mean is 29 ÷ 5 = 5.8. Sorting gives 2, 4, 7, 7, 9, so the median is the middle value, 7, and the mode is also 7 because it appears twice. The range is 9 − 2 = 7.

Notice the mean (5.8) sits below the median (7): the two low values, 2 and 4, pull the average down. That gap is a small example of left skew, and it shows why reporting only the mean could understate the typical score here.

No mode, ties, and what the range misses

If every value is unique there is no mode, and the calculator shows 0 to signal that. When two or more values tie for most frequent, only the first is reported, so multimodal data is summarized loosely. The range, meanwhile, reflects just the two extreme points and ignores everything in between.

The tool handles up to eight values, which suits homework and quick checks rather than large datasets. As always, set the count to match exactly how many values you entered so the statistics are based on the right numbers.

Assumptions & Best Uses

  • All values are numeric. Set "Number of Values" correctly to match data entered.
  • Mode shows the first/smallest mode if multiple values tie for most frequent.
  • If all values are unique, mode displays 0 (no mode).

Limitations

  • This calculator finds the primary mode only. Bimodal or multimodal distributions show just one mode.
  • Supports up to 8 values. Use a spreadsheet for larger datasets.
  • Mean is sensitive to outliers; for skewed distributions, report median alongside mean.

Frequently Asked Questions

What is the difference between mean, median, and mode?

Mean (average) is the sum divided by count — affected by outliers. Median is the middle value in sorted order — resistant to outliers. Mode is the most common value — most useful for categorical data. For symmetric distributions they are all equal; for skewed distributions they differ.

When should I use median instead of mean?

Use median when the data is skewed or contains outliers. Examples: house prices (a few mansions skew the mean upward), incomes (a few billionaires inflate the average), or test scores when a few very low scores drag down the mean. The median gives a better picture of the "typical" value.

Can a dataset have more than one mode?

Yes. A dataset is "unimodal" if one value appears most often, "bimodal" if two values tie, and "multimodal" if three or more tie. If all values appear the same number of times (each once), there is technically no mode. This calculator shows the first (smallest) mode if multiple exist.

What does it mean when mean > median?

When mean > median, the distribution is positively skewed (right-skewed) — there are high outliers pulling the mean up. When mean < median, it’s negatively skewed (left-skewed). For a perfectly symmetric distribution, mean = median = mode.

What is the range and why is it limited?

The range is simply the largest value minus the smallest, giving a quick sense of total spread. Its weakness is that it depends entirely on the two most extreme values, so a single outlier can blow it up. For a more robust picture of spread, pair it with the standard deviation or interquartile range.

Can a dataset have no mode?

Yes. If every value appears exactly once, there is no value that occurs more often than the others, so the dataset has no mode. This calculator shows 0 in that case. A dataset can also be bimodal, with two values tied for the most frequent.

Sources & References

Figures on this page are checked against primary, authoritative sources. Links open in a new tab.

Related Calculators

Note

This calculator is an educational tool. For graded coursework, exams, or professional work, double-check the method and rounding against your own requirements.

Built and maintained by Calculator Matters, an independent calculator project. Method checked against published formulas and primary sources · Last reviewed 3 June 2026 · How we calculate · Found an error? corrections@calculatormatters.com