March 26, 20264 min read

Standard Deviation Calculator — Population & Sample SD with Steps

Calculate mean, variance, and standard deviation for any dataset. Supports both population and sample formulas with step-by-step calculation breakdown.

standard deviation variance mean statistics calchub
Ad 336x280

Standard deviation tells you how spread out a dataset is around its average. A low SD means the values cluster tightly; a high SD means they're all over the place. It's one of the most useful single numbers in statistics — compact, informative, and universally understood. The CalcHub Standard Deviation Calculator calculates it along with mean, variance, and other summary statistics, with each step shown.

What It Calculates

Enter a list of numbers and get back:

StatisticSymbolWhat It Represents
Meanμ or x̄Average value
Varianceσ² or s²Average squared deviation
Standard Deviationσ or sTypical spread from the mean
MedianMiddle value
RangeMax − Min
Min / MaxExtreme values
CountnHow many data points

Population vs. Sample — Which to Use?

This is the first decision to make:

  • Population SD (σ): When your data IS the entire group. Divide by n.
  • Sample SD (s): When your data is a subset of a larger group. Divide by n−1.
The n−1 correction (Bessel's correction) prevents underestimating variability when working from a sample. In most real-world research, you're working with samples.

The Calculation — Step by Step

Dataset: 4, 7, 13, 2, 1
  1. Mean: (4 + 7 + 13 + 2 + 1) / 5 = 27 / 5 = 5.4
  2. Deviations from mean: (4−5.4), (7−5.4), (13−5.4), (2−5.4), (1−5.4) = −1.4, 1.6, 7.6, −3.4, −4.4
  3. Squared deviations: 1.96, 2.56, 57.76, 11.56, 19.36
  4. Sum of squared deviations: 93.2
  5. Variance (sample, n−1): 93.2 / 4 = 23.3
  6. Sample SD: √23.3 ≈ 4.83

How to Use the Calculator

  1. Enter your numbers separated by commas or line breaks: 12, 15, 11, 18, 14, 9
  2. Choose Population or Sample.
  3. Click Calculate — all statistics appear immediately with the step breakdown.
Paste directly from spreadsheet columns, copy-paste from data exports — the tool handles whitespace and extra formatting gracefully.

Interpreting the Results

Example: Two investment funds over 5 years
YearFund A ReturnsFund B Returns
18%2%
27%14%
39%−3%
48%18%
58%9%
Fund A: Mean = 8%, SD ≈ 0.63% Fund B: Mean = 8%, SD ≈ 7.88%

Same average return — wildly different risk profiles. SD makes that visible in one number.

Coefficient of Variation (CV)

When comparing datasets with different units or scales, use CV = (SD / Mean) × 100%. It expresses SD as a percentage of the mean, making apples-to-oranges comparisons possible.

Fund A CV = 0.63 / 8 × 100 = 7.9%
Fund B CV = 7.88 / 8 × 100 = 98.5%

Fund B is effectively as risky as its average return — a very volatile investment.

Tips

  • Outliers inflate SD dramatically: One extreme value (like 13 in the example above) pulls the SD up significantly. If you have outliers, note them — they may deserve separate analysis.
  • 68-95-99.7 rule: In a normal distribution, about 68% of values fall within ±1 SD of the mean. This is a quick sanity check on your data.
  • SD units match the data: If your data is in kg, SD is in kg. Variance is in kg² — which is why SD (the square root) is usually more interpretable.

Why do I get a different answer on two different calculators?

Likely one is using population formula (divide by n) and the other is using sample formula (divide by n−1). Check which one you need for your context. For most research and statistics work, sample SD is appropriate.

What does it mean if standard deviation equals zero?

Every single value in your dataset is identical. Zero spread means zero variation — all measurements returned the exact same result.

Very directly: a z-score measures how many standard deviations a value is from the mean. If your dataset has mean 50 and SD 10, a value of 65 has z-score (65−50)/10 = 1.5. They're two sides of the same concept.


Related calculators: Z-Score Calculator · Confidence Interval Calculator · Probability Calculator
Ad 728x90