Math Tools

Standard Deviation Calculator

Enter numbers to calculate standard deviation, variance, and other key statistical measures.

Sample Standard Deviation

5.24

Based on sample data (N - 1 divisor)

Count8
Sum144.00
Mean18.00
Population SD4.90
Sample SD5.24
Population Variance24.00
Sample Variance27.43

What is the Standard Deviation Calculator?

Standard deviation is a statistic that measures how far individual numbers are from the average. A small standard deviation means data points cluster near the mean; a large one means they are scattered. It has two forms: population SD (for the entire group) and sample SD (for a subset). Variance is the square of standard deviation.

How it works

The calculator accepts any list of numbers (separated by commas, spaces, or line breaks). It computes the mean, then calculates the average of squared differences from that mean. The square root of that average is the standard deviation. For sample data, it divides by N−1 instead of N to account for estimation bias.

Population SD = √[(Σ(x − mean)²) / N] | Sample SD = √[(Σ(x − mean)²) / (N − 1)]

Find the mean (average) of all numbers. For each number, calculate how far it is from the mean and square that difference. Sum all squared differences. Divide by N (population) or N−1 (sample). Take the square root. The result is standard deviation; its square is variance.

Examples

InputResultNotes
10, 12, 23, 23, 16, 23, 21, 165.61Sample SD for 8 test scores: spread is moderate, data varies about 5.6 points from mean (17.5)
100, 100, 100, 1000.00All values identical: zero standard deviation, no variation
5, 15, 25, 35, 4515.81Evenly spaced values: high SD (≈15.8), indicating wide spread across the range

How to use the Standard Deviation Calculator

  1. Enter all your data values into the input field (comma-separated or each on a new line)
  2. The calculator instantly computes mean and both population and sample standard deviations
  3. Review the result and supporting stats: count, sum, variance, and both SD forms
  4. Use sample SD (N−1) for real-world samples; use population SD (N) only for complete datasets

Benefits

  • Instant calculation—compute SD in seconds without manual arithmetic
  • Dual metrics—see both population and sample SD to choose the right one for your data
  • Complete stats—view mean, sum, count, variance, and two SD forms all at once
  • Handles decimals and negatives—no restrictions on input type
  • Free and client-side—no sign-up, and your data never leaves your browser

Tips & common mistakes

Common mistakes

  • Using population SD on a sample—if your data is a subset of a larger population, use sample SD (N−1) instead
  • Confusing variance with SD—variance is SD squared; SD is more intuitive (same units as data)
  • Entering non-numeric data—the calculator expects only numbers, commas, spaces, or newlines
  • Forgetting the mean—standard deviation is meaningless without knowing the mean (which the tool shows)

Tips

  • Use sample SD (N−1) most of the time unless you have data for an entire population
  • High SD means data is spread out; low SD means data clusters near the mean
  • Compare SDs across datasets of the same scale to see which varies more
  • In quality control, SD helps set acceptable tolerance ranges around a target value

Frequently asked questions

What's the difference between population and sample standard deviation?

Population SD uses N (all data). Sample SD uses N−1 (a subset of a larger population). Use sample SD when analyzing a sample; it's an unbiased estimator. Use population SD only when you have the complete dataset.

Why is sample SD larger than population SD?

Dividing by N−1 instead of N makes the result slightly larger. This correction (Bessel's correction) accounts for estimation uncertainty when sampling, giving a more accurate estimate of the true population SD.

What does a standard deviation of 5 mean?

On average, data points deviate about 5 units from the mean. If your mean is 100, expect most values near 95–105. SD is in the same units as your original data.

Can I use this for negative numbers?

Yes. Negative numbers are treated normally. Squaring them removes the sign, so the result depends only on distance from the mean, not direction.

What is variance and how does it relate to SD?

Variance is the average of squared deviations (SD²). SD is the square root of variance. SD is more intuitive because it's in the same units as your data; variance is used in more advanced statistics.

How many data points do I need?

At least 2 for sample SD. With only 1 value, there's no spread to measure. More data generally gives a more reliable SD.

Related tools

FreeToolz Editorial Team · Last reviewed July 2026

Reviewed for accuracy. Results are estimates for general information and are not professional (medical, financial or legal) advice.