A standard deviation calculator for sample or population data, with variance and every step shown.
| x | x minus mean | (x minus mean)² |
|---|
Numbers are processed in your browser. The step table shows up to 50 values; all values are used in the result.
This standard deviation calculator measures how spread out a set of numbers is, for students, teachers, researchers and analysts anywhere. Paste your data, choose sample or population, and it returns the standard deviation, the variance, the mean, the standard error and the coefficient of variation, plus a table showing every step of the working.
Quick answer: A standard deviation calculator finds the mean, squares each value's distance from it, adds the squares, divides by n minus 1 for a sample (or n for a population) and takes the square root. For the scores 72, 85, 90, 64, 78, 88, 95 and 70 the mean is 80.25 and the sample standard deviation is 10.94.

In This Guide
What Is Standard Deviation?
Standard deviation is a measure of how far, on average, the values in a data set sit from their mean, in the same units as the data. This tool follows the textbook definition of standard deviation, so results match a spreadsheet or exam method line by line. A small standard deviation means the numbers cluster tightly around the average; a large one means they are widely scattered.
The sample formula is s = √(Σ(x minus mean)² ÷ (n minus 1)) and the population formula is σ = √(Σ(x minus mean)² ÷ n). The part inside the square root is the variance, which is in squared units. The standard error of the mean, s ÷ √n, shows how precisely the sample mean estimates the true mean.
How to Use the Standard Deviation Calculator
Step 1: Enter Your Numbers
Paste a column from a spreadsheet or type values separated by commas, spaces or new lines. Negative numbers and decimals are fine, and anything that is not a number is skipped and counted, so stray labels do not break the result.

Step 2: Choose Sample or Population
Choose Sample when your numbers are a subset used to estimate a larger group, which is the usual case and gives the sample standard deviation. Choose Population only when you have every member of the group, such as all 30 pupils in one class.

Step 3: Set the Decimal Places
Two decimal places suit most homework and reports, and the standard deviation calculator rounds only the display, never the working. Pick 4 or 6 when you need to match software output exactly or carry figures into further calculations.

Step 4: Read the Results and Steps
The big figure is your standard deviation, with the other type shown underneath for comparison. The grid gives variance, mean, count and sum, range, standard error and coefficient of variation, and the step table lists each deviation and square, so the variance calculator side of the tool shows its working too.

How Do I Calculate Standard Deviation by Hand?
To calculate standard deviation by hand, find the mean, subtract it from each value, square each difference, add the squares, divide by n minus 1 for a sample, and take the square root. The table below follows those steps for the default data.
| Score (x) | x minus mean (80.25) | (x minus mean)² |
|---|---|---|
| 72 | minus 8.25 | 68.0625 |
| 85 | 4.75 | 22.5625 |
| 90 | 9.75 | 95.0625 |
| 64 | minus 16.25 | 264.0625 |
| 78 | minus 2.25 | 5.0625 |
| 88 | 7.75 | 60.0625 |
| 95 | 14.75 | 217.5625 |
| 70 | minus 10.25 | 105.0625 |
| Sum 642 | 0 | 837.5 |
Worked example: Ms Patel records eight test scores from a class sample. The sum of squares is 837.5, and dividing by n minus 1 = 7 gives a sample variance of 119.64. The square root, 10.94, is the sample standard deviation, the figure this standard deviation calculator shows by default. Treated as a whole population, the variance would be 837.5 ÷ 8 = 104.69 and σ would be 10.23.
Should I Use Sample or Population Standard Deviation?
Use the sample standard deviation whenever your data are a sample drawn from a bigger group, and the population version only when the data include every member. Dividing by n minus 1, known as Bessel's correction, makes the sample variance an unbiased estimate of the population variance.
In spreadsheets, STDEV.S and VAR.S give the sample figures, while STDEV.P and VAR.P give the population figures. If you only need the mean, median and mode, the average calculator gives them without the spread. The gap between the two shrinks as n grows: with 8 values it is 10.94 against 10.23, but with 1,000 values the difference is tiny.
What Does a Standard Deviation Tell You?
A standard deviation tells you how typical the average is: when data are roughly bell shaped, about 68% of values lie within one standard deviation of the mean and about 95% within two. For the example scores, that puts most results between 69.31 and 91.19.
To compare spread between data sets with different averages, use the coefficient of variation, which is the standard deviation as a percentage of the mean; here it is 13.6%. To judge a single result, the z score calculator shows how many standard deviations it sits from the mean, so a score of 95 is about 1.35 above. Use the variance figure when a formula asks for squared units, such as in analysis of variance. When you go on to test whether two group means differ, the standard deviations feed straight into a t test.
Key Standard Deviation Terms Explained
These statistical terms explain each figure the standard deviation calculator returns and how the sample and population versions differ.
- Arithmetic mean
- The sum of all values divided by how many there are, and the centre that standard deviation measures distance from. For the example scores the sum is 642 over 8 values, so the mean is 80.25.
- Variance
- The average squared distance of values from the mean, in squared units. For the example data the sum of squares is 837.5, giving a sample variance of 119.64 and a population variance of 104.69.
- Bessel's correction
- Dividing the sum of squares by n minus 1 instead of n when working from a sample, so the variance does not underestimate the population's true spread. It is why sample results are slightly larger.
- Standard error of the mean
- The sample standard deviation divided by the square root of n, showing how precisely the sample mean estimates the true mean. For 8 scores with s of 10.94 it is about 3.87.
- Coefficient of variation
- The standard deviation expressed as a percentage of the mean, used to compare spread between data sets with different averages. For the example scores it is about 13.6%.
</>Embed this calculator on your website
Add the free Standard Deviation Calculator to your own site or blog. Copy the code below and paste it into an HTML block. It resizes itself and works on phones.
How we checked this tool: the Tools Veria Editorial Team built this tool by hand, checked it against the official rules or published standards where they apply, and tested it against worked examples. Results are estimates for planning, not personal financial or tax advice. Read our editorial policy and disclaimer, or report an error.
Frequently Asked Questions
What is the difference between variance and standard deviation?
Variance is the average of the squared distances from the mean, so it is in squared units. Standard deviation is the square root of the variance, which puts it back in the original units, such as marks, centimetres or pounds.
Why do we divide by n minus 1 for a sample?
A sample's own mean sits closer to its values than the true population mean does, so dividing by n would underestimate spread. Dividing by n minus 1, called Bessel's correction, removes that bias in the variance.
Can standard deviation be negative?
No, standard deviation can never be negative, because it is the square root of a sum of squares. It equals zero only when every value in the data set is exactly the same.
What is a good standard deviation?
There is no universal good value, because it depends on the units and the mean. Compare it with the mean using the coefficient of variation: below about 10% usually means data are tightly grouped, while above 30% suggests wide spread.
How many numbers do I need to calculate standard deviation?
You need at least two numbers, because one value has no spread. Small samples give unstable estimates, so with fewer than about 10 values treat the sample standard deviation as a rough guide.
Which Excel function matches this calculator?
STDEV.S matches the sample setting and STDEV.P matches the population setting. For variance, use VAR.S for a sample and VAR.P for a population, and the figures will match this tool to the same decimal places.