Standard Deviation Calculator

Calculate sample and population standard deviation for an unweighted dataset. Enter at least two numbers to see both measures of spread, the mean, count, minimum, and maximum.

Enter at least two decimal numbers. Separate values with commas, semicolons, spaces, or newlines. Scientific notation is supported. Commas separate values; do not use them as thousands separators.

Sample standard deviation
2.13808994
Population standard deviation
2
Mean
5
Count
8
Minimum
2
Maximum
9

Sample and population standard deviation from a dataset

Standard deviation describes how far values typically lie from their mean, in the same units as the original measurements. The sample and population calculations use different denominators, so they should not be treated as interchangeable.

Use population standard deviation to describe the complete set of values you are treating as the population. Use the sample calculation when the observations are a sample used to estimate a wider population’s variability. The sample formula divides the squared deviations by n − 1 before taking the square root; it does not make standard deviation itself an unbiased estimator.

How to calculate standard deviation from your numbers

  1. Enter the dataset: Use decimal numbers separated by commas, semicolons, spaces, tabs, or newlines. Scientific notation such as 1.5e3 is supported.
  2. Check number formatting: Commas separate observations rather than groups of thousands: enter 1000, not 1,000, for one thousand. Do not include headings, unit suffixes, missing-value codes, or frequency counts.
  3. Calculate statistics: Select Calculate statistics to display the two standard deviations, mean, count, minimum, and maximum.
  4. Choose the appropriate result: Decide whether the entered data represent your full population or a sample. The calculator displays both rather than choosing a sampling interpretation for you.

Formula and variables

Both results use the same dataset and mean. The sample denominator is one smaller. This page requires at least two values so it can show both results.

Mean = Σx / n; population SD = √[Σ(x − mean)² / n]; sample SD = √[Σ(x − mean)² / (n − 1)]
x — Observation
One numeric value in the dataset.
n — Count
Number of entered observations, including repeated values.

Check the default eight-number dataset

Enter 2, 4, 4, 4, 5, 5, 7, 9.

Observations
2, 4, 4, 4, 5, 5, 7, 9
  1. There are 8 observations with a total of 40, so the mean is 5.
  2. The sum of squared deviations from 5 is 32.
  3. Population standard deviation = √(32 / 8) = 2.
  4. Sample standard deviation = √(32 / 7) ≈ 2.13808994.

Result: Mean: 5; count: 8; minimum: 2; maximum: 9; population SD: 2; sample SD: approximately 2.13808994.

The sample value is larger because it uses a denominator of 7 instead of 8.

Understanding your results

Sample versus population

Both outputs describe spread, but their denominators serve different statistical purposes. Repeated observations count separately; identical values produce zero spread.

Other outputs

The mean is the arithmetic average. Minimum and maximum are the smallest and largest entered observations, while count includes every parsed observation.

Assumptions

  • Every value is one equally weighted observation.
  • Measurements use compatible units.
  • No rows are automatically excluded as outliers.

Limitations

  • Standard deviation is sensitive to extreme observations; it is not a robust measure of spread for every dataset.
  • This tool does not calculate weighted statistics, confidence intervals, normality tests, or grouped-frequency statistics.
  • Computations use ordinary floating-point numbers and displayed results use nine significant digits. Small differences or extreme mixtures of magnitudes may lose precision; this is not arbitrary-precision arithmetic.
  • Input and result values must fit the supported finite numeric range. Rescale all observations consistently if their magnitudes are outside that range.

Common mistakes

  • Confusing sample and population denominators.
  • Using commas as thousands separators.
  • Pasting column headings or units with the values.
  • Treating a small standard deviation as proof of measurement accuracy.

Practical use cases

Check a classroom example

Compare both denominators using the default dataset and reproduce each calculation by hand.

Summarize repeated measurements

Describe spread in repeated readings while keeping measurement bias and sampling design separate from the calculation.

Frequently asked questions

Why are the sample and population results different?

Population variance divides by n. Sample variance divides by n − 1 before the square root, which gives a larger standard deviation when the data have nonzero spread.

Why do I need two numbers?

This tool displays both results. The sample denominator would be zero for a single observation, so the page requires at least two.

Can I enter negative numbers or decimals?

Yes. Finite signed decimals and scientific notation are supported. Separate observations with the documented delimiters.

Does a zero result mean every measurement is accurate?

No. Identical entered observations have zero spread, but they can still share a measurement bias or be rounded too coarsely.

Sources and review

  • Measures of Scale — NIST/SEMATECH e-Handbook of Statistical Methods. Accessed 2026-11-15.

Reviewed 2026-11-15.

Continue with calculators that answer nearby questions and help compare the next step.