Standard Deviation Calculator
Paste any list of numbers — separated by commas, spaces, or new lines — and instantly get sample and population standard deviation, variance, mean, median, and range. No formulas to look up, no spreadsheet needed.
Computing statistics...
Enter a list of numbers and click Calculate to see standard deviation, variance, mean, and median.
How This Calculator Works
s² = Σ(xᵢ − μ)² / (n−1) s = √s²
σ² = Σ(xᵢ − μ)² / n σ = √σ²
Mean μ = Σxᵢ / n Median middle value of sorted data Range = max − min
What Is Standard Deviation?
Standard deviation is a single number that tells you how spread out a set of values is around their average. A low standard deviation means the values cluster tightly near the mean. A high standard deviation means they are scattered far apart. It is the most widely used measure of variability in statistics, appearing in everything from school grade reports and clinical trial summaries to financial risk models and manufacturing quality control.
The word deviation refers to how far each value sits from the mean. Standard deviation averages those individual deviations — after squaring them to remove negative signs — then takes the square root to bring the result back to the original units. If your data is measured in kilograms, the standard deviation is also in kilograms, making it directly interpretable alongside the mean.
Sample vs Population Standard Deviation
There are two versions of the formula, and choosing the wrong one gives a biased result. The difference comes down to one question: do you have every member of the group, or only a subset drawn from a larger group?
Population standard deviation (σ) divides by n — the total count of values. Use it when your list contains every data point in the group you care about. Measuring the height of every player on a specific basketball team is a population, because you have all of them.
Sample standard deviation (s) divides by n−1, a correction known as Bessel's correction. Use it when your list is a random sample drawn from a larger population you could not measure in full. Surveying 200 students from a university of 20,000 is a sample. Dividing by n−1 instead of n slightly increases the result, which compensates for the tendency of a sample to underestimate the true spread of the full population. In most real-world situations — surveys, experiments, A/B tests — you are working with a sample, so s is the right choice.
How to Calculate Standard Deviation Step by Step
Using the class test scores preset as a worked example: 85, 92, 78, 95, 88, 76, 91, 83, 89, 74 — 10 values.
- Find the mean: add all values and divide by 10. 85+92+78+95+88+76+91+83+89+74 = 851. Mean μ = 851 / 10 = 85.1.
- Subtract the mean from each value and square: (85−85.1)² = 0.01, (92−85.1)² = 47.61, (78−85.1)² = 50.41, and so on for all 10 values.
- Sum the squared differences: the total is 463.9.
- Divide by n−1 (sample): 463.9 / 9 ≈ 51.54. This is the sample variance s².
- Take the square root: √51.54 ≈ 7.19. This is the sample standard deviation s.
The result tells you that individual test scores in this class deviate from the mean by about 7 points on average. A score of 92 is roughly one standard deviation above the mean.
What Is Variance?
Variance is the square of standard deviation. It represents the average squared distance between each value and the mean. Squaring the deviations before averaging removes negative signs and also amplifies large deviations, making variance sensitive to outliers. While variance has important mathematical properties — particularly when combining independent random variables — its units are squared (e.g., points², kg², dollars²), which makes it harder to interpret directly. Taking the square root to get standard deviation brings the measure back to the same scale as the original data.
In statistics and machine learning, variance appears frequently in formulas: the bias-variance tradeoff, analysis of variance (ANOVA), and principal component analysis (PCA) all operate on variance rather than standard deviation.
Mean, Median, and Mode — Why They All Matter
Standard deviation describes spread, but you need at least one measure of centre to interpret it. The three most common are mean, median, and mode.
The mean is the arithmetic average — the sum of all values divided by the count. It is sensitive to outliers: one extremely large value can pull the mean far from where most data sits.
The median is the middle value when the data is sorted. Half the values fall below it, half above. The median is resistant to outliers, which makes it the preferred measure of central tendency for skewed distributions such as household income or house prices.
The mode is the value that appears most frequently. Data with two modes is bimodal — a common signal that the dataset contains two distinct subgroups. When all values appear exactly once, there is no mode.
Standard Deviation in Real Life
Understanding standard deviation helps in any field that deals with data variability:
- Finance: the annualised standard deviation of daily returns is the most common measure of investment volatility. A portfolio with σ = 5% is far less risky than one with σ = 25%, even if both have the same average return.
- Quality control: manufacturers use standard deviation to monitor process consistency. A machine producing bolts with mean diameter 10 mm and σ = 0.01 mm is far more consistent than one with σ = 0.5 mm.
- Education: grade curves are set based on mean and standard deviation. Standardised test scores like SAT and IQ are expressed as standard deviations from the population mean (z-scores).
- Weather: climate scientists compare the standard deviation of temperature records across decades to detect increasing variability — a key signal of climate change.
- Sports analytics: a player with a high standard deviation of performance is inconsistent. A low standard deviation means reliable output game after game.
Statistics Formula Reference
| Statistic | Formula | Notes |
|---|---|---|
| Mean | μ = Σxᵢ / n | Sensitive to outliers |
| Median | middle value (sorted) | Robust to outliers |
| Sample variance | s² = Σ(xᵢ−μ)² / (n−1) | Use for sample data |
| Pop. variance | σ² = Σ(xᵢ−μ)² / n | Use when you have all data |
| Sample std dev | s = √s² | Same units as original data |
| Pop. std dev | σ = √σ² | Divides by n, not n−1 |
| Range | max − min | Sensitive to extreme outliers |
Standard Deviation Calculator FAQ
What is the difference between sample and population standard deviation?
When should I use sample vs population standard deviation?
What does a standard deviation of 0 mean?
What is a good or bad standard deviation?
How is variance related to standard deviation?
Why does sample standard deviation divide by n−1 instead of n?
Related Calculators
Percentage Calculator
X is what % of Y, percent of a number, percent change
Fraction Calculator
Add, subtract, multiply and divide fractions with steps
Bayesian Probability Calculator
True positive probability using Bayes' Theorem
Significant Figures Calculator
Count sig figs and round to scientific precision