Skip to content

Standard deviation calculator

Paste a list of numbers to get the sample and population standard deviation and variance, plus the mean, median, mode, range, quartiles, standard error and a 95% confidence interval.

  • Free, no limits
  • No sign-up
Everything happens in your browser; your data is never uploaded.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Paste or type your data, separated by commas, spaces or new lines.
  2. Read the sample (s) and population (σ) standard deviation.
  3. Check the mean, median, quartiles and other statistics.
  4. Use the 95% confidence interval for the mean if you need it.
Try it now

What standard deviation measures

Standard deviation describes how spread out values are around the mean. A small standard deviation means the values cluster tightly; a large one means they are scattered.

The calculator gives both versions:

  • Population standard deviation (σ): use it when your data includes every member of the group you care about.
  • Sample standard deviation (s): use it when your data is a sample from a larger group. It divides by n − 1 instead of n, which corrects the tendency of samples to underestimate spread.

It also shows variance, mean, median, mode, minimum, maximum, range, quartiles, the coefficient of variation, the standard error of the mean and a 95% confidence interval. Everything is computed in your browser.

Formula and worked example

σ = √( Σ(x − μ)² / n ) and s = √( Σ(x − x̄)² / (n − 1) )

Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)

  1. Mean = 40 / 8 = 5
  2. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16, which sum to 32
  3. Population variance = 32 / 8 = 4, so σ = 2
  4. Sample variance = 32 / 7 ≈ 4.571, so s ≈ 2.138

The median is 4.5, the mode is 4 and the range is 9 − 2 = 7.

Interpreting the result

For data that follows a roughly normal (bell-shaped) distribution, the empirical rule applies:

RangeShare of values
Mean ± 1 SDabout 68%
Mean ± 2 SDabout 95%
Mean ± 3 SDabout 99.7%

So if adult heights in a group average 69 inches with a standard deviation of 3 inches, about 95% fall between 63 and 75 inches. The coefficient of variation (SD divided by the mean) lets you compare spread between data sets with different units or scales.

Standard error and confidence interval

The standard error of the mean is s / √n. It shrinks as the sample grows, because averages of bigger samples are more precise. In the example, SE = 2.138 / √8 ≈ 0.756.

The 95% confidence interval for the mean uses Student's t-distribution with n − 1 degrees of freedom: mean ± t × SE. With 7 degrees of freedom t ≈ 2.365, giving roughly 3.21 to 6.79. This assumes the data comes from a roughly normal population; with small, skewed samples, treat it with care.

Quartiles and entering data

The lower quartile (Q1) and upper quartile (Q3) mark the 25th and 75th percentiles. They are computed with linear interpolation, the same method as the QUARTILE.INC function in common spreadsheets, so results match Excel and Google Sheets.

Separate values with commas, spaces or line breaks; you can paste a column from a spreadsheet. Use a period as the decimal point. Non-numeric entries are skipped and listed so you can check them. For averages with weights, use the average calculator.

Common mistakes

  • Using the wrong formula. Most real-world data is a sample, so s (n − 1) is usually right. Spreadsheet functions STDEV.S and STDEV.P match the two versions.
  • Confusing standard deviation with standard error. SD describes the spread of individual values; SE describes how precise the mean is.
  • Reading too much into small samples. With only a handful of values, the standard deviation can change a lot when one value changes.

Frequently asked questions

Should I use sample or population standard deviation?

Use population (σ) if your data covers the whole group. Use sample (s) if it is a sample from a larger group, which is the more common case.

Why does the sample formula divide by n − 1?

A sample's deviations are measured from its own mean, which makes them slightly too small. Dividing by n − 1 (Bessel's correction) compensates.

What is variance?

The square of the standard deviation: the average squared distance from the mean.

What is a good standard deviation?

It depends on the data. Compare it with the mean (coefficient of variation) or with other data sets measured the same way.

Do the quartiles match Excel?

Yes. They use the same linear interpolation as QUARTILE.INC.

Last updated: November 12, 2026

Recommended

Similar tools

If Standard deviation calculator helped, you may need these too.

See all in category →

People also use