Calculateus

Standard Deviation Calculator

Calculate population and sample standard deviation and variance for a list of numbers.

Result

Sample Std. Deviation
13.4907
Population Std. Deviation
12.3153
Sample Variance
182
Population Variance
151.6667
Mean
18
806040200Value: 4Value: 8Value: 15Value: 16Value: 23Value: 42#1#2#3#4#5#6

About the Standard Deviation Calculator

Standard deviation measures how spread out a set of numbers is from their average - a small value means the data clusters tightly, a large value means it's spread widely. Our Standard Deviation Calculator finds both population and sample standard deviation from any list of numbers.

How It Works

The calculator finds the mean of your numbers, then the squared difference of each number from that mean, averages those squared differences (dividing by n for population, or n-1 for sample - Bessel's correction, which adjusts for the bias of estimating from a sample), and takes the square root to return to the original units.

Population variance = Σ(x − mean)² ÷ n Sample variance = Σ(x − mean)² ÷ (n − 1) Std. deviation = √variance

Formula & Methodology

Squaring each value's distance from the mean before averaging (rather than just averaging the raw distances) serves two purposes: it makes every deviation positive, so distances above and below the mean don't cancel out, and it weights larger deviations more heavily than smaller ones. Taking the square root at the end returns the result to the original units. Bessel's correction (dividing by n−1 instead of n for a sample) exists because a sample's mean is itself estimated from the same data, which slightly understates true variability unless corrected - dividing by the smaller n−1 compensates for that.

Step-by-Step: Calculating It By Hand

  1. 1Calculate the mean of all values.
  2. 2Find each value's difference from the mean, and square each difference.
  3. 3Sum the squared differences, then divide by n (population) or n−1 (sample) to find variance.
  4. 4Take the square root of variance to find standard deviation.

Examples

Tightly clustered data

The numbers 4, 8, 15, 16, 23, 42 have a specific standard deviation reflecting their spread around the mean of about 18.

Sample vs. population

Sample standard deviation (dividing by n−1) is always slightly larger than population standard deviation (dividing by n) for the same dataset - the correction accounts for extra uncertainty when estimating from a sample rather than measuring an entire population.

Advantages

  • Calculates both population and sample standard deviation, a frequently confused distinction
  • Shows variance alongside standard deviation for statistics coursework
  • Works with any comma or space separated list of numbers
  • Also shows the mean used in the calculation for transparency

Common Mistakes

  • Using population standard deviation when the data is actually a sample (or vice versa) - this changes which formula applies
  • Confusing variance (squared units) with standard deviation (original units) when reporting results
  • Not entering enough data points - standard deviation needs at least two values to be meaningful
  • Misinterpreting a low standard deviation as meaning the mean itself is more 'correct' rather than just less variable

Edge Cases to Watch For

  • A data set with only one value has undefined sample standard deviation, since dividing by n−1 would mean dividing by zero.
  • Population standard deviation is used when the data represents an entire population being studied; sample standard deviation is used when the data is a subset used to estimate a larger population's spread - the wrong choice here is a common statistics error.
  • A standard deviation of exactly zero means every value in the data set is identical.
  • Standard deviation is sensitive to outliers in the same way the mean is, since it's built directly from squared distances to the mean.

Common Use Cases

  • Statistics coursework and homework involving spread of data
  • Analyzing variability in a dataset, from test scores to measurements
  • Quality control and process consistency analysis
  • Foundational input for further statistical calculations like z-scores
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Should I use sample or population standard deviation?

Use sample standard deviation (dividing by n−1) when your numbers are a sample from a larger group. Use population standard deviation (dividing by n) only when your list IS the entire population you care about.

Conclusion

Standard deviation is the standard way to quantify how spread out data really is - a concept that becomes much clearer once you can compute it instantly and compare across different datasets. Our Z-Score Calculator builds directly on this to show how far any individual value sits from the mean.