Statistics Calculator — Mean, Median, Mode and More, Instantly
Paste or type a list of numbers and get the full descriptive picture in one click: mean, median, mode, range, variance, standard deviation, quartiles and outliers.
Your numbers
Paste your data set
Separate numbers with commas, spaces, or new lines. Anything that is not a number is skipped and counted.
This live bar chart draws every value you entered, sorted low to high — the dashed line is the mean, the dotted line is the median.
- Mean = Σx ÷ n: the mean is the sum divided by the count, the median is the middle value of the sorted list, and the mode is the most frequent value.
- Two standard deviations, two jobs: the population version divides by n, the sample version divides by n − 1 — use the sample one when your data is a sample of something bigger.
- Quartiles split the sorted data into quarters — Q1, Q3 and the IQR between them — and anything beyond 1.5 × IQR from the quartiles is flagged as an outlier.
The complete guide to descriptive statistics
What each measure means, when to use which, why there are two standard deviations, and the right way to average growth rates.
📊The math behind your statistics
Descriptive statistics summarize a data set with a few honest numbers. The mean is the sum divided by the count; the median is the middle value of the sorted list; the mode is the most frequent value. Variance is the average of the squared distances from the mean — and the standard deviation is its square root, back in the original units.
Mean = Σx ÷ n · Population variance = Σ(x − mean)² ÷ n · Sample variance = Σ(x − mean)² ÷ (n − 1)
Quartiles split the sorted data into quarters: Q1 is the 25th percentile, Q3 the 75th, and the interquartile range (IQR) = Q3 − Q1 measures the spread of the middle half of the data. This calculator finds quartiles by linear interpolation on the sorted list — the inclusive method used by Excel’s QUARTILE.INC and NumPy’s default — so for the numbers 1 to 10, Q1 = 3.25 and Q3 = 7.75. Any value lying more than 1.5 × IQR below Q1 or above Q3 is flagged as an outlier.
Worked example — 2, 4, 4, 4, 5, 5, 7, 9:
| Measure | Calculation | Result |
|---|---|---|
| Count / Sum | 8 values; 2+4+4+4+5+5+7+9 | 8 / 40 |
| Mean | 40 ÷ 8 | 5 |
| Median | Middle of sorted list: (4 + 5) ÷ 2 | 4.5 |
| Mode | 4 appears 3 times — most frequent | 4 |
| Population variance | (9+1+1+1+0+0+4+16) ÷ 8 = 32 ÷ 8 | 4 |
| Population SD | √4 | 2 |
| Sample variance | 32 ÷ 7 | 4.571429 |
| Sample SD | √(32 ÷ 7) | 2.13809 |
| Geometric mean | (2×4×4×4×5×5×7×9)1/8 = 2016001/8 | 4.603216 |
| First quartile (Q1) | 25th percentile, interpolated | 4 |
| Third quartile (Q3) | 75th percentile, interpolated | 5.5 |
| IQR / outliers | 5.5 − 4 = 1.5 · fences at 1.75 and 7.75, so 9 is an outlier | 1.5 / 9 |
I think of this page as a descriptive statistics calculator with the workings left visible — every result in that table comes straight from the formulas at the top of this block, nothing hidden. Because both variances sit next to their square roots, it also serves as a variance calculator in its own right: σ² and s² are answers people genuinely need, not just stepping stones on the way to a standard deviation.
✏️How to find mean median and mode (and range) by hand
When I teach this, I always work one small set by hand first — after that, the calculator becomes a checker instead of a black box. Take seven quiz scores: 7, 3, 9, 3, 5, 3, 8.
Mean: add everything, then divide by how many values there are. 7 + 3 + 9 + 3 + 5 + 3 + 8 = 38, and 38 ÷ 7 = 5.428571. The mean uses every score, including the 9.
Median: sort first — 3, 3, 3, 5, 7, 8, 9 — then take the middle value. With seven values the middle is the 4th, so the median is 5. (With an even count, average the two middle values, exactly as the worked example above does with (4 + 5) ÷ 2.)
Mode: count how often each value appears. The score 3 shows up three times — more than anything else — so the mode is 3. If two values had tied, I would report both; a data set is allowed to have more than one mode.
Range: subtract the smallest from the largest: 9 − 3 = 6. It is the quickest spread check there is, and the easiest to fool — one wild value stretches it.
Now paste the same seven scores into the calculator: you should see mean 5.428571, median 5, mode 3 and range 6, matching your hand work exactly — plus the spread measures that are painful by hand (σ² = 5.673469, s² = 6.619048, s = 2.57275) and a geometric mean of 4.902244.
σPopulation vs sample: why two standard deviations?
Both measure spread, but they divide by different numbers — this is the core of any standard deviation calculator:
- Population SD (σ) divides by n. Use it when your numbers are the entire group you care about — every student in a class, every sale this week.
- Sample SD (s) divides by n − 1 (Bessel’s correction). Use it when your numbers are a sample drawn from a bigger group — a survey of 200 voters estimating a whole country.
Why n − 1? A sample’s spread systematically underestimates the true spread, because the sample mean sits in the middle of the sample by construction. Dividing by n − 1 corrects that bias. With large data sets the two numbers are nearly identical; with small ones the sample SD is noticeably larger. When in doubt for research or coursework, report the sample SD.
The sample vs population standard deviation choice matters most on small data. On this page’s own example, s (2.13809) runs about 7% above σ (2) at n = 8; by n = 30 the gap shrinks to under 2%, and by n = 100 it is roughly half a percent. The two numbers never disagree about your data — they answer two different questions about it.
Edge case, handled honestly: with fewer than 2 values, the sample variance would divide by zero — mathematically undefined — so this calculator shows n/a instead of a misleading 0. The population SD of a single value is genuinely 0 (no spread).
½Mean vs median vs mode: which “average”?
All three describe the “center,” but they disagree when data is skewed:
- Mean uses every value, so one huge outlier drags it along. Salaries in a company with one billionaire CEO are a classic case — the mean looks generous, the median tells the real story.
- Median is the middle value, immune to outliers. Best for skewed data like incomes, house prices, or wait times.
- Mode is the most common value — the only “average” that works for categories (favorite color, most common shoe size). A data set can have two or more modes; this calculator lists every one of them.
Rule of thumb: symmetric data → mean; skewed data → median; categories or “most typical” → mode.
🧭Which statistic do I report? My decision table
When someone pastes data into this mean median mode calculator, the question I hear most is not “what is the mean?” — it is “which of these numbers do I actually report?” Here is the table I use myself:
| If your data is… | I report |
|---|---|
| Roughly symmetric measurements — test scores, heights, temperatures | Mean |
| Skewed money — incomes, house prices, debts | Median |
| Categories, or a “most common” question — shoe sizes, favorite colors | Mode |
| Growth rates, ratios, anything that multiplies | Geometric mean |
| A complete group you measured in full | Population SD (σ) |
| A sample standing in for a bigger group | Sample SD (s) |
The symmetric case is the friendly one. For the test scores 62, 68, 71, 74, 75, 76, 79, 83, 88, the mean is 75.1 and the median 75 — they nearly agree, so reporting the mean costs nothing and uses every value. This is the one situation where a plain mean calculator tells the whole story.
Money is where I switch. Take nine monthly incomes — $2,800, $3,000, $3,100, $3,200, $3,400, $3,600, $3,900, $4,200, and one at $25,000. The mean is $5,800, but nobody in that group earns anywhere near it; the median, $3,400, is the income of the actual middle person. Used as a median calculator, the tool hands you the number that splits your group in half — and for skewed data that is the honest headline.
For “most common” questions, only the mode answers at all. If a shop sells shoe sizes 6, 7, 7, 8, 8, 8, 9, 9, 10, 11 in a day, the mean size (8.3) cannot be stocked, and the median (8) is right only by coincidence — the mode, 8, is the restocking decision. Run as a mode calculator, this tool lists every tied value rather than silently picking one.
And if you arrived here looking for an average calculator, this is my honest answer: “average” is three different numbers sharing one nickname. Pick by the shape of your data, not by habit — and when the shape is not obvious, report the mean and the median together and let the gap between them tell the skew story.
∏The geometric mean: averaging growth the right way
The ordinary (arithmetic) mean adds values; the geometric mean multiplies them: GM = (x₁ × x₂ × … × xₙ)1/n. Use it whenever values multiply rather than add — growth rates, investment returns, ratios, and normalized scales.
Worked example: an investment grows +100% one year (doubles: ×2) then −50% the next (halves: ×0.5). The arithmetic mean of the rates (+100% and −50%) is +25% — implying growth — but you ended exactly where you started. The geometric mean of the multipliers, √(2 × 0.5) = 1.0, tells the truth: 0% average growth. For the page’s example data set, GM = 2016001/8 ≈ 4.603216 (slightly below the arithmetic mean of 5, as it always is for spread-out positive data).
I gave the geometric mean calculator its own card in the results for exactly this reason: growth questions are everywhere, and the arithmetic mean answers them wrong with complete confidence.
Constraint: the geometric mean needs all-positive values — it is undefined for zero or negative inputs, and the calculator says so plainly, naming the offending values.
🧹Messy input, handled gracefully
Paste from spreadsheets, reports, or chat logs — commas, spaces, tabs and new lines all work as separators, in any mix. Anything that isn’t a number is skipped and counted: try “10, abc, 20 30” and the calculator uses 10, 20, 30 while reporting “1 token ignored (not a number).” Nothing is silently dropped, so your results always match the data you actually see.
📈Reading the chart
The live bar chart draws every value sorted low to high. The dashed orange line marks the mean and the dotted purple line marks the median — when the two lines sit apart, your data is skewed toward the longer tail. Symmetric bell-like data pulls them together; a lone tall bar far from the pack is an outlier worth investigating before you quote any “average.”
Keep exploring
Three companion tools for working with numbers.
Means of all kinds.
→Expressions, live.
→Spread, deep dive.
→How it works
Three steps from a messy list to clean statistics.
Commas, spaces, or line breaks — any mix works. Try “10, abc, 20 30” and watch non-numbers get skipped.
Numbers are extracted, sorted, and counted. Ignored tokens are reported, never silently dropped.
Mean is the hero number; median, mode, range, variance, and both SDs update live with the chart.
📊The math behind your statistics
Descriptive statistics summarize a data set with a few honest numbers. The mean is the sum divided by the count; the median is the middle value of the sorted list; the mode is the most frequent value. Variance is the average of the squared distances from the mean — and the standard deviation is its square root, back in the original units.
Mean = Σx ÷ n · Population variance = Σ(x − mean)² ÷ n · Sample variance = Σ(x − mean)² ÷ (n − 1)
σGo deeper
Both measure spread, but they divide by different numbers: Population SD (σ) divides by n — use it when your numbers are the entire group you care about. Sample SD (s) divides by n − 1 (Bessel’s correction) — use it when your numbers are a sample from a bigger group. Why n − 1? A sample’s spread systematically underestimates the true spread, because the sample mean sits in the middle of the sample by construction. With large data sets the two are nearly identical; with small ones the sample SD is noticeably larger.
📊Reading the output: n, sums, s and sigma
Four symbols carry most of the output. N is the count of values. The sum, written with the Greek capital sigma, is the total of the values, and the sum of squares is the total of the squared values — the raw material variance is built from. The mean is the sum divided by n. Then come the two standard deviations: s, the sample standard deviation, divides by n minus 1; sigma, the population standard deviation, divides by n.
Worked on 2, 4, 6: n is 3, the sum is 12, the mean is 4, and the sum of squares is 56. The squared distances from the mean are 4, 0 and 4, totalling 8. Dividing by n minus 1 gives a sample variance of 4 and s of 2; dividing by n gives a population variance of about 2.667 and sigma of about 1.633. Same data, two honest answers — the difference is purely which divisor the question calls for, and the gap shrinks as n grows.
Frequently asked questions
Quick answers about this statistics calculator.
How do I find the mean, median, and mode of a data set?
Paste your numbers into the calculator above. The mean is the sum divided by the count, the median is the middle value of the sorted list (average of the two middle values for an even count), and the mode is the value that appears most often. All three update live as you type.
What is the difference between population and sample standard deviation?
Population standard deviation (σ) divides the squared deviations by n and describes a complete data set. Sample standard deviation (s) divides by n − 1 to correct for sampling bias and estimates the spread of the larger population your sample came from. This calculator shows both, so you never have to guess.
What is variance in statistics?
Variance is the average of the squared differences between each value and the mean. Squaring keeps negative and positive deviations from canceling out and punishes large deviations more than small ones. Standard deviation is simply the square root of variance, which returns the measure to the original units of your data.
How do you find the mode of a multimodal data set?
A data set is multimodal when two or more values tie for the highest frequency — for example, in 1, 2, 2, 3, 3, 4, both 2 and 3 appear twice. This calculator detects every tied value and lists all modes, comma-separated, instead of picking just one.
What happens to non-numeric entries in my list?
They are skipped, and the calculator tells you exactly how many tokens were ignored — for example, “10, abc, 20 30” uses 10, 20, and 30 and reports “1 token ignored (not a number).” Nothing is silently dropped, so your results always match the data you actually see.
Why is my standard deviation zero — or n/a?
If every value is identical there is no spread, so the population SD is genuinely 0. But the sample SD divides by n − 1: with a single value that means dividing by zero, which is mathematically undefined — so this calculator shows n/a for sample variance and sample SD when you enter fewer than 2 values.
What is the geometric mean?
The geometric mean multiplies all values and takes the nth root: GM = (x₁ × … × xₙ)1/n. For 2 and 8 it is √16 = 4. It requires all-positive values — zeros or negatives make it undefined, and the calculator flags them.
When should I use the geometric mean instead of the regular mean?
Whenever values multiply rather than add: investment growth rates, ratios, and index numbers. An investment that doubles (+100%) then halves (−50%) has an arithmetic mean return of +25% but a geometric mean of 0% — the geometric mean tells the truth about where you ended up.
What are the 3 types of averages?
The mean, the median, and the mode. The mean is the mathematical average: add all the values and divide by the count. The median is the positional average: the middle value of the sorted list. The mode is the most frequent value. All three are legitimately called “an average,” which is exactly why they can disagree on skewed data — and why this calculator shows all three side by side.
Should I use sample or population standard deviation?
Use the population standard deviation (σ) when your numbers are the entire group you care about: every student in the class, every sale this month. Use the sample standard deviation (s) when your numbers are a sample standing in for a bigger group, like survey responses used to estimate a whole city. If you are submitting coursework or research and nobody specified, the sample SD is the safer default.
Why divide by n−1?
Because a sample’s mean is calculated from that same sample, the values sit a little closer to it than they would to the true population mean — so the squared deviations come out slightly too small, and dividing by n would understate the spread. Bessel’s correction divides by n − 1 instead, inflating the result just enough to make the sample variance an unbiased estimate. The fix matters most for tiny samples and fades as n grows.
Is mode the same as average?
The mode is one of the three averages, but it is not the one most people mean. When someone says “average” without qualification, they almost always mean the mean. The mode earns its place when the question is “most common” — the most-sold shoe size, the most frequent score — and it is the only one of the three that works for categories, like a favorite color, where adding and dividing make no sense.
What do s and sigma mean in the output?
S is the sample standard deviation, which divides by n minus 1, and sigma is the population standard deviation, which divides by n. Use s when your numbers are a sample from a larger group, and sigma when they are the entire group you care about. For 2, 4, 6, s is 2 and sigma is about 1.633; with large data sets the two are nearly identical, and with small ones the sample figure is noticeably larger.
Can I enter grouped or frequency data?
Enter each value as many times as it occurs — a value with frequency 5 goes in five times. For grouped data given as intervals, enter the midpoint of each interval as many times as its frequency, and say so when you report the result: midpoints approximate the original values, so statistics from grouped data are estimates, not exact figures for the ungrouped list.
Why does the geometric mean need positive numbers?
Because it multiplies all the values and takes the nth root, and that operation only stays in the real numbers for positive inputs. A negative product has no real root when n is even, and a zero anywhere forces the whole product — and the geometric mean — to zero, whatever the other values are. Use the geometric mean for positive ratios and growth rates, where multiplication is the natural way to combine values, and the ordinary mean everywhere else.
Related calculators
More ways to work with numbers, down to the last decimal.
All mean types.
Spread deep-dive.
Expressions, live.
Odds and chances.
Full function set.
Related guides
In-depth guides to reading your data honestly.