Mean, Median, Mode Calculator
Find any of the three classic measures of central tendency — mean, median, or mode — from a comma-separated list of numbers. Use the mean for symmetric data, the median for skewed data, and the mode for the most common value.
About this calculator
The three classic measures of central tendency answer the question "what is a typical value in this data?" — but each answers it differently and is appropriate for different situations. Mean = (x₁ + x₂ + ... + xₙ) / n is the arithmetic average; it uses every value and minimises the sum of squared deviations. It is the right choice for symmetric, outlier-free data, but a single extreme value can pull it far from the typical observation. Median is the middle value when the data is sorted: for an odd count it is the literal middle element, for an even count it is the average of the two middle elements. The median is robust to outliers because it does not care how extreme the tails are — only the rank ordering. Mode is the most frequent value; a dataset can have one mode (unimodal), multiple modes (bimodal, multimodal), or no mode if every value is unique. The mode is the only one of the three that works on categorical data (favourite colour, product category). Edge cases: with an empty input the calculator returns 0; with one value all three measures equal that value; if multiple values tie for most frequent, this calculator returns the first one encountered (a true multi-modal result is ambiguous and is best reported by listing all modes). For symmetric distributions all three converge to the same number; for right-skewed data (incomes, house prices, response times) mean > median > mode; for left-skewed data the order reverses. A useful rule: if mean and median differ noticeably, the median is usually the more honest summary of "typical".
How to use
Example 1 — Symmetric data, all three measures roughly equal. Enter Values = 4, 8, 15, 16, 23, 42 and Statistic = mean. Sum = 108, count = 6, so mean = 108 / 6 = 18.0. ✓ Switch Statistic to median: sorted = [4, 8, 15, 16, 23, 42]; with 6 values (even), median = average of 3rd and 4th = (15 + 16) / 2 = 15.5. Switch to mode: every value appears exactly once so there is no clearly repeated mode — the calculator returns the first value it encountered (4). Example 2 — Skewed data showing why mean and median diverge. Annual incomes of 7 employees: 35000, 38000, 42000, 45000, 48000, 52000, 320000. Enter Values = 35000, 38000, 42000, 45000, 48000, 52000, 320000 and Statistic = mean. Sum = 580,000; mean = 580,000 / 7 ≈ 82,857. ✓ Now switch to median: with 7 values (odd), median = 4th value = 45,000. ✓ The mean is nearly double the median because one high earner pulls the average up — the median (~$45,000) better represents what a typical employee makes. This is exactly the situation where you should prefer the median.
Frequently asked questions
When should I use the mean vs the median vs the mode?
Use the mean when your data is numeric, roughly symmetric, free of extreme outliers, and you need to do further calculations (variance, standard deviation, regression all build on the mean). Use the median when data is skewed or has outliers — incomes, house prices, response times, file sizes, recovery times — because the median tells you what is happening in the middle of the distribution without being distorted by extremes. Use the mode for categorical data (favourite colour, product category, response option), or for discrete numeric data where you want to know the most common value. Reporting all three together gives the fullest picture: if mean ≈ median ≈ mode, the distribution is roughly symmetric and any of them is fine; if they diverge, the divergence itself tells you something about the data's shape (skewness, outliers, multimodality).
Why does adding one outlier change the mean so much but not the median?
The mean is calculated using every value equally weighted, so adding one extreme value changes the sum by exactly that value and the divisor by one — net effect can be enormous. The median, by contrast, is calculated using only the rank position of values: adding one outlier at either end just shifts the middle element by one position in the sorted order, often by very little. Concrete example: data {1, 2, 3, 4, 5} has mean 3 and median 3. Add an outlier 100 → mean becomes 19.17, median becomes 3.5. The mean tripled while the median barely moved. This robustness is exactly why the median is preferred for "typical value" reporting whenever the data has heavy tails or contamination by outliers — and why "average" income reports almost always understate the typical earner's experience by quoting the mean.
Can a dataset have more than one mode?
Yes — a dataset is called bimodal if it has two values tied for most frequent, trimodal if three, and multimodal in general. A truly multimodal dataset often signals that the data comes from two or more distinct underlying populations (e.g., heights of men and women lumped together typically show two peaks). It can also occur in measurement data with rounding artifacts (people pick "round" numbers like 5, 10, 15 disproportionately). This calculator returns the first value it encounters that ties for highest frequency, which means in a perfectly multimodal dataset the answer is somewhat arbitrary — for serious reporting list all modes explicitly or visualise the distribution with a histogram. If every value appears exactly once, there is technically no mode at all; convention varies on whether to say "no mode" or "every value is a mode". The mode is the least-reported of the three central-tendency measures because of these ambiguity issues.
What are the most common mistakes people make with central-tendency measures?
The first is reporting the mean on heavily skewed data and giving readers a misleading sense of "typical" — this is everywhere in income, sales, and performance reporting. The second is computing the mean of percentages or rates without weighting by the underlying base (e.g., averaging the win rates of two teams that played different numbers of games gives the wrong answer). The third is computing the median of grouped or summary data without realising it requires interpolation, not just the middle bin. The fourth is reporting the mode on continuous data where every value is unique — the result is essentially meaningless; bin the data first or report the mode of the histogram peak instead. Finally, people often forget that none of the three is meaningful in isolation — always pair them with a spread measure (standard deviation, interquartile range) and ideally a visualisation; central tendency alone hides everything important about the distribution's shape.
When should I not use this calculator?
Skip it for datasets longer than a few dozen values that would be tedious to type in — use a spreadsheet (AVERAGE, MEDIAN, MODE functions) or a statistics package instead. Do not rely on the mode output for continuous data where every value is essentially unique — the result is arbitrary; report a distribution plot or peak of the histogram instead. It is the wrong tool for grouped or frequency-table data without first expanding the groups back into individual values. Do not use the mean here for percentages, ratios, or growth rates; for those, the geometric mean is mathematically correct (e.g., averaging +10%, −5%, +15% returns over three years). It is also the wrong choice for time-series autocorrelated data, weighted data, or stratified samples — each of which has its own appropriate summary. For rigorous statistical work involving confidence intervals, hypothesis tests, or model fitting, use proper statistical software rather than a quick central-tendency calculator.