Mean, Median, and Mode Calculator
Free mean, median, and mode calculator: paste a dataset and get the arithmetic mean, median, mode(s), range, and count instantly, with worked steps and theory.
Mean, Median, and Mode Calculator
Background.
The Quanta mean, median, and mode calculator takes any list of numbers — pasted as a JSON array, copied out of a spreadsheet column, or typed in as a comma-separated line — and returns the three classical measures of central tendency together with the range and the sample size. The arithmetic mean is what most people call the "average": add every value, divide by how many there are. The median is the middle value once the data is sorted from smallest to largest, the single number with as much data above it as below. The mode is the value that occurs most often — and unlike the other two it can be undefined (when every value is unique) or multi-valued (when several values tie for the most frequent).
Knowing all three at once matters because each one tells a different story about the same data, and the gap between them is itself diagnostic. When the mean and median sit on top of each other, the distribution is roughly symmetric and any of the three is a reasonable summary. When the mean is dragged noticeably above the median, the data is right-skewed — a long tail of large values is pulling the average up, the way a single billionaire pulls up the mean income of a small town while leaving the median untouched. When the mean sits below the median, the data is left-skewed — there is a long tail of small values, characteristic of test scores with a ceiling, response times measured against a deadline, or ages at retirement.
The U.S. Census Bureau, the IRS, and almost every economic statistics agency reports income with the median rather than the mean precisely because incomes are heavily right-skewed: the 2024 U.S. real median household income was $80,610 while the mean was over $114,000 — the $33,000 gap is the contribution of the right tail and is exactly the reason "average household income" headlines can be misleading.
This page goes well beyond the arithmetic. It walks through when each measure is the right one — mean for symmetric, interval-scaled data; median for skewed or ordinal data and any time outliers are present; mode for categorical, nominal, or strictly discrete data — and how to read bimodal distributions, where two distinct peaks suggest that two different populations have been pooled into the same dataset (a classic example is the bimodal distribution of body temperature once you mix men and women, or the bimodal distribution of geyser eruption intervals at Old Faithful). It explains the difference between population and sample statistics, why the median is a 50th-percentile quantile and how that generalises to quartiles and percentiles, and why range is a useful but fragile companion to standard deviation. Worked examples cover test scores, house prices (where the median is the only honest summary), response times in user-experience research, and the Old Faithful eruption-interval dataset that statistics professors love because its bimodality jumps off the page.
Whether you arrived here to finish a homework set, sanity-check a spreadsheet column, decide which average to put in a report, or understand why the U.S. Census never reports a mean income, the calculator above and the explainer below cover every variant of the question.
What is mean, median, and mode calculator?
Mean, median, and mode are the three classical measures of central tendency — single numbers that summarise where a dataset "sits" on the number line. The arithmetic mean is the sum of the values divided by the count, written x̄ = (Σxᵢ)/n for a sample of size n. The median is the value at the 50th percentile of the sorted data — the middle observation when n is odd, or the average of the two middle observations when n is even. The mode is the value (or values) with the highest frequency of occurrence. Each measure answers a slightly different question about the data. The mean answers "what value, if every observation were equal to it, would give the same total?" — making it the natural summary whenever totals matter (total revenue, total calories, total rainfall). The median answers "what value splits the dataset in half?" — making it the natural summary whenever rank matters more than magnitude (incomes, house prices, lap times). The mode answers "what is the single most common observation?" — the only one of the three that is meaningful for categorical data like favourite colour, blood type, or device manufacturer. The three measures coincide exactly for a perfectly symmetric, unimodal distribution like the normal bell curve. They diverge as soon as the distribution becomes skewed: for a right-skewed distribution the order is mode < median < mean; for a left-skewed distribution it is mean < median < mode. That ordering is so reliable that the gap between the mean and the median is itself a standard diagnostic for skewness, and Karl Pearson's classical skewness coefficient is literally defined as 3·(mean − median)/standard_deviation. Range, reported alongside the three measures, is the simplest measure of dispersion: max − min. It is intuitive and easy to compute, but it depends only on the two most extreme observations, which makes it very sensitive to outliers — a single mis-typed value can multiply the range by a factor of ten while leaving the median and the interquartile range untouched. For that reason serious work supplements the range with the interquartile range and the standard deviation, both of which use more of the data and are correspondingly more stable.
How to use this calculator.
- Paste your dataset into the input box. Either format works: a JSON array like [12, 14, 14, 17, 19, 21, 21, 21, 25] or a plain comma-separated list like 12, 14, 14, 17, 19, 21, 21, 21, 25. Whitespace and line breaks between values are ignored.
- Verify the parsed count (n) in the results panel matches the number of values you intended to enter. A mismatch usually means a stray character — a letter, an unmatched bracket, two commas in a row — confused the parser.
- Read the primary result (the mean) at the top of the results panel and the median, mode, range, and count in the breakdown. Compare the mean and median: if they're close, your data is roughly symmetric; if the mean is noticeably larger, the data is right-skewed; if it's noticeably smaller, it's left-skewed.
- If the dataset has no repeated values the calculator reports "no mode" — every observation occurs exactly once, so no single value is more common than any other. If two or more values tie for the highest frequency the dataset is multimodal and you should plot a histogram rather than trust any single summary number.
- Use the range as a quick reasonableness check. A range that is much larger than you expected is a strong signal that an outlier or data-entry error has slipped in. Sort the values and inspect the extremes before drawing conclusions.
- For inferential statistics (confidence intervals, hypothesis tests) move on to the standard-deviation calculator — central tendency alone is never the full picture. Always pair a measure of centre with a measure of spread.
The formula.
Three short procedures, one each. Mean: sum every value, then divide by n. Formally x̄ = (x₁ + x₂ + … + xₙ) / n, or in summation notation x̄ = (1/n)·Σᵢ₌₁ⁿ xᵢ. The calculator computes this in a single linear pass over the data. Median: sort the values in ascending order. If n is odd, the median is the value at position (n+1)/2 in the sorted list (1-indexed). If n is even, the median is the arithmetic mean of the two values at positions n/2 and n/2 + 1. For example, sorted data [1, 3, 5, 7, 9] has median 5 (the third of five values); sorted data [1, 3, 5, 7] has median (3 + 5)/2 = 4. The median is the special case of a quantile at probability 0.5; the first quartile (Q1) is the same idea at probability 0.25, the third quartile (Q3) at probability 0.75. Mode: count the frequency of every distinct value. The mode is the value with the highest frequency. If every value occurs exactly once there is no mode (some textbooks say "every value is a mode" — the practical interpretation is the same: the mode is uninformative). If two values tie for the highest frequency the distribution is bimodal; three or more, multimodal. This calculator returns the smallest modal value as a single number for downstream use and surfaces a multimodal warning in the breakdown text. Range: simply max(values) − min(values). It is the simplest measure of dispersion, computed in a single pass, and equal to the width of the smallest closed interval that contains every observation. Internally the calculator parses your input as JSON first, falls back to splitting on commas if JSON parsing fails, coerces every token to a number, and rejects any input containing a non-numeric token (so a typo like "5.0o" raises an error instead of being silently dropped). Empty datasets are rejected because mean, median, and mode are all undefined for n = 0.
A worked example.
A small ten-value dataset that nicely shows all three measures at once. The sum is 1 + 2 + 3 + 4 + 5 + 5 + 6 + 7 + 8 + 9 = 50, so the mean is 50 / 10 = 5.0. The data is already sorted; with n = 10 (even), the median is the average of the fifth and sixth values, both of which happen to be 5 here, so the median is also 5.0. The value 5 appears twice while every other value appears once, so the mode is 5. The range is 9 − 1 = 8. All three measures of central tendency agree exactly because the data is symmetric around 5 and unimodal. Contrast that with what happens if you replace the largest value with an outlier — say, change 9 to 90. The new sum is 131, so the mean jumps to 13.1, but the median is still 5 (it only depends on the middle ranks, not the magnitudes), and the mode is still 5. That single substitution is the entire story of why economists report median income rather than mean income: one billionaire in a town of a hundred people can push the mean income up by tens of thousands of dollars while leaving the median income unchanged. The mean answers a question about totals; the median answers a question about typical experience; for skewed real-world distributions those are usually different questions with different answers.
Frequently asked questions.
What is the difference between mean, median, and mode?
When should I use the mean versus the median?
How do outliers affect the mean and median differently?
When is the mode the right measure of central tendency?
What does it mean when a dataset is bimodal?
Why is median household income lower than mean household income?
Can a dataset have no mode?
What is the range and how does it relate to standard deviation?
How do mean, median, and mode help diagnose skewness?
What is the difference between a sample mean and a population mean?
References& sources.
- [1]NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5 — Measures of Location and Variability. Authoritative definitions of mean, median, mode, and range with worked examples; co-published by the U.S. National Institute of Standards and Technology.
- [2]Casella, George and Berger, Roger L. Statistical Inference, 2nd edition. Duxbury / Cengage, 2002 — the standard graduate-level reference for descriptive and inferential statistics. Chapter 5 covers sample mean, sample median, and order statistics rigorously.
- [3]OpenStax. Introductory Statistics. Rice University, 2022 — peer-reviewed open-access textbook. Chapter 2 covers measures of the location and centre of data (mean, median, mode) and Chapter 2.7 covers measures of spread (range, variance, standard deviation).
- [4]U.S. Census Bureau. "Income in the United States: 2024." Report P60-282, September 2025 — official source for U.S. median and mean household income, used in the income-skew example on this page.
- [5]Khan Academy. "Mean, median, and mode review." Statistics and probability — high-quality free explainer aligned to the same definitions used by NIST and OpenStax, useful as a student-facing companion.
- [6]Wilkinson, Leland. "Dot Plots." The American Statistician 53(3): 276–281, 1999 — peer-reviewed paper (American Statistical Association) on visualising central tendency and dispersion, including the canonical Old Faithful bimodal-eruptions example cited above.
- [7]Pearson, Karl. "Contributions to the Mathematical Theory of Evolution, II: Skew Variation in Homogeneous Material." Philosophical Transactions of the Royal Society A 186: 343–414, 1895 — the original peer-reviewed derivation of the (mean − median) skewness coefficient referenced in the skewness FAQ.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled