Skip to content

Standard Deviation Calculator

Standard deviation and variance with every step of the formula shown.

Separate values with commas, spaces or new lines.

Population standard deviation (σ)

4.898979

Count (n)
8
Sum
144
Mean (μ)
18
Variance (σ²)
24
Sample SD (for comparison)
5.237229
Standard error of the mean
1.732051

Margin of error uses the normal (z) distribution with the standard error SD / √n. For small samples a t-distribution gives slightly wider intervals.

How it was calculated

  1. σ = √( Σ(x - μ)² / n )
  2. Mean = 144 / 8 = 18
  3. Σ(x - mean)² = (10 - 18)² + (12 - 18)² + (23 - 18)² + (23 - 18)² + (16 - 18)² + (23 - 18)² + (21 - 18)² + (16 - 18)²
  4. = 192
  5. Variance = 192 / 8 = 24
  6. σ = √24 = 4.898979
ValueFrequencyRelativeDeviation (x - mean)(x - mean)²Frequency × (x - mean)²
10112.5%-86464
12112.5%-63636
16225%-248
21112.5%399
23337.5%52575
ConfidenceMargin of errorRange
68.3%± 1.73205116.267949 to 19.732051
90%± 2.84897115.151029 to 20.848971
95%± 3.39475714.605243 to 21.394757
99%± 4.46146713.538533 to 22.461467
99.9%± 5.6993612.30064 to 23.69936
99.99%± 6.73870311.261297 to 24.738703

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Math Calculators

All calculators

How the standard deviation calculator works

Standard deviation measures how spread out numbers are from their mean. Find the mean, subtract it from each value and square the result, add those squares up, divide, and take the square root.

For a population (every member of the group) divide by n. For a sample (a subset used to estimate a bigger group) divide by n − 1, which is called Bessel's correction and makes the estimate unbiased. The sample result is always a little larger.

In a normal distribution about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three. The margin of error table uses the standard error (SD ÷ √n) to show how precisely the mean is known.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

A sample's values sit closer to their own mean than to the true population mean, so dividing by n underestimates the spread. Dividing by n − 1 corrects that.

Variance is the average squared distance from the mean. Standard deviation is its square root, which puts it back in the same units as the data.

It depends on the data. Compare it to the mean: the coefficient of variation (SD ÷ mean) tells you whether the spread is small or large relative to typical values.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.