Standard Deviation Calculator

Calculate standard deviation and variance for both sample and population data, with the mean, count and standard error alongside.

Separate values with commas, spaces or new lines.
Standard deviation 3.060788
s = √( Σ(x − x̄)² ÷ (n − 1) ) for a sample; divide by n for a population
Variance 9.368421
Mean 7
Count 20
Standard error of the mean Not defined
Coefficient of variation Not defined %

Assumptions: Use the sample formula unless your numbers are the entire population you care about. Sample is the default because it is the usual case.

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Standard Deviation Calculator does

The standard deviation calculator on this page will calculate standard deviation and variance for both sample and population data, with the mean, count and standard error alongside. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for measuring the consistency of a set of measurements. For a second version of this standard deviation calculator, see FreeToolsWorld.org.

How to use it

  1. Paste your numbers.
  2. Choose sample or population — sample is correct for almost all real data.
  3. Read the standard deviation; the variance is its square.
  4. The coefficient of variation lets you compare spread between datasets with different units.

When to use it

  • Measuring the consistency of a set of measurements.
  • Reporting spread alongside a mean in a lab or quality report.
  • Comparing variability between two datasets using the coefficient of variation.

Common mistakes to avoid

  • Using the population formula on sample data, which underestimates the true spread — this is why Bessel's correction (n − 1) exists.
  • Comparing standard deviations between datasets with different units or scales instead of using the coefficient of variation.

Frequently asked questions

Should I use sample or population?

Sample, unless your numbers genuinely are every member of the group you are describing. Twenty measurements out of a possible many are a sample. The heights of all eleven players in one specific team, if that team is the whole subject, are a population.

Why divide by n − 1?

Because the sample mean is itself estimated from the same data, which systematically underestimates spread. Dividing by n − 1, known as Bessel's correction, removes that bias.

What is the coefficient of variation for?

Comparing relative spread across different scales. A standard deviation of 5 is large for data averaging 10 and tiny for data averaging 10,000; expressing it as a percentage of the mean makes the two comparable.

Related tools

See all math & statistics calculators →