Toolzent

Standard Deviation Calculator

Free standard deviation calculator: paste your numbers to get population and sample SD, variance, mean, count and sum instantly — with formulas and worked examples.

Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser

What is a standard deviation calculator?

A standard deviation calculator takes a list of numbers and instantly tells you how spread out they are around their average. A small standard deviation means the values cluster tightly near the mean; a large one means they are scattered widely. It is the single most common measure of dispersion in statistics.

This tool reports both flavours of the result — population standard deviation and sample standard deviation — alongside the variance, the mean, the count of values and their sum. Enter at least two numbers and it does the rest, with no rounding of your inputs and no data ever leaving your browser.

How does the standard deviation calculator work?

The calculator follows the textbook definition in four steps:

  1. Mean. Add every value and divide by how many there are: mean = Σx ÷ N.
  2. Squared deviations. Subtract the mean from each value and square the difference: (x − mean)². Squaring removes the sign so positive and negative gaps both count.
  3. Variance. Add up those squared deviations, then divide. Dividing by N gives the population variance σ²; dividing by N − 1 gives the sample variance .
  4. Standard deviation. Take the square root of the variance.

In symbols:

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

Here μ (mu) and x̄ (x-bar) both denote the mean, N is the count of values, and Σ means “sum of”. Variance is measured in the square of your data’s units (for example, dollars squared), while standard deviation shares the same units as the data because the square root undoes the squaring — which is exactly why it is the more intuitive figure to report.

Examples

Each example below matches the calculator exactly. Type the same numbers into the tool above and you will get the same results.

Example 1: the verified eight-value set

For 10, 12, 23, 23, 16, 23, 21, 16 (N = 8):

  • Sum = 144, so the mean = 144 ÷ 8 = 18.
  • Squared deviations from 18: 64, 36, 25, 25, 4, 25, 9, 4 — these add to 192.
  • Population SD = √(192 ÷ 8) = √24 ≈ 4.898979.
  • Sample SD = √(192 ÷ 7) ≈ √27.428571 ≈ 5.237229.

Example 2: a set with a repeated mode

For 2, 4, 4, 4, 5, 5, 7, 9 (N = 8):

  • Sum = 40, so the mean = 40 ÷ 8 = 5.
  • Squared deviations from 5: 9, 1, 1, 1, 0, 0, 4, 16 — these add to 32.
  • Population SD = √(32 ÷ 8) = √4 = 2.
  • Sample SD = √(32 ÷ 7) ≈ √4.571429 ≈ 2.138090.

Example 3: a tiny evenly spaced set

For 2, 4, 6, 8 (N = 4):

  • Sum = 20, so the mean = 20 ÷ 4 = 5.
  • Squared deviations from 5: 9, 1, 1, 9 — these add to 20.
  • Population SD = √(20 ÷ 4) = √5 ≈ 2.236068.
  • Sample SD = √(20 ÷ 3) ≈ √6.666667 ≈ 2.581989.

Notice the pattern across all three: the sample SD is always a little larger than the population SD, because dividing by N − 1 instead of N inflates the result.

Population vs sample standard deviation

The two formulas differ only in the denominator, but choosing correctly matters. Population SD describes a complete group you have measured in full; sample SD estimates the spread of a larger group from a smaller sample, and the N − 1 divisor (Bessel’s correction) compensates for the way a sample tends to underestimate the true spread.

MeasureSymbolDenominatorUse when
Population varianceσ²NΣ(x − μ)² ÷ N — data is the whole group
Population std. dev.σN√(Σ(x − μ)² ÷ N)
Sample varianceN − 1Σ(x − x̄)² ÷ (N − 1) — data is a sample
Sample std. dev.sN − 1√(Σ(x − x̄)² ÷ (N − 1))

The gap between the two shrinks as your data set grows. With thousands of values the choice barely changes the answer; with only a handful, as in Example 3, it is clearly visible (2.236068 vs 2.581989).

Common uses for standard deviation

  • Finance and investing. Standard deviation of returns is the standard gauge of volatility and risk — a higher SD means a more erratic asset.
  • Quality control. Manufacturers track the SD of measurements to keep parts within tolerance; a rising SD signals a process drifting out of control.
  • Education and testing. Test scores are summarised by their mean and SD, and z-scores rescale a result by how many standard deviations it sits from the average.
  • Science and research. Error bars, confidence intervals and ”± SD” notations all rest on standard deviation.
  • Sports and analytics. Comparing the consistency of two players with similar averages comes down to whose results have the smaller SD.

Tips and common mistakes

  • Match the formula to your goal. Reach for population SD (÷ N) only when your numbers are the entire population; otherwise use sample SD (÷ N − 1). Picking the wrong one is the most frequent error.
  • Square, then sum — never sum, then square. Σ(x − mean)² is not the same as (Σ(x − mean))²; in fact the deviations always sum to zero before squaring.
  • Mind the units. Standard deviation carries your data’s units; variance is in squared units, so never compare a variance directly with a raw value.
  • Standard deviation is sensitive to outliers. Because deviations are squared, one extreme value can dominate the result far more than it affects the mean.
  • Check the count and sum. If the tool’s reported N or sum looks wrong, a stray character or a typo crept into your input.

Limitations and notes

Standard deviation needs at least two numbers; the sample formula divides by N − 1, which is undefined for a single value, and one number has no spread to measure anyway. The figure is also most meaningful for roughly symmetric data — for heavily skewed sets or data with extreme outliers, the standard deviation can overstate the typical spread, so pair it with the median and range for a fuller picture. Finally, a standard deviation alone never reveals the shape of a distribution: two very different data sets can share the same mean and SD, so treat it as one summary among several rather than the whole story. This tool is for educational and general analytical use and is not a substitute for professional statistical advice.

Keep exploring the statistics category: get every measure of centre with the mean, median, mode calculator, or rescale a value by how many standard deviations it sits from the mean with the z-score calculator.

Frequently asked questions

How do you calculate standard deviation step by step?+

Find the mean, subtract it from each value and square the result, add those squared deviations, divide by N (population) or N−1 (sample), then take the square root.

Worked example: what is the standard deviation of 10, 12, 23, 23, 16, 23, 21, 16?+

The mean is 18 and the squared deviations sum to 192, so the population SD is √(192/8) = √24 ≈ 4.898979 and the sample SD is √(192/7) ≈ 5.237229.

What is the difference between population and sample standard deviation?+

Both use the same squared deviations, but population SD divides by N while sample SD divides by N−1 (Bessel's correction), making the sample value slightly larger.

Should I use population or sample standard deviation?+

Use population SD when your numbers are the entire group you care about; use sample SD when they are a sample meant to estimate a larger population.

What is the difference between variance and standard deviation?+

Variance is the average squared deviation from the mean; standard deviation is its square root, which returns the spread to the same units as your data.

How many numbers do I need to calculate standard deviation?+

At least two. A single value has no spread, and sample standard deviation divides by N−1, which is undefined when N equals 1.

Can standard deviation be negative?+

No. It is a square root of squared distances, so it is always zero or positive; it equals zero only when every value is identical.