School and math

Standard deviation calculator

Paste a list or a column from a spreadsheet to get the standard deviation, variance and mean, sample or population, with every step shown.

Worked example

72, 85, 90, 66, 78, 95, 88, 70 → s = 10.53

Find how spread out your numbers are

  1. Paste a column straight from a spreadsheet

    Tabs, commas, spaces and line breaks all split values, and 72x3 counts 72 three times: 72x3, 85, 90 is five values with a mean of 78.2.

    Example 72x3, 85, 90
  2. Divide by n − 1 for a sample

    Eight scores picked from a bigger year group are a sample, so s = 10.5289. If those eight are the whole class, divide by n instead and σ = 9.8489.

    Example s 10.53 · σ 9.85
  3. Catch a typo before it skews everything

    One 700 typed for 70 lifts the standard deviation from 10.53 to 218.71. A value past the 1.5 × IQR fences is flagged, with the answer worked out without it.

    Example 700 for 70
  4. Measure how unusual one score is

    A z-score counts standard deviations from the mean: 95 in this class is 1.38 above, about the top 8% if the scores follow a normal curve.

    Example z = 1.38
  5. Get the same figure in Excel

    STDEV.S matches Sample and STDEV.P matches Population; the older STDEV and STDEVP are the same pair. Quartiles differ by method: QUARTILE.INC gives 71.5 and 88.5, a TI calculator 71 and 89.

    Example =STDEV.S(A1:A10)

Watch: sample or population standard deviation, 2 or 2.14

Recorded on this calculator by Jeremiah Say, 31 Oct 2026 · 2:09 · no sound, captions on screen

What the video shows, in words
  1. 0:00 What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9? 2.14 as a sample, 2 as a population. Both are right: the only difference is the last division, by n − 1 or by n.
  2. 0:15 How do you work out a standard deviation? The mean is 5. Each number’s distance from it, squared: 9, 1, 1, 1, 0, 0, 4, 16, which add up to 32. Population: 32 ÷ 8 = 4, √4 = 2. Sample: 32 ÷ 7 = 4.57, √4.57 = 2.14.
  3. 0:34 Why divide by n − 1? The squares are smallest measured from the sample’s own mean (from 4 instead of 5 they total 40), and the whole group’s mean is almost never exactly the sample’s, so dividing by n runs small. The gap is 41% with 2 numbers, 5.4% with 10, 0.5% with 100.
  4. 1:06 Sample or population: STDEV.S or STDEV.P? Not sure, use sample (STDEV.S). Population (STDEV.P) only when the list is the whole group, like every score in one class.
  5. 1:17 How unusual is a value? (9 − 5) ÷ 2.14 = 1.87 standard deviations above the mean. In a bell-shaped spread about 68% of values sit within 1 standard deviation; here 6 of 8 do.
  6. 1:29 What does one typo do? Type 90 for 9 and the standard deviation jumps to 30.29, 14 times bigger. The calculator flags it and gives the answer without it, 1.51.

Watch on YouTube (opens in a new tab)

School and math: 26 more videos

Sample or population: which one?

The only difference is the last step of the variance. A population standard deviation divides the squared distances by n, the number of values. A sample standard deviation divides by n − 1. The sample variance is an estimate of the population’s, and as the OpenStax Introductory Statistics textbook (Rice University) puts it, “dividing by (n – 1) gives a better estimate of the population variance.” The NIST/SEMATECH e-Handbook of Statistical Methods defines the variance with n − 1; Excel’s STDEV.S uses n − 1 and STDEV.P uses n.

  • Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
  • Population: σ = √( Σ(x − μ)² ÷ n )

If you are not sure, use sample. School data, surveys, experiments and test batches are nearly always samples. Use population only when the list is the whole group, such as the scores of every student in one class when you only care about that class.

Values (n)Sample SD is larger by
241.4%
322.5%
511.8%
105.4%
301.7%
1000.5%
The sample standard deviation is the population one times √(n ÷ (n − 1)). The gap matters for small lists and almost vanishes for large ones.

Worked example

Eight test scores: 72, 85, 90, 66, 78, 95, 88, 70. The mean is 644 ÷ 8 = 80.5 (the average calculator shows the median and mode of a list as well). Each score’s distance from the mean is squared:

Score (x)x − mean(x − mean)²
72-8.572.25
854.520.25
909.590.25
66-14.5210.25
78-2.56.25
9514.5210.25
887.556.25
70-10.5110.25
The squares add up to 776.

