By hand, step by step, with a worked example and the Excel formula.
Written & reviewed by Dackohn; last reviewed October 2026.
To calculate standard deviation: (1) find the mean, (2) subtract the mean from each value and square the result, (3) add up those squared differences, (4) divide by n−1 for a sample (or n for a whole population) to get the variance, and (5) take the square root. For 4, 8, 15, 16, 23, 42 the sample standard deviation is ≈ 13.49. Use n−1 when your data is a sample (the usual case).
Sample standard deviation: s = √( Σ(xi − x̄)² / (n − 1) ). Population: divide by N instead of n−1 and call it σ.
Data: 4, 8, 15, 16, 23, 42 (n = 6).
=STDEV.S(A1:A6)=STDEV.P(A1:A6)When your data is a sample, dividing by n−1 (Bessel’s correction) corrects a bias that would otherwise make the estimate too small. Use N only when your data is the entire population. Most real analyses use the sample version.
Skip the arithmetic: paste your numbers into the descriptive statistics calculator for the SD, variance, mean, and quartiles instantly.