Mathematics & General CalculationsLast reviewed: November 2026

Standard Deviation Calculator

The Standard Deviation Calculator is a comprehensive statistical analysis tool that computes dispersion metrics for any numeric dataset. It calculates mean, median, range, Mean Absolute Deviation (MAD), variance, and both Sample (n - 1) and Population (N) standard deviations, complete with step-by-step intermediate deviation tables and normal distribution bell curve visualizations.

Key facts:
  • Standard deviation measures how spread out numbers are around the mean.
  • Sample SD divides by n − 1; population SD divides by N.
  • The worked example gives a sample SD of 4.95 for 12, 15, 18, 20, 25.
  • Variance is SD squared; MAD averages the absolute differences.

Loading calculator…

Share or Export Current Results

Share Standard Deviation Calculator directly or copy link to clipboard

TwitterLinkedInFacebookWhatsApp

Calculation Formula & Mathematical Engine

Theoretical equation governing this computation.

\sigma = \sqrt{\frac{\sum (x_i - \mu)^2}{N}} \quad \text{vs.} \quad s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}}

Variable Definitions

σPopulation Standard Deviation (used when analyzing the entire dataset/population)
sSample Standard Deviation (uses Bessel’s correction n-1 for unbiased estimation)
MADMean Absolute Deviation: (1/n) × Σ |x_i - mean|
μ / x̄Arithmetic mean of the numbers

Step-by-Step Calculation Example

Statistical Dispersion of a 5-Point Quality Test

Scenario: An engineer records 5 sample test measurements: 12, 15, 18, 20, 25.
Data Set12, 15, 18, 20, 25
Data ModeSample (Bessel’s n - 1 correction)
Execution Steps
  1. 1Count (n) = 5; Sum = 12 + 15 + 18 + 20 + 25 = 90
  2. 2Mean (x̄) = 90 / 5 = 18.00
  3. 3Deviations (x_i - x̄): -6, -3, 0, +2, +7
  4. 4Absolute deviations: 6, 3, 0, 2, 7 (MAD = 18 / 5 = 3.60)
  5. 5Squared deviations: 36, 9, 0, 4, 49 (Sum of Squares = 98)
  6. 6Sample Variance (s²) = 98 / (5 - 1) = 98 / 4 = 24.50
  7. 7Sample Standard Deviation (s) = √24.50 ≈ 4.95
Final Verified Output:Mean: 18.00 | MAD: 3.60 | Sample Std Dev: 4.95 | Variance: 24.50

Comprehensive Practical Guide

In-depth analysis, domain guidelines, standard practices, and common pitfalls.

Sample vs. Population: Why Bessel’s Correction Matters

When calculating standard deviation for an entire population (every member measured), divide by N. When calculating for a sample drawn from a larger population, dividing by N systematically underestimates the true variability. Bessel’s correction divides by (n - 1), yielding an unbiased estimator of population variance.

Interpreting Mean Absolute Deviation (MAD)

Standard deviation squares the deviations before averaging, which gives disproportionate weight to extreme outliers. The Mean Absolute Deviation (MAD) averages the simple absolute differences, providing an intuitive, outlier-resistant measure of average spread.

Frequently Asked Questions About Standard Deviation Calculator

Direct, verified answers to common calculation and methodology questions.

Variance is the average of the squared deviations from the mean. Standard deviation is the square root of the variance, returning the metric back to the original units of measurement.
Authoritative Sources & Data References:
  • NIST/SEMATECH e-Handbook of Statistical Methods
  • American Statistical Association (ASA) Guidelines

Disclaimer: Confirm whether your course syllabus or experimental protocol requires sample (n - 1) or population (N) variance.