Standard Deviation Calculator

Find the sample or population standard deviation and variance of a data set, with mean, step-by-step table and the 68-95-99.7 rule.

Loading calculator...

Standard deviation in short
On this page

How to use the standard deviation calculator

1

Enter your data

Paste or type your numbers, separated by commas, spaces or new lines.

2

Choose sample or population

Pick sample if your numbers are a subset of a larger group, or population if you have every value.

3

Read the result

The standard deviation, variance and mean appear instantly.

4

Check the working

Open the step-by-step table to see each value minus the mean, squared, then added up.

How standard deviation is calculated

Population standard deviation

σ = √( Σ(x − μ)² ÷ N )

μ is the mean of all N values in the population.

Sample standard deviation

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

Dividing by n − 1 (Bessel’s correction) stops a sample from underestimating the spread of the full population.

In words: find the mean, subtract it from every value, square each result, add the squares, divide by n (population) or n − 1 (sample) to get the variance, then take the square root.

Example 1: sample of 8 values

Data: 10, 12, 23, 23, 16, 23, 21, 16.

  • Mean 144 ÷ 8 = 18
  • Sum of squared deviations 192
  • Sample variance 192 ÷ 7 = 27.428571
  • Sample standard deviation 5.237229

If the same 8 numbers were a full population, the variance would be 192 ÷ 8 = 24 and the standard deviation 4.898979.

Example 2: a classic population

Data: 2, 4, 4, 4, 5, 5, 7, 9.

  • Mean 5
  • Population variance 4
  • Population standard deviation 2

This textbook data set is handy for checking your own manual working.

The 68-95-99.7 rule

For data that follows a normal (bell-shaped) distribution:

  • Within 1 SD of the mean about 68% of values
  • Within 2 SD about 95% of values
  • Within 3 SD about 99.7% of values

Use this as a rough guide only. Skewed data does not follow it closely.

Where a standard deviation calculator helps

Statistics homework

Check sample and population answers and copy the step table into your work.

Test scores and grades

See whether a class scored consistently or had a wide spread of results.

Investing and risk

Measure how much returns move around their average, a common measure of volatility.

Quality control

Track how much product measurements vary from the target size or weight.

Related tools

For the mean, median and mode of the same data, use the average calculator. The rounding calculator helps you report results to sensible precision, and the percent error calculator compares a measured mean with a known value.

Standard deviation calculator FAQ

Use population when your data includes every member of the group you care about. Use sample when your data is a subset used to estimate a larger group, which is the most common case.

It divides by n − 1 instead of n. That correction makes up for the fact that a sample tends to sit closer to its own mean than to the true population mean.

Variance is the average squared distance from the mean. Standard deviation is its square root, so it is in the same units as your data and easier to interpret.

Every value is the same, so there is no spread at all.

It is the standard deviation divided by the mean, shown as a percent. It lets you compare spread between data sets with different scales.

Up to 5,000 values. A sample needs at least 2 numbers.

Embed this calculator on your website

Free to use on any site. Copy the code below and paste it into an HTML block on your page. Please keep the credit link under the calculator.

Show the embed code

Works with WordPress, Wix, Squarespace, Webflow and most site builders that allow HTML. How embedding works.

Estimates, not advice

PureCalculate’s calculators give estimates for planning and education. They aren’t financial, tax or legal advice. Fees and tax rules change, so check the official source before making a decision. Spotted a mistake? Please tell us through the contact page.

Scroll to Top