Mean · Variance · Population & Sample SD

Standard Deviation Calculator

Enter your data set to instantly calculate mean, median, mode, variance, and standard deviation. Shows full step-by-step working for both population and sample SD.

Mean, Median, Mode
Population & Sample SD
Step-by-Step Working
Outlier Detection
Ad · 728×90
σ
Standard Deviation
Enter data separated by commas or new lines
Quick examples
Test Scores
Stock Returns
Heights (cm)
Temperatures
Ad · 300×250
σ

Enter your data set to calculate mean, standard deviation, variance, and more.

Ad · 300×600
Ad · 728×90

Standard Deviation Explained

Standard deviation measures how spread out values in a data set are from the mean. A low SD means values cluster tightly around the mean. A high SD means values are spread out widely. It is the most widely used measure of variability in statistics.

There are two versions: population SD (σ) divides by n — used when you have all values for the entire population. Sample SD (s) divides by n−1 — used when your data is a sample from a larger population (the most common real-world case). Dividing by n−1 corrects for the bias that comes from estimating the population mean from a sample.

Population SD: σ = √( Σ(xᵢ − μ)² / n )
Sample SD: s = √( Σ(xᵢ − x̄)² / (n−1) )

Variance: σ² or s² = (SD)²
Mean: x̄ = Σxᵢ / n
Population vs Sample SD
Use population SD (÷n) when you have data for the entire population — e.g., all 30 students in a class. Use sample SD (÷n−1) when your data is a sample from a larger population — e.g., 30 randomly chosen people representing all adults. Sample SD is more common in research and statistics.
The 68-95-99.7 Rule
In a normal distribution: approximately 68% of data falls within 1 SD of the mean, 95% within 2 SDs, and 99.7% within 3 SDs. Values more than 2 SDs from the mean are often considered unusual; more than 3 SDs are potential outliers. This rule applies to normally distributed data.
Coefficient of Variation
CV = (SD / Mean) × 100. This expresses SD as a percentage of the mean — useful for comparing variability between datasets with different units or scales. A CV of 10% means the SD is 10% of the mean. It's unitless, making it the best tool for comparing spread across different measurements.
Real-World Uses
Finance: stock price volatility (higher SD = higher risk). Quality control: measuring product consistency. Education: grading curves and test score analysis. Sports: evaluating player performance consistency. Weather: temperature variability. Medicine: clinical trial result analysis.
Frequently Asked Questions
What is standard deviation in simple terms?+
Standard deviation tells you how spread out your data is. If everyone in a class scored exactly 75 on a test, the SD is 0 — no spread at all. If scores ranged from 40 to 100, the SD would be high. More precisely, it measures the average distance each data point is from the mean. Low SD = data clusters near the mean. High SD = data is spread wide. It's expressed in the same units as your data — so if your data is in kg, so is the SD.
What is the difference between standard deviation and variance?+
Variance is the average squared distance from the mean. Standard deviation is the square root of variance. Variance is harder to interpret because it's in squared units (e.g., kg²), while SD is in the original units (kg). Both measure spread; SD is more interpretable. Variance is used in mathematical formulas and statistical tests. The relationship: Variance = SD² and SD = √Variance.
When should I use population vs sample standard deviation?+
Population SD (divides by n): Use when you have data for an entire population — all students in a school, all products from a batch. Sample SD (divides by n−1): Use when your data is a sample drawn from a larger population — survey results, lab measurements, any research data. In practice, sample SD is almost always the right choice — you rarely have complete population data. Excel's STDEV() uses sample SD; STDEVP() uses population SD.
How do you calculate standard deviation step by step?+
Step 1: Find the mean — add all values and divide by n. Step 2: Subtract the mean from each value to find the deviation. Step 3: Square each deviation (this removes negatives and emphasizes outliers). Step 4: Sum the squared deviations. Step 5: Divide by n (population) or n−1 (sample) to get the variance. Step 6: Take the square root to get the standard deviation. This calculator shows all these steps with your actual data.
What is a good standard deviation value?+
There's no universal "good" standard deviation — it depends entirely on the context. A body temperature SD of 0.5°C is normal; 5°C would indicate something is wrong with your data. The coefficient of variation (CV = SD/Mean × 100%) is more meaningful for comparison. In manufacturing, a CV under 1% is excellent precision. In financial returns, annual SD of 15–20% is typical for equities. Compare SD to your mean: if SD is larger than your mean, your data is highly variable.
How does standard deviation relate to the normal distribution?+
In a normal (bell-curve) distribution, standard deviation defines the shape: 68% of values fall within 1 SD of the mean (mean ± 1σ). 95% fall within 2 SDs (mean ± 2σ). 99.7% fall within 3 SDs (mean ± 3σ). This is the 68-95-99.7 rule (or empirical rule). Values beyond 2 SDs are statistically unusual (~5% of the time). Values beyond 3 SDs are rare (~0.3%). This framework is used in quality control, grading curves, and statistical hypothesis testing.
How do outliers affect standard deviation?+
Outliers significantly inflate standard deviation because SD squares the deviations — a value far from the mean contributes disproportionately. Example: the data set {1, 2, 3, 4, 100} has a mean of 22 and SD of ~43.5. Without 100, mean = 2.5 and SD = 1.3. When outliers are present, median and interquartile range (IQR) are often more appropriate than mean and SD for describing the data. This calculator flags values more than 2 SDs from the mean as potential outliers.
What is the standard error and how is it different from standard deviation?+
Standard deviation measures the variability of individual data points around the mean. Standard error (SE) measures how precisely the sample mean estimates the true population mean: SE = SD / √n. As sample size increases, SE decreases (larger samples give more precise estimates), but SD doesn't change systematically. SD describes variability in your sample data. SE describes uncertainty about the true population mean. SE is used in confidence intervals and hypothesis tests; SD describes the data distribution.
How is standard deviation used in finance?+
In finance, standard deviation is the primary measure of investment risk (volatility). A stock or portfolio with a high SD of returns is more volatile — larger swings both up and down. Annual SD of returns: money market funds ~0.1%; bond funds ~3–7%; diversified equity funds ~15–20%; individual stocks ~25–50%+. The Sharpe Ratio (return / SD) measures return per unit of risk. Modern Portfolio Theory uses SD as the key risk metric for portfolio optimization. Higher expected returns come with higher SD.
What does it mean if standard deviation is 0?+
A standard deviation of 0 means all values in the data set are identical — there is zero variability. Example: the data set {5, 5, 5, 5, 5} has mean = 5 and SD = 0. This happens in practice when: all measurements give the same result (perfect precision or a broken instrument); a variable is actually a constant; or there's a data entry error. SD of 0 is mathematically valid but should prompt you to check your data for errors or unusual conditions.