BY: Statistics Fundamentals Team
Reviewed By: Minsa A (Senior Statistics Editor)

Mean Median Mode Comparison Visualizer

Paste any dataset to calculate mean, median, and mode side by side — then see how all three sit on an interactive histogram. Watch in real time how a single outlier shifts the mean while leaving the median untouched, or how a bimodal dataset separates into two distinct peaks.

Mean / Median / Mode Comparison Visualizer

Mean Σx / n Median Middle value (sorted) Mode Most frequent value
Paste any numbers: exam scores, salaries, measurements, prices — up to 10,000 values.
Input Value | Frequency pairs Use when data is already grouped
Separate value and frequency with a comma or space. One pair per line.
Mode Side-by-side central tendency comparison

Dataset A

Dataset B

Example Datasets

Click any example to load it into the visualizer above

Mean, Median, and Mode: The Three Measures of Central Tendency

Central tendency describes the center of a dataset — where values cluster. Three statistics measure it: the mean (arithmetic average), the median (middle value in sorted order), and the mode (most frequently occurring value). Each answers the same question — "what is a typical value?" — but from a different angle, and each has real advantages depending on your data's shape and what you need to communicate.

In a perfectly symmetric, bell-shaped distribution, all three sit at the same point. Real data rarely behaves that way. A single extreme value can drag the mean far from the bulk of the data while leaving the median unchanged. That one difference determines which statistic belongs in a news headline, a research paper, or a business report.

Arithmetic Mean

The mean sums every value and divides by the count. It uses every data point, which gives it high statistical efficiency — but also makes it sensitive to outliers. Remove or add one extreme value and the mean shifts. That's why income reports use median household income rather than mean: a handful of billionaires would pull the average far above what most families earn.

Arithmetic Mean Formula x̄ = (x₁ + x₂ + … + xₙ) / n = Σxᵢ / n

Median

Sort the dataset from smallest to largest. If the count is odd, the median is the exact middle value. If even, it is the mean of the two middle values. The median is resistant to outliers because extreme values only count as "one observation" — they cannot pull the median toward the tail. Real estate professionals, economists, and epidemiologists favor the median for this reason.

n (count)Median positionExample datasetMedian
Odd (n = 5)Position (n+1)/2 = 3rd value2, 4, 7, 11, 157
Even (n = 6)Average of positions n/2 and n/2+12, 4, 7, 11, 15, 20(7+11)/2 = 9
Even with outlier (n = 6)Same positions — outlier ignored2, 4, 7, 11, 15, 9,0009 (unchanged)

Mode

The mode is the value that appears most often. Unlike the mean and median, it can be used with non-numeric data — survey responses, colors, product categories. A dataset can have no mode (all values unique), one mode (unimodal), or multiple modes (bimodal, multimodal). A bimodal distribution often signals two distinct subgroups in the data, which is itself an important finding.

How Skewness Separates the Three Measures

Skewness is the key to reading which measure matters. In a right-skewed (positively skewed) distribution — common in income, property prices, and waiting times — the long tail stretches to the right and pulls the mean in that direction. The sequence becomes mode < median < mean. In a left-skewed distribution the tail pulls left and the order reverses: mean < median < mode. This pattern, known as Pearson's empirical relationship, is captured in the approximation: Mode ≈ 3·Median − 2·Mean.

Distribution typeOrder of measuresBest measureReal-world examples
Symmetric / NormalMean = Median = ModeMean or median (equal)Exam scores, heights, measurement errors
Right-skewed (positive)Mode < Median < MeanMedianIncome, housing prices, reaction times
Left-skewed (negative)Mean < Median < ModeMedianAge at retirement, test score floors
BimodalTwo modes; mean between peaksMode (both peaks)Mixed populations, two product price points

Worked Examples: When the Choice of Measure Changes the Story

Corporate salaries (outlier effect): Nine employees earn $45,000 and one executive earns $450,000. Mean = $85,500 — a figure that describes no one on the payroll accurately. Median = $45,000. Mode = $45,000. Here the median and mode give a far more representative picture of what a typical worker earns.
Real estate neighborhood: Five homes sell for $210k, $215k, $220k, $225k, $230k, and one luxury property for $950k. Mean = $341,667. Median = $222,500. A buyer researching "typical" home prices in that neighborhood gets an answer $119k too high from the mean alone.
Shoe inventory: A retailer stocks sizes 6 through 14. The mean shoe size is 9.2 and the median is 9. Neither tells the buyer which single size to restock most. The mode — say, size 10 — is the answer the business actually needs.
Exam grades (symmetric data): A class with scores normally distributed around 74 with SD = 10. Mean ≈ Median ≈ Mode ≈ 74. All three agree, so any of them accurately describes a typical score, and reporting the mean is fine because it carries the most statistical information.

Decision Matrix: Choosing the Right Measure

MeasureBest forSensitive to outliers?Data typesWhen to avoid
MeanSymmetric distributions, hypothesis testing, inferential statsYes — high sensitivityContinuous, interval, ratioSkewed data, extreme outliers present
MedianSkewed data, income/price distributions, ordinal dataNo — outlier-resistantOrdinal, interval, ratioWhen every data point's magnitude matters
ModeCategorical data, inventory, most popular itemNoNominal, ordinal, discreteContinuous data with no repeating values

Related Topics on Statistics Fundamentals

Sources & further reading:

Frequently Asked Questions

The mean is the sum of all values divided by the count — it uses every data point. The median is the middle value when the dataset is sorted in ascending order; half the data falls above it, half below. The mode is the value that appears most frequently. In a symmetric distribution all three are equal; in a skewed distribution they diverge, with the mean pulled toward the long tail while the median remains anchored near the center.

Use the median whenever your data is skewed or contains outliers that could distort the mean. Income distributions, housing prices, and test scores with hard ceilings or floors are classic examples. The U.S. Census Bureau reports median household income precisely because a small number of very high earners would push the mean well above what most families actually bring home.

Yes. When two values share the highest frequency, the dataset is bimodal. Three or more equally frequent peak values make it multimodal. If every value appears exactly once, there is no mode at all. Bimodal distributions often reveal that two distinct groups are mixed together in the data — for example, measuring heights of a combined male and female population.

The mean is the arithmetic average, so every value — including an extreme one — contributes its full magnitude to the sum. One very large or very small observation shifts the mean substantially. The median only cares about position (which value sits in the middle), not magnitude. Adding a single extreme outlier to a dataset moves it from position n to position n+1 in the sorted list, but the middle value shifts by only half a position — a negligible change. This resistance to outliers is the median's defining statistical property.

If mean > median, the distribution is right-skewed (positive skew) — there are a few high values pulling the mean up. If mean < median, the distribution is left-skewed (negative skew). When mean ≈ median, the distribution is roughly symmetric. This relationship is formalized in Pearson's empirical rule: Mode ≈ 3·Median − 2·Mean, which works well for moderately skewed unimodal distributions. The visualizer above shows this separation on the histogram in real time as you change your dataset.

The median is the standard choice for salary and income data. Salary distributions are almost always right-skewed: most workers cluster around lower to middle pay, with a smaller number of high earners extending the tail. The mean gets pulled toward those high earners and overstates what a typical worker makes. The median gives the value that splits the workforce exactly in half — a far more representative figure for most purposes. For the most common salary at a firm, the mode is also informative alongside the median.