Paste a list of numbers into this standard deviation calculator and it returns the sample standard deviation, the population standard deviation, or both, along with the count, sum, mean, variance, range and coefficient of variation. A deviations table under the results shows every step, so you can copy the working onto your homework the way your instructor expects to see it.
How to Use the Standard Deviation Calculator
- Paste or type your data. Separate values with commas, spaces, tabs, semicolons or new lines, so a column copied from a spreadsheet works as it is. Write thousands without a comma (1250, not 1,250), because a comma is read as a separator. Leave out labels and units, so type 24.1, not 24.1 mL. Negative numbers and decimals are fine, and the Try example buttons load a sample data set if you want to see the layout first.
- Choose sample, population or both. Sample divides by n − 1 and population divides by n. If you aren't sure, choose both and compare.
- Read the summary. You get n, the sum Σx, the mean x̄, the sum of squares, the variance and the standard deviation for each version, then the minimum, maximum, range and CV. Results show up to four decimals and are computed from unrounded values.
- Open the deviations table. Each row lists a value, its deviation from the mean and the squared deviation. The last row totals the squares.
Results update as you type. Copy link stores your data set in the address so you can reopen it or send it to a study partner.
Sample and Population Standard Deviation Formulas
Both formulas start the same way: find the mean, subtract it from every value, square those deviations and add them up. That total is the sum of squares, SS = Σ(x − x̄)². They differ only in what you divide by.
| Sample | Population | |
|---|---|---|
| Variance | s² = SS ÷ (n − 1) | σ² = SS ÷ N |
| Standard deviation | s = √[Σ(x − x̄)² ÷ (n − 1)] | σ = √[Σ(x − μ)² ÷ N] |
| Mean symbol | x̄ | μ |
| Use it when | The data are a subset of a larger group | The data are every member of the group |
| TI-84 (1-Var Stats) | Sx | σx |
| Excel / Google Sheets | STDEV.S / STDEV | STDEV.P / STDEVP |
Here x is each data value, n (or N) is the number of values, and Σ means "add them all." Dividing by n − 1 in the sample formula is Bessel's correction. A sample's values sit a little closer to their own mean than to the true population mean, so dividing by n would understate the spread on average.
The standard deviation is the square root of the variance, which puts it back in the units of the original data. A variance of 3.5 square points becomes a standard deviation of 1.87 points.
Example 1: Six Values with the Full Deviations Table
Find the standard deviation of 4, 8, 6, 5, 3 and 7.
First, n = 6 and Σx = 33, so the mean is 33 ÷ 6 = 5.5.
| x | x − x̄ | (x − x̄)² |
|---|---|---|
| 4 | −1.5 | 2.25 |
| 8 | 2.5 | 6.25 |
| 6 | 0.5 | 0.25 |
| 5 | −0.5 | 0.25 |
| 3 | −2.5 | 6.25 |
| 7 | 1.5 | 2.25 |
| Total | 0 | 17.5 |
The deviations add to 0, which is a useful check: if your column doesn't sum to zero (allowing for rounding), the mean is wrong.
- Sample variance: 17.5 ÷ 5 = 3.5, so s = √3.5 = 1.8708
- Population variance: 17.5 ÷ 6 = 2.9167, so σ = √2.9167 = 1.7078
- Minimum 3, maximum 8, range 5
- CV: 1.8708 ÷ 5.5 × 100 = 34.02%. With Show both or Sample selected, the standard deviation calculator bases the CV on s. Choose Population and it uses σ instead, giving 31.05%.
Example 2: Lab Measurements and the Coefficient of Variation
In a chemistry lab, five titrations used 24.1, 24.3, 23.9, 24.2 and 24.0 mL of titrant. Lab reports usually want the sample standard deviation, because five trials are a sample of all the trials you could have run.
- Σx = 120.5 and x̄ = 120.5 ÷ 5 = 24.1 mL
- Deviations: 0, 0.2, −0.2, 0.1, −0.1
- Squared deviations: 0, 0.04, 0.04, 0.01, 0.01, so the sum of squares is 0.10
- s² = 0.10 ÷ 4 = 0.025 and s = √0.025 = 0.1581 mL
- CV: 0.1581 ÷ 24.1 × 100 = 0.66%
You would report the result as 24.1 ± 0.2 mL, rounding the standard deviation to match the precision of the measurements. The coefficient of variation, also called the relative standard deviation, lets you compare precision across experiments with different volumes or units.
Example 3: A Quick Check with a Known Answer
Before trusting any standard deviation calculator, including this one, test it on data with a known answer. The values 2, 4, 4, 4, 5, 5, 7 and 9 have a mean of 5 and a sum of squares of 32.
- Population: σ² = 32 ÷ 8 = 4, so σ = 2
- Sample: s² = 32 ÷ 7 = 4.5714, so s = 2.1381
OpenStax Introductory Statistics (section 2.7) gives a larger check: for its fifth-grade ages data set, the sum of squares is 9.7375, the sample variance 0.5125 and the sample standard deviation 0.715891. Paste that data in and the results match to four decimals.
What Each Number in the Results Tells You
| Output | Meaning | Example 1 |
|---|---|---|
| n | How many values were read | 6 |
| Sum (Σx) | All values added | 33 |
| Mean (x̄) | Sum divided by n | 5.5 |
| Sum of squares | Σ(x − x̄)², the total squared distance from the mean | 17.5 |
| Variance | Sum of squares divided by n − 1 or N | 3.5 / 2.9167 |
| Standard deviation | Square root of the variance, in the data's units | 1.8708 / 1.7078 |
| Range | Maximum minus minimum | 5 |
| CV | SD ÷ |mean|, as a percent | 34.02% (sample SD) |
A larger standard deviation means the values are more spread out around the mean. On its own the number has no "good" or "bad" size; it only makes sense next to the mean and the units. A standard deviation of 2 is huge for titration volumes and tiny for annual salaries.
If your data are roughly bell-shaped, about 68% of values fall within one standard deviation of the mean and about 95% within two. To see where one value sits, plug the mean and standard deviation into the z-score calculator, which turns any value into a standard score and a percentile.
Which Version Your Assignment Wants
Most homework, lab and research data are samples, so the sample standard deviation is the default in introductory statistics. Look for wording like "a random sample of 40 students" or "five trials." Use the population standard deviation when the problem says the data are the entire population, such as "the ages of all 12 employees in the office," or when a textbook explicitly asks for σ.
Online homework systems check the choice of standard deviation closely. If your answer is marked wrong but looks close, compare the two values the calculator gives; you may have used the other standard deviation formula. With large data sets the sample and population standard deviation nearly match, but with n = 5 the gap is easy to see.
Common Mistakes When Finding Standard Deviation by Hand
- Forgetting the square root. Stopping at 3.5 gives the variance, not the standard deviation.
- Squaring the sum instead of summing the squares. Square each deviation first, then add.
- Rounding the mean too early. With a mean like 5.333…, rounding to 5.3 before computing deviations shifts every squared term. Keep full precision until the last step.
- Dividing by n for sample data. This is the most common reason a hand answer is slightly smaller than the key.
- Typing a value twice or skipping one. Check that n in the results matches your count.
- Trusting the CV when the mean is near zero. Dividing by a tiny mean inflates the CV, and when the mean is exactly 0 it is undefined.
- Typing 1,250 for one thousand two hundred fifty. The comma splits it into 1 and 250. Check that n matches your count.
Going Further with Spread
Standard deviation is one of several measures of spread. The guide to variability in statistics compares it with the range, interquartile range and mean absolute deviation on a single data set. The comparison of descriptive and inferential statistics shows how the sample standard deviation feeds into confidence intervals and t-tests. When a whole problem set is due, a tutor from statistics homework help can explain each step with you.