Last updated:
Standard Deviation Calculator
Creators
Saba Shaukat
Saba 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 Ali
Faheem 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
Copy the code below to add this free calculator to your website. Please keep the credit link.
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.
- 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 x | x − mean | (x − mean)² |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
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
- Mean = 40 ÷ 8 = 5.
- Subtract the mean from each value and square the result (the table below).
- Add the squares: 32.
- Population variance = 32 ÷ 8 = 4. Sample variance = 32 ÷ 7 = 4.5714.
- Standard deviation = square root of the variance: population 2, sample 2.1381.
| Value x | x − mean | (x − mean)² |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Total | 0 | 32 |
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:
| Group | Scores | Mean | Standard deviation (population) |
|---|---|---|---|
| A | 70, 70, 70, 70, 70 | 70 | 0 |
| B | 50, 60, 70, 80, 90 | 70 | 14.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?
How do you calculate standard deviation?
What is the difference between sample and population standard deviation?
Why divide by n − 1 for a sample?
What is the difference between standard deviation and variance?
What is a good or normal standard deviation?
What is the 68-95-99.7 rule?
Can standard deviation be negative?
How many numbers do I need?
How do outliers affect standard deviation?
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.