Standard Deviation Calculator

How to use it

  1. Paste numbers separated by commas, spaces or lines, or switch to a frequency table and enter each value with its count.
  2. Choose sample (n − 1) or population (n); the result shows the standard deviation, the variance, the mean, the other kind of standard deviation and the coefficient of variation.
  3. Follow the numbered steps and the table of deviations and squares to check homework or show working; enter a value to get its z-score.

How it calculates

Each number is kept as an exact fraction, so the mean, every deviation and square, the sum of squares and both variances are exact, and only the final square root is rounded. That matters for working shown step by step: ordinary floating-point arithmetic leaves tiny errors (in JavaScript, 0.1 + 0.2 is 0.30000000000000004), which show up as untidy digits in a worked table. For just the mean, median and mode of a list, the Average Calculator is quicker.

What we tested

On October 14, 2026 we compared the page’s own functions with Python’s statistics module working in exact fractions on 3,001 random lists of integers, decimals, negatives and exponent forms: every mean, deviation, square, sum of squares and both variances matched exactly, and both standard deviations to 12 significant figures. Frequency tables expand correctly and bad lines are reported. A version that divided the sample variance by n failed the test. In Chromium: 2, 4, 4, 4, 5, 5, 7, 9 showed a sample standard deviation of 2.138089935 and variance 4.571429… with the steps (sum of squares 32) and an 8-row table; population showed 2 and the z-score of 9 was 2; the same data as a frequency table gave 2; a word in the list showed a message; the page fitted a 390 px phone with no errors.

2, 4, 4, 4, 5, 5, 7, 9Result
Mean5
Sum of squares32
Population variance and SD4 and 2
Sample variance and SD32/7 = 4.571428… and 2.138090…

Frequently Asked Questions

How do I calculate standard deviation by hand?+
Find the mean, subtract it from each value, square each difference, add the squares, divide by n (population) or n − 1 (sample) to get the variance, and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5, the squared differences add up to 32, the population variance is 32 ÷ 8 = 4 and the population standard deviation is 2.
Sample or population: which should I use?+
Use the population formula (divide by n) when your numbers are the entire group you care about, and the sample formula (divide by n − 1) when they are a sample used to estimate a larger group, which is the usual case in statistics classes and research. For the example above the sample standard deviation is 2.1381.
Why divide by n − 1 for a sample?+
Because deviations measured from the sample’s own mean are slightly smaller on average than deviations from the true population mean; dividing by n − 1 instead of n corrects that bias in the variance (Bessel’s correction).
What is a z-score?+
How many standard deviations a value is from the mean: (value − mean) ÷ standard deviation. In the example, 9 has a population z-score of (9 − 5) ÷ 2 = 2.
How do I enter a frequency table?+
Switch to Frequency table and write each value with its count, one per line, such as “4: 3” for three 4s. The calculator expands it and shows the same working.
Is anything uploaded?+
No. It runs in your browser and saves your inputs only on this device.

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service