What Is Standard Deviation?
Standard deviation measures how spread out a set of numbers is around its average. A low standard deviation means the values cluster tightly near the mean; a high one means they are widely scattered. A standard deviation calculator saves you from the long hand computation — squaring dozens of deviations and taking a square root — and removes the most common source of error: dividing by the wrong count. It is one of the most used tools in statistics, finance (volatility), science, and quality control.
Standard deviation is always expressed in the same units as your data: if your data is test scores out of 100, the standard deviation is in "points," which makes it far more intuitive than its close cousin, the variance.
How It Works
Population vs. sample
There are two formulas, and choosing the right one matters:
- Population standard deviation (σ) — use when your data covers every member of the group, e.g. the test scores of all 30 students in a class. Divide by N, the full count.
- Sample standard deviation (s) — use when your data is only a subset of a larger group, e.g. 30 voters surveyed out of millions. Divide by n−1 instead of n. This small correction (called Bessel's correction) removes the bias that comes from estimating with a sample.
The formula, step by step
For the population version:
σ = √( Σ(x − μ)² / N )
- Find the mean (μ) of all values.
- Subtract the mean from each value and square the result (squaring makes negatives positive and punishes large deviations more).
- Average those squared deviations — this average is the variance (σ²).
- Take the square root to return to the original units. That is the standard deviation.
The sample formula is identical except the final division uses (n−1): s = √( Σ(x − x̄)² / (n−1) ).
How to Use This Calculator
- Enter your data set as a list of numbers (separated by commas, spaces, or new lines).
- Choose population if the data is the whole group, or sample if it is a subset.
- The calculator returns the mean, variance, and both standard deviations instantly.
Worked Example
Find the standard deviation of the data set 2, 4, 4, 4, 5, 5, 7, 9:
- Mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 40 / 8 = 5.
- Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32.
- Population variance: 32 / 8 = 4, so σ = √4 = 2.00.
- Sample variance: 32 / 7 ≈ 4.571, so s = √4.571 ≈ 2.14.
Notice the sample value is slightly larger — dividing by (n−1) corrects for the fact that a sample tends to understate the true spread.
Tips
- Use sample standard deviation unless you are certain the data is the entire population — most real-world data is a sample.
- The empirical rule: for roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three.
- Standard deviation can never be negative. If you get a negative, something went wrong in the calculation.
- Variance (σ²) is the squared version — useful in formulas, but always take the square root when you want an answer in real-world units.