induwara.lk
induwara.lkEducation · Statistics

Standard Deviation Calculator — with Variance, Mean & Steps

Paste any list of numbers to get the population and sample standard deviation, variance, mean, median, mode, range and standard error — with the full step-by-step working shown so you can reproduce every figure by hand. No signup, nothing uploaded, sources cited.

By Induwara AshinsanaUpdated Jul 16, 2026
Standard deviation & variance
NIST · OpenStax verified

Separate values with commas, spaces, tabs, or new lines. Decimals and negatives are fine. Up to 10,000 values.

Data type
Try an example
Standard deviation (s)
2.1381
Variance (s²)
4.5714
Mean (x̄)
5
Coefficient of variation
42.7618%
Population

divides by N

SD (σ)
2
Variance (σ²)
4
SampleSelected

divides by n−1 (Bessel)

SD (s)
2.1381
Variance ()
4.5714

Full summary

Count (n)
8
Sum (Σx)
40
Median
4.5
Mode
4
appears 3×
Minimum
2
Maximum
9
Range
7
Std error (SEM)
0.7559
s / √n

Distribution

min 2mean 5max 9

Step-by-step working

Formulas follow the NIST/SEMATECH e-Handbook §1.3.5.6 (variance, standard deviation, Bessel's n−1 correction) and OpenStax Introductory Statistics §2.7. All maths runs in your browser — nothing is uploaded.

How it works

Standard deviation measures how far a set of numbers typically sits from their average. The calculator follows the definitions in the NIST/SEMATECH e-Handbook of Statistical Methods and OpenStax Introductory Statistics, computing everything from a single pass over your data. Let the values be x₁ … xₙ.

  1. Count and sum. n is the number of valid values; Sum = Σxᵢ.
  2. Mean. x̄ = Sum ÷ n — the arithmetic average, and the point every deviation is measured from.
  3. Deviations and squares. For each value compute the deviation (xᵢ − x̄), then square it. Squaring removes the sign so values above and below the mean both add to the spread.
  4. Sum of squares. SS = Σ(xᵢ − x̄)². This is the single most important intermediate figure and it is printed on its own line in the working panel.
  5. Variance. Population variance σ² = SS ÷ N. Sample variance s² = SS ÷ (n − 1). The n − 1 divisor is Bessel's correction: because a sample's mean sits closer to its own points than the true population mean does, dividing by n − 1 rather than n makes s² an unbiased estimate of the population variance (NIST/SEMATECH §1.3.5.6).
  6. Standard deviation. The positive square root of the variance: σ = √σ² or s = √s². Taking the root returns the figure to the same units as the original data, which is why it is reported more often than variance.
  7. Median, mode and range. The median is the middle value once sorted (or the average of the two middle values for an even count); the mode is the most frequent value or values; the range is max − min.
  8. Standard error of the mean. SEM = s ÷ √n estimates how precisely the sample mean pins down the true population mean (NIST/SEMATECH §1.3.5.2). It shrinks as the sample grows.
  9. Coefficient of variation. CV = SD ÷ x̄ × 100% expresses spread relative to the average so you can compare data sets with different units; it is shown only when the mean is not zero.

The sum of squares is computed from the direct definition Σ(xᵢ − x̄)² rather than the algebraically-equivalent Σxᵢ² − (Σxᵢ)²/n shortcut. Both give the same answer for ordinary data, but the shortcut loses precision on large-magnitude values (a phenomenon called catastrophic cancellation), so the direct form keeps results accurate even for figures in the billions. All arithmetic runs client-side in double precision — your data never leaves the browser.

Worked examples

Example 1 — {2, 4, 4, 4, 5, 5, 7, 9}

  1. n = 8, Sum = 40, Mean x̄ = 40 ÷ 8 = 5
  2. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → SS = 32
  3. Population variance σ² = 32 ÷ 8 = 4 → σ = √4 = 2
  4. Sample variance s² = 32 ÷ 7 = 4.5714 → s = 2.1381
  5. Median = (4 + 5) ÷ 2 = 4.5; Mode = 4 (appears 3×); Range = 9 − 2 = 7
  6. SEM = 2.1381 ÷ √8 = 0.7559; Sample CV = 2.1381 ÷ 5 × 100 = 42.76%

Example 2 — {10, 12, 23, 23, 16, 23, 21, 16}

  1. n = 8, Sum = 144, Mean x̄ = 144 ÷ 8 = 18
  2. Squared deviations: 64, 36, 25, 25, 4, 25, 9, 4 → SS = 192
  3. Population variance σ² = 192 ÷ 8 = 24 → σ = √24 = 4.8990
  4. Sample variance s² = 192 ÷ 7 = 27.4286 → s = 5.2372
  5. Median = (16 + 21) ÷ 2 = 18.5; Mode = 23 (appears 3×); Range = 23 − 10 = 13
  6. SEM = 5.2372 ÷ √8 = 1.8516

Edge case — a single value {5}

  1. n = 1, Mean x̄ = 5, Sum of squares SS = 0
  2. Population σ² = 0 ÷ 1 = 0 → σ = 0
  3. Sample s² = SS ÷ (n − 1) = 0 ÷ 0 — undefined (needs at least 2 values)
  4. The tool shows the population values and a clear note; no NaN is displayed
  5. Median = 5, Range = 0, no mode (every value occurs once)

Frequently asked questions

Sources & references

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.