Standard Deviation Calculator
Calculate mean, variance, standard deviation, and coefficient of variation for any dataset. Population and sample modes.
About the Standard Deviation Calculator
Standard deviation measures how spread out your data is around the mean. A low standard deviation means values cluster tightly around the average; a high one means they are widely scattered. In finance, standard deviation measures portfolio volatility - a fund with 12% average return and 8% std dev is less predictable than one with 12% return and 3% std dev. In quality control, it determines whether a manufacturing process is consistent.
Standard Deviation Formula
Population SD: σ = sqrt(Σ(x - μ)² / N) · Sample SD: s = sqrt(Σ(x - x̄)² / (N-1))
μ or x̄ = mean · N = total count · Use sample SD (N-1) when working with a sample, not the full population · Variance = SD² · 68-95-99.7 rule: 68% of data falls within 1 SD of mean, 95% within 2 SD, 99.7% within 3 SD
Worked Example
Monthly returns of a mutual fund over 6 months: 2%, 5%, -1%, 8%, 3%, 4%
Deviations squared: 2.25, 2.25, 20.25, 20.25, 0.25, 0.25 · Variance = 45.5/5 = 9.1 · Sample SD ≈ 3.02% · 68% of months should fall between 0.48% and 6.52%
Tips & Insights
- 1
Use sample standard deviation (N-1 denominator) for any dataset that is a sample from a larger population. If you measured the heights of 50 students from a school of 1,000, use N-1. Only use population SD when you have data on every single member of the group.
- 2
Coefficient of variation (CV) = SD / Mean expresses variability relative to the average. CV is useful for comparing two datasets with different units or scales: a manufacturing process with CV of 2% is far more consistent than one with CV of 15%, regardless of the absolute values.
- 3
In finance, annualized volatility = monthly SD × sqrt(12). A mutual fund with monthly SD of 3% has annual volatility of approximately 10.4%. This is how Sharpe ratio and Value-at-Risk are computed from monthly return data.
- 4
The 68-95-99.7 rule: in a normal distribution, 68% of values fall within 1 SD of the mean, 95% within 2 SDs, 99.7% within 3 SDs. A data point beyond 3 SDs is statistically very rare and worth investigating as an outlier or data entry error.
- 5
Standard deviation is sensitive to outliers - one extreme value can dramatically inflate it. If your SD seems unusually large, check whether a single data point is far from the others. For outlier-resistant spread, use interquartile range (IQR = Q3 - Q1) instead.
- 6
When comparing two investment options with the same expected return, always prefer the one with lower standard deviation - it gives you the same return for less risk. The Sharpe ratio formalises this: Sharpe = (Return - Risk-free rate) / SD. A higher Sharpe means better risk-adjusted performance.
- 7
For quality control in manufacturing (Six Sigma), the goal is to keep the process mean at least 6 standard deviations from the nearest specification limit. At 6-sigma quality, defects are fewer than 3.4 per million opportunities - an SD-based target that transformed manufacturing quality in the 1980s and 1990s.
Why this matters for you
Standard deviation is the fundamental measure of risk in finance, quality control, and scientific measurement. When a mutual fund advertises 15% CAGR, the standard deviation tells you how much that figure varies year to year. Two funds with identical returns but different standard deviations offer very different investor experiences - and the risk-adjusted comparison (Sharpe ratio) uses standard deviation as its risk measure.
In data science and machine learning, understanding the spread of your features is a prerequisite to almost every algorithm. Normalisation (z-score = (x - mean) / SD) puts features on the same scale so that no single variable dominates the model purely due to its magnitude. Features with very high SD may need log transformation; features with SD near zero are often uninformative and can be dropped. SD is the first statistic a data scientist computes when exploring a new dataset.
Students appearing for CAT, GMAT, or statistics papers in B.Com and MBA programmes regularly encounter standard deviation problems. The conceptual distinction between sample and population SD, the relationship between variance and SD, and the 68-95-99.7 rule for normal distributions are tested explicitly. Beyond exams, any professional working with data, running experiments, or evaluating performance metrics will use SD as their go-to measure of variability - making it one of the highest-value statistical concepts to master.
Related Calculators
Average
Calculate mean, median, mode, and range from any list of numbers. Paste a dataset and get all statistics instantly.
Percentage
Calculate percentages instantly - find X% of Y, percentage change, add or subtract percentages.
Ratio
Simplify ratios and solve proportions. Enter A:B to get the simplified form, decimal, and percentage equivalent.