Separate values with commas, spaces or new lines. Up to 10,000 values.

Enter your figures and select Calculate to see the result.

How to use this calculator

  1. Type or paste your numbers into the box. Separate them with commas, spaces or new lines. You can paste a column straight from a spreadsheet.
  2. Select Calculate.
  3. Use the sample standard deviation if your data is a sample from a larger group, and the population figure if it covers the whole group.

The formula

Mean x̄ = Σx ÷ n
Sample variance s² = Σ(x − x̄)² ÷ (n − 1) Sample SD s = √s²
Population variance σ² = Σ(x − x̄)² ÷ n Population SD σ = √σ²
Standard error = s ÷ √n

How the calculation works

The mean is the ordinary average. The median is the middle value when the data is sorted, or the average of the two middle values. It is less affected by extreme values than the mean. The mode is the most common value, and there can be more than one.

Standard deviation measures how spread out the values are around the mean. The sample version divides by n − 1 rather than n (Bessel’s correction). This gives a better estimate of the spread in the wider population when you only have a sample.

Quartiles split sorted data into four equal parts. This calculator uses the common school method: Q1 is the median of the lower half and Q3 the median of the upper half, leaving out the overall median when there is an odd number of values. Spreadsheets such as Excel can use slightly different methods, so their quartiles may differ a little.

Worked example

Ten test scores: 12, 15, 15, 18, 21, 22, 22, 22, 27, 30

  • Sum = 204, so mean = 204 ÷ 10 = 20.4
  • Median = (21 + 22) ÷ 2 = 21.5
  • Mode = 22 (appears three times)
  • Range = 30 − 12 = 18; Q1 = 15, Q3 = 22, interquartile range = 7
  • Sample standard deviation = 5.56; population standard deviation = 5.28

The measures

  • Mean: the average — add all values, divide by how many there are.
  • Median: the middle value when sorted.
  • Mode: the most frequent value.
  • Range: largest minus smallest.
  • Variance: the average of the squared differences from the mean.
  • Standard deviation: the square root of the variance — how spread out the data is.

Standard deviation, step by step

For the set 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5. Square each difference from 5, average them (population variance = 4), then take the square root → standard deviation = 2. The calculator shows both population and sample versions, since they divide by n and n−1 respectively.

Population vs sample

Use the population standard deviation when your data is the whole group, and the sample version (dividing by n−1) when it's a sample of a larger group. The calculator gives both so you can pick the right one.

Assumptions and limitations

  • Up to 10,000 values. Text and symbols other than numbers, commas and spaces are rejected.
  • Sample variance and standard deviation need at least two values.
  • Results are shown to 8 significant figures.

Frequently asked questions

How do I calculate the mean?

Add all the values and divide by how many there are.

What's the difference between mean, median and mode?

Mean is the average, median is the middle value, mode is the most common value.

How do I calculate standard deviation?

Find the mean, square each value's difference from it, average those, then take the square root. The calculator shows each step.

What's the standard deviation of 2,4,4,4,5,5,7,9?

2 (population). The mean is 5 and the variance is 4.

What's the difference between population and sample SD?

Population divides by n; sample divides by n−1 and is used when your data is a sample.

What is variance?

The average of the squared differences from the mean — standard deviation is its square root.

What is the range?

The largest value minus the smallest.

How many numbers can I enter?

As many as you like — paste a full data set and it computes everything at once.

Should I use sample or population standard deviation?

Use the population standard deviation if your data includes every member of the group you care about, such as all pupils in one class. Use the sample standard deviation if your data is a sample used to describe a larger group, such as a survey of 500 adults standing in for all UK adults.

What if there is no mode?

If every value appears only once, there is no mode. If two or more values share the highest count, the data has several modes, and the calculator lists them all.

Why are my quartiles different from Excel?

There are several accepted ways to calculate quartiles. This calculator uses the median-of-halves method taught in many UK schools. Excel’s QUARTILE.INC and QUARTILE.EXC functions interpolate between values, so the results can differ slightly.