Standard Deviation Calculator

Paste or type a list of numbers to get the sample and population standard deviation, variance, mean, median, mode and range.

  • Tested formula
  • Instant results
  • Updated October 7, 2026

Your details

Results Updates as you type

Standard deviation formulas

Population: σ = √( Σ(x − μ)² ÷ N )
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
  1. Find the mean (add the values and divide by how many there are).
  2. Subtract the mean from each value and square the result.
  3. Add the squared differences.
  4. Divide by N (population) or n − 1 (sample) to get the variance.
  5. Take the square root.
Example: For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 40 ÷ 8 = 5. The squared differences are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. Population variance = 32 ÷ 8 = 4, so σ = 2. Sample variance = 32 ÷ 7 ≈ 4.571, so s ≈ 2.138.

Mean, median and mode

  • Mean — the arithmetic average. Sensitive to outliers.
  • Median — the middle value when sorted (average of the two middle values for an even count). Robust to outliers, which is why it’s used for incomes and house prices.
  • Mode — the most frequent value. A data set can have several modes or none.
  • Range — maximum minus minimum.

How to use the calculator

  1. Paste or type your numbers separated by commas, spaces or new lines.
  2. Choose sample if the data is a subset of a larger group, or population if it includes every member.
  3. Read the standard deviation, variance, mean, median, range and the step-by-step working.

Sample or population?

Use the population formula (divide by N) when you have data for everyone you care about — every student in one class, every month of a year. Use the sample formula (divide by n − 1) when your data is a sample used to estimate a bigger group — 50 surveyed customers out of thousands. Dividing by n − 1 (Bessel’s correction) slightly increases the result to correct for the tendency of samples to underestimate variability. When in doubt, the sample formula is the usual choice in research and in spreadsheet functions such as STDEV.S.

Interpreting standard deviation

Standard deviation measures how spread out values are around the mean, in the same units as the data. For data that follow a roughly normal (bell-shaped) distribution, the 68–95–99.7 rule applies: about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three.

Example: Adult IQ scores are scaled to a mean of 100 and a standard deviation of 15. About 68% of people score between 85 and 115, and about 95% between 70 and 130.

Related measures

  • Variance: the square of the standard deviation. Useful in calculations but in squared units.
  • Coefficient of variation: standard deviation ÷ mean, as a percentage — compares spread between data sets with different scales.
  • Z-score: (value − mean) ÷ standard deviation — how many standard deviations a value lies from the mean.
  • Standard error of the mean: s ÷ √n — how precisely the sample mean estimates the population mean.

In spreadsheets

Excel and Google Sheets: =STDEV.S(range) for a sample, =STDEV.P(range) for a population; =VAR.S and =VAR.P for variance; =AVERAGE and =MEDIAN for the center. Outliers have a strong effect on standard deviation, so check for data-entry errors before drawing conclusions.

Frequently asked questions

Should I use sample or population standard deviation?
Use population standard deviation (σ) when your data includes every member of the group you care about — for example, the test scores of all 25 students in a class. Use sample standard deviation (s) when your data is a sample used to estimate a larger population, such as a survey of 500 voters. Most real-world statistics use the sample version.
Why does sample standard deviation divide by n − 1?
A sample’s values tend to be closer to the sample mean than to the true population mean, which makes the spread look smaller than it really is. Dividing by n − 1 (Bessel’s correction) compensates for this bias.
What does standard deviation tell me?
It measures how spread out values are around the mean. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean and about 95% within two.
What is variance?
Variance is the square of the standard deviation — the average squared distance from the mean. It is used in many formulas, but standard deviation is easier to interpret because it has the same units as the data.
Can standard deviation be negative?
No. It is a square root of an average of squared differences, so it is always zero or positive. It is zero only when all values are identical.
What is a high standard deviation?
It depends on the context and units. Compare it with the mean (coefficient of variation) or with other data sets of the same kind.

Last reviewed October 7, 2026. Results are estimates for informational purposes; see our disclaimer.