Standard Deviation
Calculator
Calculate standard deviation, variance, mean, range, and more from any dataset — with step-by-step working, histogram, and bell curve visualisation.
Accepts commas, spaces, or line breaks. Decimals and negative numbers supported. Paste from Excel or CSV.
—
Standard Deviation Calculator: Find Variance & Data Spread
Standard deviation is one of the most widely used statistical measures in science, finance, education, and everyday data analysis. It tells you how spread out values are around the average — a small standard deviation means values cluster tightly near the mean, while a large one indicates wide variability. This free standard deviation calculator computes population and sample standard deviation, variance, mean, range, median, and outlier detection from any dataset — with a step-by-step breakdown, histogram, and normal distribution bell curve.
The formulas:
Population σ = √(Σ(x − μ)² / N) — use when your dataset IS the entire population
Sample s = √(Σ(x − x̄)² / (n − 1)) — use when your dataset is a SAMPLE from a larger population
Variance = σ² (population) or s² (sample) — standard deviation squared
Population vs Sample Standard Deviation
The key difference is in the denominator of the formula. Population standard deviation divides by N (the total count), while sample standard deviation divides by n−1 (the count minus one). This adjustment — called Bessel’s correction — compensates for the fact that a sample tends to underestimate the true population variability. When your dataset contains every member of a group (all students in a class, all items in a batch), use population. When it’s a subset selected from a larger group, use sample.
When to use population σ
Test scores for a specific class, product measurements for a complete batch, historical stock returns for a closed period, census data for an entire city. You have ALL the data points, not a sample.
When to use sample s
Survey results from a portion of customers, laboratory measurements from a subset of samples, quality control checks on random items from production, opinion polls. Your data is drawn from a larger population.
Standard deviation in finance
In investing, standard deviation measures volatility — how much a stock or portfolio’s returns vary around its mean return. Higher σ = higher risk and potential reward. Portfolio theory uses standard deviation to optimise risk-adjusted returns.
Standard deviation in science
Scientific experiments report results as mean ± standard deviation (e.g. 25.4 ± 0.8 °C) to indicate precision. A small σ suggests the measurement is repeatable and consistent; large σ suggests experimental error or natural variability.
Step-by-Step Calculation Example
| Step | Formula | Example (dataset: 4, 7, 13, 2, 1) |
|---|---|---|
| 1. Mean | Σx / N | (4+7+13+2+1) / 5 = 27/5 = 5.4 |
| 2. Deviations | x − μ | −1.4, 1.6, 7.6, −3.4, −4.4 |
| 3. Squared | (x − μ)² | 1.96, 2.56, 57.76, 11.56, 19.36 |
| 4. Sum of squares | Σ(x − μ)² | 1.96+2.56+57.76+11.56+19.36 = 93.2 |
| 5. Variance | Σ(x−μ)² / N | 93.2 / 5 = 18.64 |
| 6. SD (σ) | √variance | √18.64 = 4.317 |
Related Statistics Calculators
Frequently Asked Questions
Analyse your dataset now
Standard deviation, variance, histogram, bell curve, and step-by-step working — free and instant.
Calculate standard deviation ↑