Skip to content
OEWER Tools

Math Calculators

Standard Deviation Calculator

Work out the standard deviation, variance, mean and median of a list of numbers, as a sample or a whole population.

  • Free
  • No sign-up
  • Runs in your browser

Share this tool:WhatsApp (opens in a new tab)Telegram (opens in a new tab)X (opens in a new tab)

Separate the numbers with commas, spaces or new lines. You can paste a column from a spreadsheet.

Sample standard deviation (s)
2.13809
Sample variance
4.571429
Population deviation (σ)
2
Mean
5
Count
8
Sum
40
Median
4.5
Smallest
2
Largest
9

How this is calculated

s = √( Σ(x − mean)² ÷ (n − 1) )

mean = Σx ÷ n

  1. Count the numbers: n = 8.
  2. Add them up: sum = 40.
  3. Find the mean: 40 ÷ 8 = 5.
  4. Take each number's distance from the mean and square it: (2 − 5)² = 9; (4 − 5)² = 1; (4 − 5)² = 1; (4 − 5)² = 1; (5 − 5)² = 0; (5 − 5)² = 0; and 2 more.
  5. Add the squares: Σ(x − mean)² = 32.
  6. Divide by n − 1 = 7 because this is a sample: variance = 32 ÷ 7 = 4.571429.
  7. Take the square root: standard deviation = √4.571429 = 2.13809.

Use the sample figure when your numbers are a sample taken from a larger group. Dividing by n − 1 corrects for the sample sitting closer to its own mean than to the true mean.

How to use Standard Deviation Calculator

How to use this calculator:

  • Type or paste your numbers, separated by commas, spaces or new lines.
  • Choose a sample (divides by n − 1) or the whole population (divides by n).
  • Read the standard deviation, variance, mean, count, sum, median, smallest and largest.

Open How this is calculated under the result to see the formula and each step with your own numbers.

The formulas. Population: σ = √( Σ(x − mean)² ÷ n ). Sample: s = √( Σ(x − mean)² ÷ (n − 1) ).

Examples

  • 2, 4, 4, 4, 5, 5, 7, 9

    The mean is 5. As a population the standard deviation is 2; as a sample it is 2.138.

  • Marks 70, 75, 80, 85, 90

    The mean is 80. The sample standard deviation is 7.906 and the population one is 7.071.

Frequently asked questions

Sample or population?

Choose population if your numbers are everything you care about. Choose sample if they are a subset used to estimate a larger group. If unsure, sample is the safer choice.

Can I paste from a spreadsheet?

Yes. Copy a column and paste it. Numbers separated by commas, spaces or new lines are all accepted.

How many numbers can I enter?

Up to 5,000.

Why does the sample version need two numbers?

It divides by n − 1, which is zero for one number.

Guides about Standard Deviation Calculator