Standard Deviation Calculator
Calculate population and sample standard deviation, variance, mean, and sum
📋 Step-by-Step Calculation Table
How to Calculate Standard Deviation
Standard deviation measures the amount of variation or dispersion of a set of values. A low standard deviation indicates that the values tend to be close to the mean of the set, while a high standard deviation indicates that the values are spread out over a wider range. Follow these steps to use the calculator:
- Enter your dataset — Input your numbers separated by commas, spaces, or line breaks (e.g., 10, 20, 30, 40, 50).
- Click “Calculate” — The tool will calculate the sample and population standard deviation, variance, mean, and sum.
- Review the step table — Follow the detailed mathematical table showing individual deviations and squared differences.
The Formula for Standard Deviation
There are two types of standard deviation formulas depending on whether you are analyzing a sample or a complete population:
1. Sample Standard Deviation (s)
Used when your dataset represents a subset of a larger population. The formula is:
s = √[ Σ(x − x̄)² ÷ (n − 1) ]
Where x̄ is the sample mean, x represents each value, and n is the sample size (number of values). The division by n - 1 is known as Bessel’s correction, which corrects bias in sample variance estimations.
2. Population Standard Deviation (σ)
Used when your dataset represents the entire population. The formula is:
σ = √[ Σ(x − μ)² ÷ N ]
Where μ is the population mean and N is the total population size.
Practical Calculation Examples
Example 1: Class Test Consistency
Suppose five students score: 80, 85, 90, 95, 100 on a test. The mean is 90. The differences from the mean are: -10, -5, 0, 5, 10. The squared differences are: 100, 25, 0, 25, 100. Sum of squared differences = 250. For sample SD: s = √(250 ÷ 4) = √62.5 = 7.90. For population SD: σ = √(250 ÷ 5) = √50 = 7.07.
Example 2: Consistent vs. Inconsistent Machines
A machine filling bottles yields: 500ml, 501ml, 499ml, 500ml (SD ≈ 0.8ml). A faulty machine yields: 480ml, 520ml, 490ml, 510ml (SD ≈ 18.2ml). The first machine is far more consistent because its standard deviation is close to 0.
Frequently Asked Questions
Why does sample standard deviation use n-1 instead of n?
Dividing by n - 1 (Bessel’s correction) is used in sample standard deviation calculations to correct for bias. Because a sample is only a subset, it tends to underestimate the true variability of the wider population. Dividing by a slightly smaller number (n – 1 instead of n) increases the result slightly to provide a more accurate estimate of the population standard deviation.
What is variance?
Variance is the average of the squared differences from the mean. It is simply the square of the standard deviation (Standard Deviation = √Variance). While standard deviation is measured in the same units as the original data, variance is measured in squared units.
What does a standard deviation of 0 mean?
A standard deviation of 0 means that all values in the dataset are identical, meaning there is no variation or spread whatsoever (e.g., 5, 5, 5, 5 has an SD of 0).
How do I calculate standard deviation manually?
First, calculate the mean of the numbers. Second, subtract the mean from each number and square the result. Third, calculate the average of those squared differences (divide by n-1 for sample, or n for population). Fourth, take the square root of that average.
