Standard Deviation Calculator – Variance & SD Online
Calculate standard deviation and variance for any dataset with our free online calculator. Supports both population and sample standard deviation with step-by-step workings.
Enter numbers separated by commas, spaces, or new lines
Understanding Standard Deviation and Variance
Standard deviation measures how spread out your data is from the average. A low standard deviation means values cluster close to the mean. A high standard deviation means they're scattered widely. Variance is simply the square of standard deviation – it's used in calculations but standard deviation is more intuitive because it's in the same units as your data.
Think of test scores: if everyone scores around 75%, the standard deviation is small. If scores range from 40% to 100%, the standard deviation is large. Both classes might have the same average, but the spread tells a very different story about student performance.
Population vs Sample Standard Deviation
Population Standard Deviation (σ)
Use when you have data for the entire population – every member of the group you're studying.
σ = √[Σ(x - μ)² / N]Divide by N (total count). Used for census data, complete datasets.
Sample Standard Deviation (s)
Use when you have a sample and want to estimate the population standard deviation.
s = √[Σ(x - x̄)² / (n - 1)]Divide by n-1 (Bessel's correction). Gives unbiased estimate. Used for surveys, experiments.
Worked Examples
Example 1: Small dataset
Problem: Find standard deviation of {2, 4, 6, 8, 10}
Step 1: Mean = (2+4+6+8+10)/5 = 30/5 = 6
Step 2: Squared differences: (2-6)²=16, (4-6)²=4, (6-6)²=0, (8-6)²=4, (10-6)²=16
Step 3: Sum = 16+4+0+4+16 = 40
Step 4: Population variance = 40/5 = 8
Step 5: Standard deviation = √8 ≈ 2.83
Example 2: Sample vs Population
Problem: Same data {2, 4, 6, 8, 10}, but treat as a sample
Steps 1-3 are identical. Sum of squared differences = 40
Step 4: Sample variance = 40/(5-1) = 40/4 = 10
Step 5: Sample standard deviation = √10 ≈ 3.16
Notice: Sample SD (3.16) is larger than population SD (2.83) – the n-1 correction increases the estimate.
Example 3: Interpreting results
Problem: Class A has mean=75, SD=5. Class B has mean=75, SD=15. What does this mean?
Solution: Both classes average 75%, but Class A is more consistent.
Class A: Most scores between 70-80 (within 1 SD)
Class B: Scores spread from 60-90 (within 1 SD). More variability in performance.
Example 4: Coefficient of Variation
Problem: Dataset A: mean=100, SD=10. Dataset B: mean=50, SD=8. Which is more variable?
Solution: Compare coefficient of variation (CV = SD/mean × 100%)
CV(A) = 10/100 × 100% = 10%
CV(B) = 8/50 × 100% = 16%. Dataset B is relatively more variable despite smaller SD.
Example 5: Real-world application
Problem: Investment A returns 8% ± 2%. Investment B returns 10% ± 8%. Which is safer?
Solution: Standard deviation measures risk/volatility.
Investment A: Lower return but more predictable (SD=2%)
Investment B: Higher return but riskier (SD=8%). Returns could range from 2% to 18%.
Quick Fact
The term "standard deviation" was coined by Karl Pearson in 1893, but the concept dates back to Abraham de Moivre's work in 1733 on the normal distribution. Pearson also introduced the symbol σ (sigma) for standard deviation, borrowing from Greek mathematics where sigma represented "sum" – fitting for a measure based on summed squared differences.
The 68-95-99.7 Rule
For normally distributed data, standard deviation tells you exactly what percentage of values fall within certain ranges:
68%
Within 1 SD of mean
μ ± σ
95%
Within 2 SD of mean
μ ± 2σ
99.7%
Within 3 SD of mean
μ ± 3σ
Frequently Asked Questions
When should I use sample vs population standard deviation?
Use population SD when you have data for everyone/everything you're studying (all students in a class, all products from a batch). Use sample SD when your data is a subset used to estimate characteristics of a larger group (survey respondents, quality control samples).
Why divide by n-1 for sample standard deviation?
It's called Bessel's correction. Using n would underestimate the true population variance. Dividing by n-1 gives an unbiased estimate. The smaller your sample, the bigger the correction. With large samples (n>30), the difference becomes negligible.
What does a standard deviation of 0 mean?
Every value in your dataset is identical. There's no variation at all. If everyone scored exactly 75 on a test, the mean is 75 and the standard deviation is 0.
Can standard deviation be negative?
No. Standard deviation is always zero or positive. It's the square root of variance, and variance is a sum of squared values (always non-negative). A negative standard deviation is mathematically impossible.
What's a "good" or "bad" standard deviation?
There's no universal answer – it depends on context. In manufacturing, low SD means consistent quality (good). In investments, high SD means high risk (could be good or bad depending on your goals). Compare SD relative to the mean using coefficient of variation.
How is standard deviation used in grading?
Some teachers use "grading on a curve." If the class mean is 65 with SD=10, a score of 75 is one SD above average. They might assign A's to scores above +1 SD, B's to +0.5 to +1 SD, etc. This adjusts for test difficulty relative to class performance.
Other Free Tools
Mean, Median, Mode Calculator – Statistics Calculator Online
Calculate mean, median, and mode of any dataset with our free online statistics calculator. Enter your numbers and get comprehensive central tendency measures instantly.
Z-Score Calculator – Find Standard Score Online
Calculate the Z-score of any data point with our free online Z-score calculator. Enter the value, mean, and standard deviation to get the standardized score instantly.
Normal Distribution Calculator – Find Probability & Percentile
Calculate probabilities and percentiles for a normal distribution with our free online calculator. Input mean and standard deviation to find area under the bell curve.
Confidence Interval Calculator – Find CI for Mean Online
Calculate confidence intervals for population means with our free online confidence interval calculator. Supports 90%, 95%, and 99% confidence levels with margin of error shown.
Five Number Summary Calculator – Min Q1 Median Q3 Max
Find the five-number summary of any dataset with our free online calculator. Instantly compute the minimum, Q1, median, Q3, and maximum for complete data analysis.
Outlier Detector – Find Outliers Using IQR Method Online
Detect outliers in any dataset using the IQR method with our free online outlier detector. Find lower and upper fences and identify all outlying values in your data.
Correlation Coefficient Calculator – Find Pearson r Online
Calculate the Pearson correlation coefficient between two variables with our free online calculator. Measure the strength and direction of linear relationships in your data.
Average Calculator – Find the Mean of Any Numbers
Calculate the average or arithmetic mean of any set of numbers with our free online mean calculator. Enter your values and get instant results – great for students, teachers, and analysts.