Standard Deviation Calculator
Compute mean, variance, sample or population standard deviation, min, max, and range. Shows the per-value deviation table.
| x | x − x̄ | (x − x̄)² |
|---|---|---|
| 4 | -1.5000 | 2.2500 |
| 8 | 2.5000 | 6.2500 |
| 6 | 0.5000 | 0.2500 |
| 5 | -0.5000 | 0.2500 |
| 3 | -2.5000 | 6.2500 |
| 7 | 1.5000 | 2.2500 |
| Σ | 0.0000 | 17.5000 |
What this calculator does
This calculator parses a list of numbers and returns count, sum, mean, variance, standard deviation, minimum, maximum, and range. It also shows a step-by-step deviation table so you can see how each data point contributes to the spread.
Formula
Sample: s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )
Population: σ = √( Σ(xᵢ − μ)² ÷ n )
Variable definitions
xᵢ— Each value in the dataset.x̄ / μ— Sample mean / population mean.n— Number of values in the dataset.
Step-by-step calculation
- Calculate the mean: sum the values and divide by n.
- For each value, subtract the mean and square the result.
- Sum the squared deviations.
- Divide by (n − 1) for sample or by n for population — this is the variance.
- Take the square root of the variance to get the standard deviation.
Worked example
Dataset: 4, 8, 6, 5, 3, 7 (n = 6).
- Mean: 33 ÷ 6 = 5.5
- Squared deviations: 2.25, 6.25, 0.25, 0.25, 6.25, 2.25 → sum = 17.5
- Sample variance: 17.5 ÷ 5 = 3.5; sample SD ≈ 1.871
- Population variance: 17.5 ÷ 6 ≈ 2.917; population SD ≈ 1.708
- Min = 3, Max = 8, Range = 5
How to use this calculator
- Paste or type your numbers separated by commas, spaces, or new lines.
- Choose Sample or Population.
- Read the summary and the per-value deviation table.
Common mistakes
- Sample vs population: using the wrong divisor changes the answer. Use sample (n − 1) unless you have literally every data point in the population.
- Confusing SD with variance: variance is SD squared and uses the same units squared (e.g. dollars²).
Frequently asked questions
›What is standard deviation?
Standard deviation measures how spread out the values in a dataset are from the mean. A small SD means values cluster near the mean; a large one means they're spread far from it.
›What's the difference between sample and population standard deviation?
Sample SD divides by (n − 1) and is used when your data is a sample from a larger population. Population SD divides by n and is used when you have the entire population.
›How do I calculate standard deviation step by step?
Find the mean, subtract the mean from each value and square the result, sum those squares, divide by n (population) or n − 1 (sample), then take the square root.
›What is variance?
Variance is the square of the standard deviation. It's the average of the squared differences from the mean and uses the same n or n − 1 divisor.
›Why divide by n − 1 for sample standard deviation?
Dividing by n − 1 (Bessel's correction) makes the sample variance an unbiased estimator of the population variance. Dividing by n alone would systematically underestimate the true spread for small samples.
›What format should my data be in?
Numbers separated by commas, spaces, or new lines. The calculator ignores blanks and parses each token as a number.
›What are the min, max, and range?
The minimum and maximum are the smallest and largest values in the dataset. Range = max − min. Together they give you a quick sense of the data's spread alongside the SD.
Related calculators
- Average CalculatorMean of a list, with median, mode, and range.
- Rounding CalculatorRound numbers to any place by chosen method.
- Percentage CalculatorX% of Y, X is what % of Y, X is Y% of what.
- GPA CalculatorCompute your weighted GPA on a 4.0 scale.
- Final Grade CalculatorFind the score you need on the final exam.
- Days Between Dates CalculatorCount days, weeks, and months between two dates.