Last updated:

Standard Deviation Calculator

Creators

Saba ShaukatSaba ShaukatEducational Content Writer & Technical Conversion WriterSaba Shaukat is an educational content writer with an MSc in Media Studies and more than 14 years of teaching experience. She specialises in explaining information clearly, developing educational materials and making complex topics easier for everyday readers to understand. At EverydayCalcPro, she contributes practical calculator guides, tool explanations and user-friendly educational content. See full profileCheck our editorial policy

Reviewers

Faheem AliFaheem AliSoftware Developer, Digital Marketing Specialist & Technical WriterLinkedInWebsiteFaheem Ali is a software developer, digital marketing specialist and technical writer with over 12 years of experience in programming, digital marketing and content development. He holds two master’s degrees in Management Sciences and has professional certifications in programming and digital marketing. Based in Finland, Faheem focuses on developing reliable calculators, verifying mathematical formulas and calculation logic, and making technical and financial information accessible through clear, practical guides. See full profileCheck our editorial policy

1 people find this calculator helpful

Paste your numbers, choose population or sample, and get the standard deviation, variance and mean, with the table of squared deviations behind them. Results update as you type.

Is your data a sample or the whole population?
Population standard deviation of 8 values
2
σ = √(Σ(x − μ)² ÷ N)
Mean5
Variance4
Count8
  • Population standard deviation (σ)2
  • Sample standard deviation (s)2.1381
  • Sum40
  • Sum of squared deviations32
  • Median4.5
  • Minimum2
  • Maximum9
  • Range7
  • Coefficient of variation40%
  • Standard error of the mean0.7559

Squared deviations from the mean

Value xx − mean(x − mean)²
2-39
4-11
4-11
4-11
500
500
724
9416

Did we solve your problem today?

How standard deviation is calculated

Standard deviation summarises the spread of a data set in one number. The steps are the same for every data set:

Worked example: 2, 4, 4, 4, 5, 5, 7, 9

  1. Mean = 40 ÷ 8 = 5.
  2. Subtract the mean from each value and square the result (the table below).
  3. Add the squares: 32.
  4. Population variance = 32 ÷ 8 = 4. Sample variance = 32 ÷ 7 = 4.5714.
  5. Standard deviation = square root of the variance: population 2, sample 2.1381.
Value xx − mean(x − mean)²
2-39
4-11
4-11
4-11
500
500
724
9416
Total032

The two formulas

  • Population, σ σ = √( Σ(x − μ)² ÷ N ). Use it when your data is the whole group.
  • Sample, s s = √( Σ(x − x̄)² ÷ (n − 1) ). Use it when your data is a sample of a larger group.

If you are not sure, ask whether you would ever collect more data from the same group. If yes, you have a sample. Survey answers, a batch of measurements and a handful of test scores are usually samples. All the students in one class, when the class is the only group you are describing, is a population.

Same mean, different spread

Two groups of five test scores can have the same mean and very different spread:

GroupScoresMeanStandard deviation (population)
A70, 70, 70, 70, 70700
B50, 60, 70, 80, 907014.14

The mean alone hides the difference. Group A has no spread at all, while group B ranges from 50 to 90.

What one outlier does

Because differences are squared, extreme values pull the standard deviation up fast. Changing the last value in 200, 210, 220, 230, 240 to 2,000 moves the standard deviation from 14.14 to 714.07. Use the median and range alongside it when your data may contain outliers.

Using it: z-scores and the 68-95-99.7 rule

A z-score tells you how many standard deviations a value is from the mean: z = (x − mean) ÷ standard deviation. In the example the value 9 has z = (9 − 5) ÷ 2 = 2, two standard deviations above the mean. For roughly bell-shaped data, about 68% of values lie within 1 standard deviation of the mean, about 95% within 2 and about 99.7% within 3.

Standard deviation calculator FAQ

What is standard deviation?
It measures how far the values in a data set typically sit from their mean. A small standard deviation means the values are bunched close to the mean, and a large one means they are spread out. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is 2.
How do you calculate standard deviation?
Find the mean, subtract it from each value, square the differences, add them up, divide by N (population) or n − 1 (sample), then take the square root. For the data above the squared differences add to 32, the variance is 4 and the square root is 2.
What is the difference between sample and population standard deviation?
Use the population formula (divide by N) when your data is every member of the group you care about. Use the sample formula (divide by n − 1) when your data is only a sample from a larger group. For the same eight numbers the population value is 2 and the sample value is 2.1381. The gap shrinks as the sample gets larger.
Why divide by n − 1 for a sample?
A sample is closer to its own mean than to the true population mean, so dividing by n would make the variance too small on average. Dividing by n − 1 (Bessel's correction) removes that bias in the variance. The standard deviation itself is still very slightly low on average, but this is the standard choice.
What is the difference between standard deviation and variance?
Variance is the average squared distance from the mean, and standard deviation is its square root. Standard deviation is in the same units as your data, which makes it easier to read: if the data is in kilograms, the standard deviation is in kilograms and the variance is in kilograms squared.
What is a good or normal standard deviation?
There is no universal good value, because it depends on the scale of the data. Compare it with the mean using the coefficient of variation (standard deviation ÷ mean): the data above has 4%. A standard deviation of 2 is large for test scores out of 10 and tiny for house prices.
What is the 68-95-99.7 rule?
For data that follows a roughly bell-shaped (normal) distribution, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. It does not hold for data that is strongly skewed.
Can standard deviation be negative?
No. It is a square root of an average of squares, so it is zero or positive. It is zero only when every value is identical, such as 5, 5, 5, 5.
How many numbers do I need?
At least two. With a single value there is no spread to measure, and the sample formula would divide by zero. Standard deviation from very few values is not reliable, so treat it with caution.
How do outliers affect standard deviation?
A lot, because differences are squared. Changing the last value of 200, 210, 220, 230, 240 from 240 to 2,000 changes the standard deviation from 14.14 to 714.07. Check for typing mistakes and think about whether an outlier belongs in the data.

About this calculator

Method: Mean = sum ÷ n. Variance = Σ(x − mean)² ÷ N for a population or ÷ (n − 1) for a sample. Standard deviation = √variance. Coefficient of variation = standard deviation ÷ mean × 100. Standard error of the mean = sample standard deviation ÷ √n. Numbers can be separated by commas, spaces, semicolons or new lines. The maths runs in your browser, so nothing you enter is sent to our servers. Results are rounded for display; the underlying calculation uses full precision. Last reviewed November 24, 2026. Spotted a mistake? Tell us and we will correct it.

Sources: Wolfram MathWorld, Standard Deviation; Wolfram MathWorld, Bessel's Correction; NIST/SEMATECH e-Handbook of Statistical Methods.