Statistics Calculator
Paste numbers separated by commas, spaces, tabs or new lines — a column copied straight from a spreadsheet works as it is — and every descriptive statistic is worked out at once: mean, median, mode, standard deviation, variance, quartiles, outliers, skewness and more, with the step-by-step working for the mean, median and standard deviation done with your own numbers. Both the sample and the population forms of variance and standard deviation are shown side by side rather than one being silently chosen for you, because which is correct depends on whether your numbers are everything or a subset of something larger. Quartiles use linear interpolation, the same method as NumPy and Excel’s PERCENTILE.INC, so the numbers match what you would get there. A box plot, a histogram and a frequency table show the shape of the data, and a lookup gives the z-score and percentile rank of any value, or the value at any percentile.
How it works
Paste your numbers separated by commas, spaces, tabs or new lines — a column copied straight out of a spreadsheet works as it is, and anything that is not a number is ignored rather than breaking the calculation.
Both the sample and population forms of variance and standard deviation are shown: use the sample row when your numbers are a subset of something larger, the population row when they are everything.
Central tendency
Where the middle of the data sits.
Spread
How far the values sit from the middle. Use the sample row unless your data is the entire population.
Range and quartiles
Outliers are values beyond 1.5 × IQR from the nearest quartile — the same rule a box plot's whiskers use.
Box plot
The box runs from Q1 to Q3 with the median inside it; the whiskers reach the furthest values inside the fences, and dots mark outliers.
Shape
Skewness says which tail is longer; excess kurtosis compares the tails with a normal distribution, where it is 0.
Distribution
5 equal-width bins across the full range.
Frequency table
How often each value occurs, with the running (cumulative) total.
| Value | Frequency | Relative | Cumulative | Cumulative % |
|---|---|---|---|---|
| 60 | 1 | 10% | 1 | 10% |
| 68 | 1 | 10% | 2 | 20% |
| 72 | 1 | 10% | 3 | 30% |
| 77 | 1 | 10% | 4 | 40% |
| 79 | 1 | 10% | 5 | 50% |
| 85 | 3 | 30% | 8 | 80% |
| 91 | 1 | 10% | 9 | 90% |
| 94 | 1 | 10% | 10 | 100% |
Percentile and z-score lookup
Type a value to see where it sits in your data, or a percentile to find the value at that point.
Step-by-step working
How the mean, median and standard deviation above were worked out, using your numbers.
Show or hide the working
1. Mean
x̄ = Σx ÷ n = 796 ÷ 10 = 79.6
2. Median
Sort the values. With n = 10 (even), the median is the average of the two middle values, numbers 5 and 6.
median = (79 + 85) ÷ 2 = 82
3. Squared deviations from the mean
| x | x − x̄ | (x − x̄)² |
|---|---|---|
| 72 | -7.6 | 57.76 |
| 85 | 5.4 | 29.16 |
| 91 | 11.4 | 129.96 |
| 68 | -11.6 | 134.56 |
| 77 | -2.6 | 6.76 |
| 85 | 5.4 | 29.16 |
| 94 | 14.4 | 207.36 |
| 60 | -19.6 | 384.16 |
| 85 | 5.4 | 29.16 |
| 79 | -0.6 | 0.36 |
| Sum of squares Σ(x − x̄)² | 1008.4 | |
4. Variance and standard deviation
s² = Σ(x − x̄)² ÷ (n − 1) = 1008.4 ÷ 9 = 112.0444, so s = √112.0444 = 10.5851
σ² = Σ(x − x̄)² ÷ n = 1008.4 ÷ 10 = 100.84, so σ = √100.84 = 10.0419
Sorted values
60, 68, 72, 77, 79, 85, 85, 85, 91, 94
How to calculate the mean, median and mode
Take ten exam scores: 72, 85, 91, 68, 77, 85, 94, 60, 85 and 79.
- Mean (the average): add them up and divide by how many there are. 796 ÷ 10 = 79.6.
- Median (the middle value): sort them, giving 60, 68, 72, 77, 79, 85, 85, 85, 91, 94. With an even count there are two middle values, the 5th and 6th, so the median is their average: (79 + 85) ÷ 2 = 82.
- Mode (the most common value): 85 appears three times, more than any other, so the mode is 85. When no value repeats there is no mode; when several tie, they are all modes.
How to calculate standard deviation
Standard deviation measures how far the values typically sit from the mean. By hand, for the same ten scores:
- Find the mean: 79.6.
- Subtract the mean from each value: 72 − 79.6 = −7.6, 85 − 79.6 = 5.4, and so on.
- Square each difference: (−7.6)² = 57.76, 5.4² = 29.16, and so on.
- Add the squares. This is the sum of squares: 1008.4.
- Divide by n − 1 for a sample (1008.4 ÷ 9 = 112.04), or by n for a whole population (1008.4 ÷ 10 = 100.84). This is the variance.
- Take the square root: the sample standard deviation is 10.59 and the population one is 10.04.
The step-by-step working section above repeats this with your own numbers, including the table of deviations and squares.
Sample or population standard deviation?
Use the population form (σ, divide by n) when your numbers are the entire group you care about:
every employee's salary, every match a team played this season. Use the sample form (s, divide by
n − 1) when they are a subset you are using to describe something larger: a survey of 200 customers, 30
measurements from a production line. Dividing by n − 1 corrects for a sample's tendency to underestimate the
spread. In Excel, these are STDEV.P and STDEV.S. When unsure, use the sample form.
Quartiles, the IQR and outliers
The quartiles split the sorted data into four equal parts: Q1 is the 25th percentile, Q2 the median and Q3 the 75th percentile. The interquartile range (IQR = Q3 − Q1) is the spread of the middle half, and unlike the range it is not thrown off by one extreme value.
An outlier is a value more than 1.5 × IQR below Q1 or above Q3. For 12, 14, 13, 15, 14, 16, 13 and 98: Q1 = 13, Q3 = 15.25, so the IQR is 2.25 and the fences are 9.625 and 18.625. Only 98 falls outside, so it is the one outlier. Notice how it drags the mean up to 24.4 while the median stays at 14.
Quartiles here use linear interpolation, the same method as Excel's PERCENTILE.INC and
QUARTILE.INC, so the results match a spreadsheet. Some textbooks use a different method, so their
figures can differ slightly on small data sets.
Percentiles and z-scores
A z-score says how many standard deviations a value is from the mean: z = (x − mean) ÷ standard deviation. In the exam scores, 94 has z = (94 − 79.6) ÷ 10.59 ≈ 1.36, so it is about one and a third standard deviations above average. A negative z-score is below the mean.
A percentile rank says what share of the data lies below a value. Of the ten scores, 5 are below 85 and 3 equal it, giving 85 a percentile rank of 65% (counting half of the ties). Going the other way, the 90th percentile of the scores is 91.3. The lookup above does both for any value or percentile you type.
Which average should you use?
- Mean: for roughly symmetric data without extreme values, such as heights or test scores.
- Median: for skewed data or data with outliers, such as incomes, house prices or response times.
- Mode: for categories or repeated values, such as the most common shoe size.
- Geometric mean: for growth rates and returns that compound.
- Harmonic mean: for averaging rates, such as speeds over equal distances.
If the mean and the median are far apart, the data is skewed, and the skewness figure says which way. To put the values in order first, use the number sorter.
Frequently asked questions
What is the difference between sample and population standard deviation?
The sample form divides by n − 1 and is correct when your numbers are a subset of a larger group; the population form divides by n and is correct when they are the entire group. Both are shown so you can pick the right one.
How are the quartiles calculated?
By linear interpolation between the surrounding values — the same method NumPy uses by default and Excel’s PERCENTILE.INC — so the results match those tools rather than differing by a fraction.
How does it decide what counts as an outlier?
Any value more than 1.5 × the interquartile range below Q1 or above Q3. That is Tukey’s rule, and it is what a box plot’s whiskers mark.
What format should I paste my numbers in?
Any — commas, spaces, tabs or one per line all work, and anything that is not a number is skipped and reported rather than breaking the calculation.
Why does it say there is no mode?
Because no value repeats. When every value appears once, calling them all modes tells you nothing, so no mode is reported instead. If several values tie for the highest count, all of them are listed.
How do you calculate standard deviation?
Find the mean, subtract it from every value and square each difference, then add the squares up. Divide that sum by n − 1 for a sample (or by n for a whole population) to get the variance, and take the square root. The step-by-step working section does exactly this with your own numbers.
Should I use the mean or the median?
The mean uses every value, so one extreme number pulls it a long way; the median is the middle value and ignores how far out the extremes are. For skewed data such as incomes, house prices or response times, the median is usually the better summary. If the two are close, the data is roughly symmetric.
What is a z-score?
How many standard deviations a value sits above or below the mean: (x − mean) ÷ standard deviation. A z-score of 2 is two standard deviations above the mean; −1 is one below. Type any value into the lookup to get its z-score and percentile rank within your data.
How do I find a percentile?
Type the percentile (for example 90) into the lookup and the value at that point is given, using the same interpolation as Excel’s PERCENTILE.INC. To go the other way — what percentile a value is at — type the value instead and read its percentile rank.
What is the five-number summary?
Minimum, Q1, median, Q3 and maximum — the five values a box plot is drawn from. They are all in the range and quartiles section, and the box plot draws them, with any outliers shown as separate dots.
Are my numbers uploaded anywhere?
No. Everything is calculated in your browser, so figures from a real dataset stay on your device.
Related tools
Number Sorter
This number sorter orders numbers properly, and gives you the sum, mean and median.
Percentage Calculator
A percentage calculator for three everyday calculations: X% of Y, X as a percent of Y, and percentage change between two numbers.
Scientific Calculator
Type a whole expression and watch it resolve as you go — powers, roots, logs, trigonometry and factorials.
Permutation & Combination Calculator
Work out nCr and nPr, with and without repetition, and see all four answers side by side.