ToolLineup

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.

10 values read
Try:

Central tendency

Where the middle of the data sits.

Count
10
Sum
796
Mean (average)
79.6
Median
82
Middle value once sorted
Mode
85
appears 3 times
Midrange
77
Geometric mean
78.9321
the nth root of the product
Harmonic mean
78.2301
for rates and ratios
Root mean square
80.2309

Spread

How far the values sit from the middle. Use the sample row unless your data is the entire population.

Sample std. deviation (s)
10.5851
divides by n − 1
Population std. deviation (σ)
10.0419
divides by n
Sample variance (s²)
112.0444
Population variance (σ²)
100.84
Standard error
3.3473
s ÷ √n
Coefficient of variation
13.2979%
s as a share of the mean
Mean absolute deviation
8.4
Median absolute deviation
7
Sum of squares
1008.4
Σ(x − mean)²

Range and quartiles

Outliers are values beyond 1.5 × IQR from the nearest quartile — the same rule a box plot's whiskers use.

Minimum
60
Q1 (25th percentile)
73.25
Q2 (median)
82
Q3 (75th percentile)
85
Maximum
94
Range
34
Interquartile range
11.75
Lower fence
55.625
Upper fence
102.625
Outliers
none

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.

6094

Shape

Skewness says which tail is longer; excess kurtosis compares the tails with a normal distribution, where it is 0.

Skewness
-0.5395
negative — a longer tail to the left
Excess kurtosis
-0.3145
lighter tails than a normal distribution

Distribution

5 equal-width bins across the full range.

60 – 66.8
1
66.8 – 73.6
2
73.6 – 80.4
2
80.4 – 87.2
3
87.2 – 94
2

Frequency table

How often each value occurs, with the running (cumulative) total.

ValueFrequencyRelativeCumulativeCumulative %
60110%110%
68110%220%
72110%330%
77110%440%
79110%550%
85330%880%
91110%990%
94110%10100%

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.

z-score (sample s)
—
enter a value
z-score (population σ)
—
enter a value
Percentile rank
—
enter a value
Value at percentile 90
91.3

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

xx − x̄(x − x̄)²
72-7.657.76
855.429.16
9111.4129.96
68-11.6134.56
77-2.66.76
855.429.16
9414.4207.36
60-19.6384.16
855.429.16
79-0.60.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:

  1. Find the mean: 79.6.
  2. Subtract the mean from each value: 72 − 79.6 = −7.6, 85 − 79.6 = 5.4, and so on.
  3. Square each difference: (−7.6)² = 57.76, 5.4² = 29.16, and so on.
  4. Add the squares. This is the sum of squares: 1008.4.
  5. 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.
  6. 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