Standard Deviation Calculator

A Standard Deviation Calculator measures how spread out numbers are from their average (mean). It computes both Population Standard Deviation (σ, dividing by N) and Sample Standard Deviation (s, dividing by n - 1 with Bessel’s correction).

Sample Standard Deviation (s)
5.2372
Variance: s² = 27.4286 (n − 1 = 7)
Population Standard Deviation (σ)
4.8990
Variance: σ² = 24.0000 (N = 8)
Mean (μ / x̄): 18.0000Sum (Σ x): 144.0000Count (N): 8Sum of Squares (SS): 192.0000
  1. Step 1: Calculate the total count of observations: n = 8.
  2. Step 2: Calculate the sum of all values: Σ x = 144.0000.
  3. Step 3: Calculate the arithmetic mean: μ = 144.0000 ÷ 8 = 18.0000.
  4. Step 4: Compute the squared differences from the mean (x - μ)² for each value, yielding the Sum of Squared Deviations (SS): SS = 192.0000.
  5. Step 5: Calculate Population Variance (divide by N = 8): σ² = 192.0000 ÷ 8 = 24.0000.
  6. Step 6: Calculate Population Standard Deviation (square root of σ²): σ = √(24.0000) = 4.8990.
  7. Step 7: Calculate Sample Variance using Bessel's correction (divide by n - 1 = 7): s² = 192.0000 ÷ 7 = 27.4286.
  8. Step 8: Calculate Sample Standard Deviation (square root of s²): s = √(27.4286) = 5.2372.
Deviation Calculation Table:
Value (x)Deviation (x − Mean)Squared Deviation (x − Mean)²
10.0000-8.000064.0000
12.0000-6.000036.0000
23.00005.000025.0000
23.00005.000025.0000
16.0000-2.00004.0000
23.00005.000025.0000
21.00003.00009.0000
16.0000-2.00004.0000

Population vs. Sample Standard Deviation: The Math

Standard deviation quantifies the dispersion of a dataset relative to its statistical average. When numbers are tightly clustered together, the standard deviation is small; when numbers are widely spread out, the standard deviation is large.

\sigma = \sqrt{\frac{\sum (x_i - \mu)^2}{N}}, \quad s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}}

The critical distinction between population and sample standard deviation lies in the denominator:

  • Population Standard Deviation (σ): Used when measuring an entire census or population. The sum of squared deviations is divided by total population size N.
  • Sample Standard Deviation (s): Used when analyzing a representative subset of a larger population. To compensate for natural sampling bias (data points lying closer to their sample mean than the true unknown population mean), Bessel's correction divides by n − 1 instead of n.

Worked Example: Exam Scores in a University Seminar

A professor evaluates the final exam test scores of 5 randomly sampled students: 70, 80, 80, 90, 100. What are the sample variance and sample standard deviation of this cohort?

  1. Calculate the sample size: n = 5.
  2. Sum all test scores: 70 + 80 + 80 + 90 + 100 = 420.
  3. Compute the sample mean (x̄): 420 ÷ 5 = 84.0.
  4. Calculate the deviation of each score from the mean (x - x̄):
  5. • 70 − 84 = −14
  6. • 80 − 84 = −4 (occurs twice)
  7. • 90 − 84 = +6
  8. • 100 − 84 = +16
  9. Square each deviation to eliminate negative signs:
  10. • (−14)² = 196
  11. • (−4)² = 16 (× 2 = 32)
  12. • (+6)² = 36
  13. • (+16)² = 256
  14. Sum the squared deviations (SS): 196 + 32 + 36 + 256 = 520.
  15. Apply Bessel’s correction by dividing by degrees of freedom (n − 1 = 4): Sample Variance s² = 520 ÷ 4 = 130.0.
  16. Take the square root to find Sample Standard Deviation: s = √130.0 ≈ 11.4018.
Conclusion: The sample standard deviation is approximately 11.40 test score points.

Recommended Tools

Suggested Tools & Learning Resources

Independent, reputable tools to accelerate your mathematical problem solving and study.

Standard Deviation and Variance Metrics Across Sample Distributions

DatasetCount (N)Mean (μ / x̄)Pop Std Dev (σ)Sample Std Dev (s)Spread Interpretation
5, 5, 5, 5, 555.000.000.00Zero Dispersion (Uniform)
4, 5, 5, 5, 655.000.630.71Low Dispersion (Tight Cluster)
1, 3, 5, 7, 955.002.833.16Moderate Uniform Spread
0, 0, 5, 10, 1055.004.475.00High Dispersion (Bimodal Tails)
-10, 0, 1030.008.1610.00Symmetric Centered at Zero
1001100.000.00UndefinedSingle Data Point

Common Mistakes in Standard Deviation Calculations

Using N Instead of (n - 1) for Sample Datasets

When working with sample data rather than an entire population, dividing by n underestimates true population variability. Bessel’s correction replaces N with (n - 1) in the denominator to produce an unbiased estimator of variance.

Confusing Variance and Standard Deviation

Variance is expressed in squared units (such as square dollars or square inches), making direct intuitive interpretation difficult. Standard deviation is the square root of variance, restoring the metric back to the original units of measurement.

Believing Standard Deviation Can Be Negative

Because squared deviations are always non-negative and the principal square root is non-negative, standard deviation is mathematically impossible to be negative. It equals 0 only when all numbers in the dataset are completely identical.

Frequently Asked Questions

What is standard deviation in simple terms?
Standard deviation is a statistical metric that measures how tightly clustered or widely spread out numbers are around their average. A low standard deviation means numbers are very close to the mean; a high standard deviation means they are widely scattered.
When should I use population vs. sample standard deviation?
Use Population Standard Deviation (σ) when you have measured every single individual or item in the group (e.g. all 30 students in your specific classroom). Use Sample Standard Deviation (s) when your data represents a random sample drawn from a larger overall population.
What is Bessel’s correction?
Bessel’s correction is the practice of dividing by (n - 1) instead of n when calculating sample variance. It compensates for the fact that sample data points naturally lie closer to their own sample mean than to the true overall population mean.
Why is sample standard deviation undefined for n = 1?
With only one data point (n = 1), the denominator (n - 1) becomes 1 - 1 = 0. Division by zero is mathematically undefined. A single number has no spread relative to other observations.
What does the 68-95-99.7 empirical rule state?
For a bell-shaped normal distribution, approximately 68% of data points fall within 1 standard deviation (μ ± 1σ) of the mean, 95% fall within 2 standard deviations (μ ± 2σ), and 99.7% fall within 3 standard deviations (μ ± 3σ).

Related Statistical Tools