Standard deviation calculator

MA-13Math

Calculate standard deviation, variance, mean and median for a sample or population.

The data is
Variance
4.125
Mean
5.875
Median
5.5
Minimum / maximum
3 / 9
Range
6
Sum
47

Last updated: October 2026 · Report a calculation error

How to calculate standard deviation

  1. Work out the mean of all values.
  2. Subtract the mean from each value and square the result.
  3. Add the squares and divide by n − 1 (sample) or by n (whole population) — that’s the variance.
  4. The standard deviation is the square root of the variance.

Example: for 4, 8, 6, 5, 3, 7, 9, 5 the mean is 5.875 and the sum of squared deviations 28.875. The sample variance is 28.875 ÷ 7 = 4.125, so the standard deviation ≈ 2.031. For a population: √(28.875 ÷ 8) ≈ 1.8998. The median is 5.5.

Sample or population?

If you have data on every member of the group you care about (e.g. all grades in a class), choose population. If it’s a subset of a larger group (e.g. a survey of 100 people from a city), choose sample — dividing by n − 1 corrects for the underestimated spread of a small sample. Spreadsheets have separate functions: STDEV.S and STDEV.P.

How to read the result

Standard deviation shows how spread out the values are around the mean. For roughly normal data, about 68% of values lie within one standard deviation of the mean and about 95% within two.

Frequently asked questions

How do I enter data?

Separate numbers with spaces, commas or semicolons, using a dot for decimals: “4, 8.5, 6”. You can paste a spreadsheet column — one number per line.

What’s the difference between variance and standard deviation?

Variance is the average squared deviation, so its units are squared. Standard deviation is its square root — in the same units as the data, and easier to interpret.

See alsoWhole category

  1. MA-01Percentage calculatorFind X% of a number, what percent one number is of another and percentage change.
  2. MA-02Root and exponent calculatorCalculate the n-th root or any power of a number.
  3. MA-03Fraction calculatorAdd, subtract, multiply and divide fractions with automatic simplification.
  4. MA-04Number base converterConvert numbers between decimal, binary, octal and hexadecimal.