Calculate Standard Deviation Step by Step
Use this standard deviation calculator to find how spread out a set of numbers is around its mean. Choose whether your values are the whole population or a sample, then inspect the variance, divisor, and each calculation so you can verify how to calculate standard deviation by hand.
Separate values with commas, spaces, or line breaks.
How to use the standard deviation calculator
Enter one or more finite numbers in the first box. You can paste a column from a spreadsheet or type values separated by commas, spaces, or line breaks. Select “The whole population” if the list contains every value in the group you want to describe. Select “A sample from a larger population” if the list is a subset and you want the sample estimate. Then choose Calculate standard deviation. The result shows the count, mean, variance, standard deviation, and the calculation for every value.
For example, entering 4, 7, 9, 10, 10 as a population returns a mean of 8, variance of 5.2, and standard deviation of about 2.2804. Switch the same data to sample mode and the mean remains 8, while the variance becomes 6.5 and the standard deviation becomes about 2.5495. The mean and squared deviations do not change; the divisor changes from five to four. This visible difference is why it is important to choose the right data type.
Use Copy results to place a plain-text summary on your clipboard. If the input is incomplete or contains a value that is not a finite number, the calculator explains what needs correcting. It does not silently skip invalid entries, since excluding a value would change the data set and the answer.
How to calculate standard deviation
Standard deviation describes the typical distance of values from their arithmetic mean, in the same units as the original data. First calculate the mean, written x̄: add all n values and divide by n. For every value xᵢ, subtract the mean to find its deviation. Square each deviation so values below and above the mean do not cancel one another. Add those squared deviations to get the sum of squared deviations.
For a population, divide that sum by n to get population variance: σ² = Σ(xᵢ − x̄)² / n. Population standard deviation is σ = √σ². For a sample, divide by n − 1 instead: s² = Σ(xᵢ − x̄)² / (n − 1), and sample standard deviation is s = √s². The calculator labels the selected formula and divisor beside the answer. Variance is measured in squared units; taking its square root returns the result to the units used for the data.
Worked example: 4, 7, 9, 10, 10
The sum is 40 and there are five values, so the mean is 40 ÷ 5 = 8. The deviations in input order are −4, −1, 1, 2, and 2. Squaring them gives 16, 1, 1, 4, and 4, for a total of 26. As a population, variance is 26 ÷ 5 = 5.2 and standard deviation is √5.2 ≈ 2.2804. As a sample, variance is 26 ÷ 4 = 6.5 and standard deviation is √6.5 ≈ 2.5495. The calculator table makes each contribution visible for checking.
Limits and interpretation
Standard deviation summarizes spread around the mean, but it does not show the shape of a distribution or identify unusual observations by itself. A few extreme values can strongly affect both the mean and standard deviation. When comparing groups, keep the original units and context in view; a standard deviation alone does not say whether a difference matters.
This calculator uses ordinary arithmetic on the values entered in your browser. It accepts finite numeric values and does not infer missing data, apply weights, or adjust for survey design. Population mode requires at least one value. Sample mode requires at least two so its n − 1 divisor is positive. Calculations run locally on this page; the tool is for checking mathematics, not professional advice.
Frequently asked questions
When should I use sample or population standard deviation?
Use population standard deviation when your list contains every member of the group you are describing. Use sample standard deviation when the values are a subset used to estimate spread in a larger group; it divides the squared-deviation sum by n − 1.
Why does sample standard deviation use n − 1?
The sample formula uses n − 1 degrees of freedom because the sample mean is estimated from the same observations. This adjustment makes the sample variance an unbiased estimator of population variance under the usual random-sampling assumptions.
Can standard deviation be negative?
No. Variance is a sum of squared distances divided by a positive count, so it cannot be negative. Standard deviation is its nonnegative square root. A result of zero means every entered value is the same.
What happens if I enter one number?
Population standard deviation is zero for a one-value population. Sample standard deviation needs at least two values because its divisor is n − 1, which would be zero for one value.
For checking mathematical calculations only.
Last updated 2026-11-25. Runs entirely in your browser; nothing you enter is uploaded.
More trending tools
- Calculate Stock Market Correction Territory
- Average Calculator and Formula
- Free Lunch Break Duration Calculator
- How to Calculate Square Footage
- Work Hours and Gross Pay Calculator
Optional analytics
With your consent, Google Analytics measures visits and tool-link clicks. No file contents, filenames or form inputs are collected. You can withdraw at any time.