... LIVE
Paste from Excel, CSV, or type values. Min 2 values required. Please enter at least 2 valid numbers.
Standard Deviation
--
⚠️ Disclaimer: This calculator is for educational and general reference purposes. Results assume normally distributed data. For critical research or clinical decisions, verify with qualified statistical software.

Sources & Methodology

This calculator implements the corrected sample standard deviation formula (Bessel's correction) and the true population standard deviation formula as defined by the National Institute of Standards and Technology (NIST) and widely used in introductory and advanced statistics curricula worldwide.

All calculations use double-precision floating-point arithmetic. The step-by-step solver uses the Welford online algorithm to minimize rounding error for large data sets. Results are rounded to 4 decimal places for display.

Standard Deviation — Complete Guide

What Is Standard Deviation?

Standard deviation (SD) is the most widely used measure of statistical dispersion. It tells you, on average, how far each data point lies from the mean. A low standard deviation means your data is clustered tightly around the average — values are consistent and predictable. A high standard deviation means your data is spread out over a wide range — values are highly variable.

In practical terms: if two classes both scored a mean of 75% on a test, but Class A has an SD of 5 and Class B has an SD of 20, Class A's scores are much more uniform. Understanding this spread is essential for quality control, finance, research, and everyday data interpretation.

Standard Deviation Formula

There are two formulas, depending on whether your data represents a complete population or a sample drawn from a larger one.

Population SD: σ = √[ ∑(xᵢ − μ)² / N ]
Sample SD: s = √[ ∑(xᵢ − x̅)² / (N−1) ]

Where: xᵢ = each value | μ or x̅ = mean | N = count
Bessel's Correction (N−1): When working with a sample, dividing by N would consistently underestimate the true population spread. Using N−1 corrects for this bias, giving a slightly larger — and more accurate — estimate. This is why sample SD is almost always larger than population SD for the same data.

How to Calculate Standard Deviation Step by Step

Using the example data set: 4, 8, 15, 16, 23, 42

Step 1: Count values: N = 6
Step 2: Find mean: x̅ = (4+8+15+16+23+42) / 6 = 108/6 = 18
Step 3: Subtract mean, square each: (4−18)²=196 | (8−18)²=100 | (15−18)²=9
                                       (16−18)²=4 | (23−18)²=25 | (42−18)²=576
Step 4: Sum of squares: SS = 196+100+9+4+25+576 = 910
Step 5: Sample variance: s² = 910 / (6−1) = 182
Step 6: Sample SD: s = √182 = 13.4907

Variance vs Standard Deviation

Variance and standard deviation measure the same thing — spread — but in different units. Variance (s² or σ²) is the average of the squared deviations from the mean. Because it squares each deviation, variance is expressed in squared units (e.g., dollars², seconds²), which are hard to interpret directly.

Standard deviation solves this by taking the square root of variance, returning the result to the original unit of measurement. This is why SD is almost always reported instead of variance in descriptive statistics — but variance remains essential for inferential statistics like ANOVA and regression.

MetricFormulaUnitsBest Used For
Variance (Population)Σ(x−μ)² / NSquaredANOVA, regression
Variance (Sample)Σ(x−x̅)² / (N−1)SquaredInferential stats
Std Deviation (Pop.)√Variance (Pop.)OriginalEntire population
Std Deviation (Sample)√Variance (Sample)OriginalMost research
Standard Error (SEM)s / √nOriginalConfidence intervals
Coeff. of Variation(s / x̅) × 100%%Comparing data sets

Standard Error of the Mean (SEM)

Standard error of the mean (SEM) measures how accurately your sample mean estimates the true population mean. It is calculated as:

SEM = s / √n

A smaller SEM means your sample mean is more precisely estimated. SEM decreases as sample size increases — this is why larger studies produce more reliable results. SEM is the foundation of confidence intervals: a 95% confidence interval is approximately x̅ ± 1.96 × SEM.

Coefficient of Variation (CV)

The coefficient of variation expresses standard deviation as a percentage of the mean, allowing fair comparison between data sets with different scales or units:

CV = (s / x̅) × 100%

For example, comparing the consistency of two manufacturing processes that produce parts measured in millimetres vs inches — CV allows an apples-to-apples comparison that raw SD cannot provide. A CV below 15% is generally considered low variability in most applied fields.

Z-Score (Standard Score)

A z-score tells you how many standard deviations a particular value is from the mean:

z = (x − μ) / σ

A z-score of +1 means the value is one SD above the mean. A z-score of −2 means it is two SDs below. Z-scores are used to compare values across different distributions and to find probabilities using the standard normal distribution table.

When to Use Sample vs Population Standard Deviation

Use Population SD (σ): When your data set contains every single member of the group (e.g., all 30 students in one class, all products on a shelf).

Use Sample SD (s): When your data is a representative subset drawn from a larger group (e.g., 500 survey respondents representing a country). This is the default for most research, A/B testing, quality control, and business analytics.

Real-World Applications of Standard Deviation

Standard deviation is used across virtually every field that involves numerical data. In finance and investing, SD measures the volatility of a stock or portfolio — a higher SD indicates greater risk. In quality control, manufacturers use SD to ensure products fall within acceptable tolerance ranges. In education, standardised test designers use SD to check whether test scores are properly distributed. In medicine, clinical trials rely on SD to determine whether a drug's effect is statistically significant. In sports analytics, SD reveals consistency of player performance across games. In weather forecasting, SD of temperature data shows how much daily temperatures fluctuate around the seasonal average.

The 68-95-99.7 Rule (Empirical Rule)

For data that follows a normal (bell curve) distribution, standard deviation has a specific, predictable relationship with the percentage of values it covers:

RangeCoverageExample (mean=100, SD=15)
μ ± 1σ~68% of values85 to 115
μ ± 2σ~95% of values70 to 130
μ ± 3σ~99.7% of values55 to 145

This rule is foundational to quality control (Six Sigma targets ±6σ), grading on a curve, setting clinical reference ranges, and identifying statistical outliers.

Frequently Asked Questions

Find the mean of your data, subtract the mean from each value and square the result, sum all the squared differences, divide by N (population) or N−1 (sample) to get variance, then take the square root. Our calculator does all of this instantly with step-by-step working shown.
Population SD (σ) divides by N and is used when you have data for every member of the group. Sample SD (s) divides by N−1 (Bessel's correction) and is used when your data is a subset of a larger population. In most real-world analyses, sample SD is the correct choice.
A high standard deviation means data points are spread far from the mean — the data is highly variable or inconsistent. Whether this is "good" or "bad" depends on context. High SD in investment returns means higher risk. High SD in manufacturing dimensions means inconsistent quality.
Variance is the average of squared differences from the mean. Standard deviation is the square root of variance, expressed in the same units as the data. SD is more interpretable for reporting; variance is more useful in advanced statistical formulas like ANOVA and regression.
Enter your numbers in the data field above — separated by commas, spaces, or new lines. Select whether your data is a sample or a population, then click Calculate. The calculator instantly shows standard deviation, variance, mean, count, SEM, and coefficient of variation with full step-by-step working.
Standard error of the mean (SEM) = standard deviation / √sample size. It measures how accurately your sample mean estimates the true population mean. A smaller SEM means a more reliable estimate. It is the key input for calculating confidence intervals around a sample mean.
CV = (standard deviation / mean) × 100%. It expresses variability as a percentage of the mean, allowing comparison between data sets with different units or scales. A CV below 15% is typically considered low variability. CV is especially useful when comparing consistency across different measurement systems.
In finance, standard deviation measures investment volatility — how much a stock or portfolio's returns deviate from the average. A higher SD means greater risk and potential reward. Portfolio managers use SD to diversify holdings and target a specific risk/return profile. The Sharpe ratio uses SD to measure risk-adjusted return.
For normally distributed data, approximately 68% of values fall within 1 SD of the mean, 95% within 2 SD, and 99.7% within 3 SD. This empirical rule is used in quality control, grading curves, clinical reference ranges, and to identify outliers (values beyond 3 SD are statistically unusual).
A z-score (standard score) tells you how many standard deviations a value is from the mean: z = (x − μ) / σ. A z-score of +2 means the value is 2 SD above average. Z-scores are used to compare values across different distributions and to find probabilities from normal distribution tables.
Dividing by N when working with a sample produces a biased estimate — it consistently underestimates the true population SD. Using N−1 (Bessel's correction) corrects for this bias by slightly inflating the estimate. The lost "degree of freedom" accounts for the fact that one parameter (the sample mean) was estimated from the same data.
There is no universally "good" SD — it depends entirely on context. Use the coefficient of variation (CV = SD/mean × 100%) to judge relative variability. A CV below 15% is generally low; above 30% is high. In academic testing, an SD of 10-15 points on a 100-point exam is typical. In manufacturing, smaller SDs are better for precision.
🧮

Missing a Statistics Calculator?

We build new calculators every week. If there is a statistics tool you need — p-value, confidence interval, regression, hypothesis testing — request it and we will prioritize it.