Sample variance: 776 ÷ (8 − 1) = 110.8571, so the sample standard deviation is √110.8571 = 10.5289. As a population: 776 ÷ 8 = 97, and √97 = 9.8489.

The 68-95-99.7 rule

For data with a normal, bell-shaped spread, about 68.27% of values lie within one standard deviation of the mean, 95.45% within two and 99.73% within three. The calculator checks your own numbers against these shares. Real data often differs: in the eight scores above, 75% lie within one standard deviation. With only a mean and a standard deviation, the empirical rule calculator gives the share between, above or below any value.

Spotting typos and outliers

One wrong value pulls the standard deviation a long way: type 950 instead of 95 in the example above and it jumps from 10.53 to 308.27. The NIST handbook notes that the standard deviation is strongly affected by extreme values, and recommends box-plot fences to find them. The calculator uses those fences and warns you when a value falls outside them, with the standard deviation recalculated without it:

  • Mild outlier: below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR
  • Extreme outlier: below Q1 − 3 × IQR or above Q3 + 3 × IQR
  • IQR (interquartile range) = Q3 − Q1, the spread of the middle half of the data

Quartiles are found in more than one way, so check which your class uses. Textbooks such as OpenStax take the median of each half of the sorted list, leaving out the middle value when the count is odd, as TI calculators do; Excel’s QUARTILE.INC interpolates between values. For 1 to 8 the halves give Q1 = 2.5 and Q3 = 6.5, while QUARTILE.INC gives 2.75 and 6.25. The calculator shows both.

An outlier isn’t always a mistake. If it is a real value, keep it, and report the interquartile range or median absolute deviation alongside the standard deviation: NIST describes both as measures that “do not give undue weight to the tail behavior.” Both are under Mean, variance and every other figure.

Matched to Excel’s STDEV

Against Excel

Microsoft’s documentation for STDEV.S and STDEV.P uses ten breaking-strength readings (1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299) and gives 27.46391572 for the sample and 26.05455814 for the population. Paste the same numbers here and you get 27.4639 and 26.0546: the same answers, to the four places shown.

Against a statistics textbook

OpenStax Introductory Statistics works an example with the ages of 20 students: 9 (once), 9.5 (twice), 10 (4 times), 10.5 (4 times), 11 (6 times) and 11.5 (3 times). It gets a mean of 10.525 and a sample standard deviation of 0.715891. Type it here as 9, 9.5x2, 10x4, 10.5x4, 11x6, 11.5x3 and choose All places: you get the same 0.715891.

Microsoft and OpenStax both print worked standard deviations, one from ten breaking strengths and one from 20 ages. The calculator recomputes all five figures at build time, to the places shown, and stops on a mismatch. Last run 19 November 2026.

ExampleWhere it’s printedThe source’s answerThis calculator
Microsoft’s 10 breaking strengths: sample standard deviationMicrosoft Support: STDEV.S27.4639157227.46391572
The same 10: population standard deviationMicrosoft Support: STDEV.P26.0545581426.05455814
OpenStax’s 20 fifth-grade ages: the meanOpenStax Introductory Statistics 2e, §2.710.52510.525
The same ages: sample varianceOpenStax Introductory Statistics 2e, §2.70.51250.5125
The same ages: sample standard deviationOpenStax Introductory Statistics 2e, §2.70.7158910.715891

Questions

What does the standard deviation tell me?

How spread out the numbers are around their mean, in the same units as the data. A small standard deviation means the values cluster near the mean; a large one means they are spread out. The NIST handbook notes it can be pulled up a lot by a few extreme values.

Why is the variance a bigger number?

The variance is the standard deviation squared, so it is in squared units (points², cm²). The standard deviation takes the square root to bring it back to the original units, which is why it is the figure usually quoted.

Can I paste numbers with commas as thousands separators?

Yes, from a column: 1,234 on its own line is read as one thousand two hundred and thirty-four. In a single comma-separated line, commas separate the numbers, so type 1234 there. The line under the box says how many numbers were read and lists anything left out.

What about decimal commas, like 1,5?

They work when the numbers are separated by semicolons or new lines, as spreadsheets set to many European languages paste them: 1,5; 2,25; 3,125 is read as 1.5, 2.25 and 3.125, and the line under the box says so. A list with a full stop in it keeps commas as separators, and 1,250 on its own stays one thousand two hundred and fifty.

What is a z-score?

How many standard deviations a value sits above or below the mean: (value − mean) ÷ standard deviation. Open “How unusual is a value?” and type any value to get its z-score.

Sources

How sources are chosen and checked: editorial policy · these sources in the library, with the other tools that use them

Scroll to Top