Skip to content
K Knidox Search…
Statistics · Descriptive

Standard Deviation Calculator

Paste a dataset to get the mean, variance, and both sample and population standard deviation.

Separate values with commas, spaces, or new lines.
Sample data — tap to load
Standard deviation (sample)
13.4907
6
Count
108
Sum
18
Mean
182
Variance (sample)
12.3153
SD (population)
Distribution of your data (histogram)

Standard deviation is the square root of the average squared distance from the mean: s = √[ Σ(xᵢ − x̄)² ÷ (n − 1) ]. For the data 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared deviations sum to 32, giving a sample SD of √(32 ÷ 7) = 2.138.

How standard deviation measures spread

Standard deviation answers one question: on average, how far do the values sit from their mean? You find each value’s distance from the mean, square those distances so positives and negatives don’t cancel, average the squares to get the variance, then take the square root to return to the original units. A small result means the data cluster tightly; a large result means they’re scattered.

s = √[ Σ(xᵢ − x̄)² ÷ (n − 1) ]

sample SD divides by n − 1; population σ divides by n

Worked example

Eight values: 2, 4, 4, 4, 5, 5, 7, 9.

  1. 1
    Find the mean. (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5.
  2. 2
    Sum the squared deviations. 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
  3. 3
    Divide, then take the root. Sample: 32 ÷ 7 = 4.571, √4.571 = 2.138. Population: 32 ÷ 8 = 4, √4 = 2.

Sample vs. population

Which divisor to use, and what the result describes.

VersionDivisorUse when
Sample (s)n − 1Your data is a sample from a larger group
Population (σ)nYour data is the entire group

Reading and using the result

It shares the units of your data. Variance is in squared units (e.g. cm²); taking the square root puts standard deviation back in the original units (cm), which is why it’s the figure most often reported.

Pair it with the mean. A standard deviation only means something next to its mean — an SD of 5 is tiny on a scale averaging 1,000 and huge on one averaging 10. The coefficient of variation (SD ÷ mean) makes that comparison explicit. Once you have the SD, you can standardize any single value with a z-score or build a confidence interval around the mean.

Don’t confuse SD with standard error. Standard deviation describes the spread of individual values; the standard error (SD ÷ √n) describes the spread of the sample mean and shrinks as your sample grows.

Outliers pull it up fast. Because deviations are squared, one extreme value can inflate the SD dramatically. Scan your data for typos and genuine outliers before trusting the number.

Why divide by n − 1 for a sample?
Bessel’s correction — dividing by n − 1 instead of n removes the bias you get when estimating a population’s spread from a sample, which otherwise tends to underestimate it.
How do I enter data?
Separate values with commas, spaces, or new lines. Non-numeric entries are ignored, so you can paste a messy column straight from a spreadsheet.
What’s the difference from variance?
Standard deviation is the square root of the variance, which returns it to the same units as your data. Variance is the squared, intermediate quantity.
Should I use sample or population SD?
Use the population version only when your numbers are the complete group. If they’re a sample standing in for something larger — the usual case — use the sample version.
How do outliers affect the result?
A lot. Squaring the deviations means a single far-off value can dominate the sum, so always check for errors and extreme points first.
How is standard deviation different from standard error?
Standard deviation describes how spread out individual values are; the standard error (SD ÷ √n) describes the spread of the sample mean and shrinks as the sample grows.