Standard Deviation Calculator
Enter numbers separated by commas, spaces, or line breaks to calculate standard deviation, variance, mean, confidence intervals, frequency distribution, and detailed statistical metrics.
Enter Your Dataset
Parsed 8 numeric values
It is a
What Is Standard Deviation?
Standard deviation measures how spread out a dataset is around its mean. A small standard deviation means values cluster tightly around the average; a large one means they scatter widely. Mathematically, it is the square root of the variance — the average squared distance of each value from the mean. Because it lives in the same units as the data itself, standard deviation is the most readable single number for describing variability.
This calculator returns both the population (σ) and sample (s) standard deviation, the matching variances, the mean, sum, count, minimum, maximum, range, median, mode, quartiles, percentiles, coefficient of variation, skewness, excess kurtosis, the standard error of the mean, and a full confidence-interval table from 68.3% to 99.9999%. It pairs naturally with the mean median mode range calculator, the z-score calculator, and the probability calculator.
How Standard Deviation Is Calculated
Compute the mean
Add every value, divide by the count. The mean is the balance point of the data — the value around which deviations are measured.
Subtract the mean, square
For each observation x, compute (x − mean)². Squaring removes the sign and weights large deviations much more than small ones, so a single far-away value dominates the sum.
Sum the squared deviations
Add every squared deviation. The result, Σ(x − mean)², captures the total squared spread of the dataset around its centre.
Divide and take the root
Divide by n for a population, or by n − 1 for a sample (Bessel's correction), to get variance. Take the square root of that variance to return the answer to the original units — and you have the standard deviation.
6 Ways to Use This Standard Deviation Calculator
Describe variability
Quote the standard deviation alongside the mean whenever you report an average — together they describe both location and spread, the bare minimum for any honest summary.
Build confidence intervals
Use the standard error of the mean (σ ÷ √n) with the 68.3%, 95%, or 99% critical Z to bracket the true population mean with a known margin of error.
Detect outliers
Flag any value more than 1.5×IQR outside Q1–Q3, or more than three standard deviations from the mean, as a candidate outlier worth investigating before averaging.
Apply the empirical rule
For roughly normal data, 68% of values fall within ±1σ of the mean, 95% within ±2σ, and 99.7% within ±3σ — a fast sanity check on any sample summary.
Standardise features
Subtract the mean and divide by σ to put any column on the standard scale (mean 0, σ 1). Most ML algorithms — linear models, k-NN, neural nets — train faster and generalise better on standardised features.
Compare two datasets
The coefficient of variation (σ ÷ mean) is unit-less and lets you compare variability between datasets with completely different scales — say a temperature time-series with a financial return series.
Best Practices for Working With Standard Deviation
Decide whether your data is the full population or only a sample of one before reporting σ vs. s. Survey responses, lab measurements, and historical returns are almost always a sample, in which case dividing by n − 1 (Bessel's correction) gives an unbiased estimate of the population variance. Census data and the entire historical record of an account are populations, in which case dividing by n is correct.
Always report standard deviation alongside the mean, and never pre-round either one. A mean of 100 with σ = 10 tells a very different story than the same mean with σ = 50. The two together give the reader a sense of both centre and spread; reporting only the mean hides the difference.
Inspect a histogram before treating σ as a percentile gate. Standard deviation is most informative for symmetric, single-peaked distributions; for skewed or bimodal data, the median and IQR (or per-cluster summaries) describe the shape more faithfully. The Charts tab here gives you a histogram, a bell-curve overlay, and a box plot in one click — use them.
Why Standard Deviation Matters
Finance & investing
Volatility, value-at-risk, Sharpe ratio, beta, and option pricing all depend on the standard deviation of returns. A larger σ means a wider distribution of possible outcomes — exactly what risk means in modern portfolio theory.
Science & research
Every lab measurement carries an uncertainty band reported as ±σ or ±2σ. Quality-control charts flag samples beyond ±3σ. Confidence intervals on experimental effects are built directly from the sample standard deviation and the standard error.
Machine learning
Feature scaling, z-score normalisation, BatchNorm, and dropout all reference σ. The variance of weights drives initialisation schemes (He, Xavier). Without σ, none of the standard preprocessing pipelines would work the same way.
Education & testing
Standardised tests (SAT, GRE, IQ) report scores as z-scores against a population σ — that is what a percentile rank actually means. Curving exam grades around the mean and standard deviation lets instructors compare classes that took different forms.
Where Standard Deviation Gets Tricky
Skewed and heavy-tailed data
For income, response times, or insurance claims, the long right tail pulls the mean above the median and inflates σ. The 68-95-99.7 rule no longer applies; report median and IQR alongside (or instead of) mean and σ.
Small samples
With n < 30, the sample σ is itself a noisy estimate. For confidence intervals you should usually switch to Student's t-distribution and a t-table instead of using the standard normal critical values.
Different units
You cannot compare two σ values measured in different units — a σ of 5 inches and a σ of 5 grams are unrelated. Use the coefficient of variation (σ ÷ |mean| × 100%) to compare relative variability across units.
Outliers dominate
Because deviations are squared, a single extreme value can dominate the sum. If you suspect a typo or contamination, identify it on the Charts tab before computing further statistics.
The Core Standard Deviation Formulas
Population mean
μ = Σx ÷ N
Centre of the full population.
Sample mean
x̄ = Σx ÷ n
Centre of a sample drawn from a population.
Population variance
σ² = Σ(x − μ)² ÷ N
Mean squared deviation, divides by N.
Sample variance
s² = Σ(x − x̄)² ÷ (n − 1)
Bessel's correction — unbiased estimator of σ².
Population StdDev
σ = √[Σ(x − μ)² ÷ N]
Square root of population variance.
Sample StdDev
s = √[Σ(x − x̄)² ÷ (n − 1)]
Square root of sample variance.
Standard error of mean
SEM = σ ÷ √n or s ÷ √n
Standard deviation of the sampling distribution of the mean.
Margin of error
ME = z* · SEM
Half-width of a confidence interval.
Confidence interval
CI = x̄ ± z* · SEM
Range that contains the true mean with the chosen confidence.
Coefficient of variation
CV = (s ÷ |x̄|) × 100%
Unit-less relative spread — compares across units.
Z-score
z = (x − μ) ÷ σ
Standardise a value into σ-units around the mean.
Empirical rule
P(|Z| ≤ 1, 2, 3) ≈ 68.3, 95.5, 99.7%
Quick sanity check for normally distributed data.
Common Standard Deviation Mistakes
- 1
Mixing up σ and s
Dividing by n when your data is a sample under-estimates the true population variance — and the bias becomes large for small samples. If the data is a sample of a larger population, divide by n − 1.
- 2
Reporting variance instead of σ
Variance is in squared units (dollars-squared, kilograms-squared) and is rarely meaningful on its own. Take the square root and report σ — it speaks the same language as the data.
- 3
Treating σ like a percentile gate
The 68-95-99.7 rule only applies when the data is approximately normal. For skewed or bimodal data, the actual percentage within ±1σ can be quite different.
- 4
Quoting σ without n
A standard deviation computed from three observations is far less reliable than one from three hundred. Always state the sample size alongside σ, especially for confidence-interval claims.
- 5
Forgetting units
If x is in dollars, σ is also in dollars; variance is in dollars-squared. Carrying units through the math catches mistakes that the calculator alone cannot.
- 6
Comparing σ across different scales
A σ of 5 cm and a σ of 5 kg are not comparable. Use the coefficient of variation (σ ÷ |mean|) for any cross-unit comparison of variability.
Real-Life Uses of Standard Deviation
Risk and volatility
Investment volatility is reported as the annualised standard deviation of returns. A fund with a higher σ has a wider distribution of possible outcomes — the foundation of Sharpe ratio, beta, and modern portfolio theory.
Process control
Six Sigma processes target ±6σ around the specification mean — equivalent to roughly 3.4 defects per million opportunities. Statistical process control charts flag any sample beyond ±3σ as out-of-control.
Curved grading
Many instructors curve grades by computing each student's z-score against the class mean and σ, then mapping ranges of z to letter grades. The procedure standardises across exams of different difficulty.
Feature scaling in ML
StandardScaler subtracts the mean and divides by σ of each column so the training data has mean 0 and unit variance. Most gradient-based learners — including neural nets — converge faster on standardised inputs.
Methodology you can verify
Every statistic is computed live from your dataset using the canonical NIST formulas — Σ(x − mean)² for the deviation sum, divided by n (population) or n − 1 (sample) for the variance, with linear-interpolated quartiles matching Excel's PERCENTILE.INC and NumPy's numpy.percentile. Confidence-interval critical values come from the standard normal table. Read more on the methodology and editorial policy pages.
Frequently Asked Questions
Related Calculators
More statistics, probability, and math tools to pair with your dataset.
- Mean Median Mode Range CalculatorFull descriptive statistics — mean, median, mode, range, quartiles, variance, standard deviation, percentiles, skewness, outliers — with charts and step-by-step working.
- Z-Score CalculatorZ-score, percentile rank, tail probabilities, Z ↔ probability conversion, and probability between any two Z-scores with bell-curve visualisation.
- Probability CalculatorTwo-event probabilities, unions, intersections, complements, normal distribution, confidence intervals, and step-by-step solutions across five integrated tools.
- Percentage CalculatorCalculate % of a number, percentage change, and reverse percentages.
- Scientific CalculatorAdvanced trig, log, exponent, root, factorial, and memory functions.
- Percent Error CalculatorPercent error, relative error, absolute error, accuracy, and full experimental analysis with step-by-step solutions.