Standard Deviation Calculator
Use the Standard Deviation Calculator below — enter your data set, then click Calculate to get the statistics.
What Is Standard Deviation?
Standard deviation is a fundamental statistical measure that quantifies the amount of variation or dispersion in a set of values. Developed by Karl Pearson in the late 19th century, it is the most widely used measure of spread in statistics. A low standard deviation indicates that the values tend to be close to the mean (also called the expected value), while a high standard deviation indicates that the values are spread out over a wider range.
Standard deviation is the square root of the variance, which is the average of the squared differences from the mean. By taking the square root, standard deviation returns the measure to the original unit of measurement, making it more interpretable than variance. For example, if you're measuring heights in centimeters, the standard deviation will also be in centimeters, whereas variance would be in square centimeters.
The standard deviation is denoted by the Greek letter sigma (σ) for a population and by s for a sample. It appears in virtually every field that uses data — from finance and economics to psychology, medicine, engineering, and the physical sciences. Together with the mean, the standard deviation provides a two-number summary of a dataset's central tendency and spread.
Population vs. Sample Standard Deviation
There are two versions of standard deviation depending on whether your data represents an entire population or just a sample:
| Type | Formula | Denominator | Symbol | When to Use |
|---|---|---|---|---|
| Population | √(Σ(xi − μ)² / N) | N | σ | Data includes every member of the group |
| Sample | √(Σ(xi − x̅)² / (N − 1)) | N − 1 | s | Data is a subset of a larger population |
The sample formula uses N − 1 (called Bessel's correction) to correct for the bias that occurs when estimating the population standard deviation from a sample. Without this correction, sample standard deviation would systematically underestimate the true population standard deviation. For large sample sizes (N > 30), the difference between population and sample standard deviation becomes negligible.
How to Calculate Standard Deviation Step by Step
Follow these steps to calculate the standard deviation of a dataset:
- Find the mean (μ or x̅): Add all numbers and divide by the count. For the dataset 12, 15, 18, 22, 27, 30, 35, 42, 50, the sum is 251 and the mean is 251 ÷ 9 ≈ 27.89.
- Find the deviations: Subtract the mean from each data point. For 12: 12 − 27.89 = −15.89; for 15: −12.89; and so on.
- Square each deviation: (−15.89)² = 252.49, (−12.89)² = 166.15, etc.
- Find the variance: Average the squared deviations. For a population: divide by N (9). For a sample: divide by N−1 (8).
- Take the square root: The square root of the variance gives you the standard deviation.
Mean, Median, and Mode — Measures of Central Tendency
Before calculating spread, it's essential to understand where the center of your data lies. The three main measures of central tendency each tell you something different:
| Measure | Definition | Best Used When | Example (12, 15, 18, 22, 27, 30, 35, 42, 50) |
|---|---|---|---|
| Mean | Arithmetic average of all values | Data is symmetrically distributed with no outliers | (12+15+18+22+27+30+35+42+50)/9 ≈ 27.89 |
| Median | Middle value when data is sorted | Data has outliers or is skewed | 27 (the 5th value in sorted order) |
| Mode | Most frequent value(s) | Data has repeated values or is categorical | All values appear once (no mode) |
The mean is the most commonly used measure but is sensitive to outliers. The median is robust to outliers — replacing the highest value 50 with 500 would change the mean from 27.89 to 77.89, but the median would remain 27. The mode is the only measure that can be used with nominal (categorical) data, such as "blue, red, blue" where the mode is "blue."
The relationship between mean and median can indicate the skewness of your data: if mean > median, the data is right-skewed; if mean < median, it's left-skewed; if they are equal, the data is roughly symmetric.
Variance and Standard Deviation — Measures of Dispersion
While central tendency tells you where the data centers, measures of dispersion tell you how spread out the data is:
| Measure | Definition | Interpretation | Our Example |
|---|---|---|---|
| Range | Maximum − Minimum | Simple but sensitive to outliers | 50 − 12 = 38 |
| Variance (Population) | Average squared deviation from mean | In squared units; harder to interpret | ≈ 143.88 |
| Std Dev (Population) | √Variance | In original units; most common measure | ≈ 11.99 |
| IQR | Q3 − Q1 | Spread of middle 50%; robust to outliers | 35 − 18 = 17 |
The interquartile range (IQR) is often used alongside the median for a more complete picture. The "1.5 × IQR rule" is commonly used to identify outliers: any data point below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR is considered a potential outlier.
The Empirical Rule (68-95-99.7 Rule)
For datasets that follow a normal distribution (bell curve), the empirical rule describes how data is distributed around the mean:
| Range | % of Data | Interpretation |
|---|---|---|
| Mean ± 1σ | 68.27% | About two-thirds of values fall within 1 standard deviation |
| Mean ± 2σ | 95.45% | 95% of values fall within 2 standard deviations |
| Mean ± 3σ | 99.73% | Nearly all values fall within 3 standard deviations |
For example, if test scores have a mean of 100 and a standard deviation of 15, then about 68% of scores are between 85 and 115, about 95% are between 70 and 130, and about 99.7% are between 55 and 145. This rule is the foundation of many statistical quality control methods and standardized testing score interpretation.
Real-World Applications of Standard Deviation
Finance and Investing
In finance, standard deviation is the most common measure of volatility and risk. A stock with a high standard deviation of returns is considered more volatile (riskier) than one with a low standard deviation. The Sharpe ratio, which measures risk-adjusted return, uses standard deviation as its denominator. Portfolio managers use standard deviation to optimize asset allocation and assess the risk of investment strategies. The annualized standard deviation of the S&P 500 has historically averaged around 15-20%.
Quality Control and Manufacturing
Manufacturers use standard deviation in statistical process control (SPC) to monitor product quality. Control charts track measurements over time and flag when a process exceeds 3σ limits, indicating a potential problem. Six Sigma methodology aims for processes where the specification limits are at least 6 standard deviations from the mean, resulting in fewer than 3.4 defects per million opportunities.
Education and Test Scoring
Standardized test scores like the SAT, ACT, GRE, and IQ tests use standard deviation to calculate percentiles and scaled scores. For example, IQ scores are normed to a mean of 100 and a standard deviation of 15. An IQ of 130 (two standard deviations above the mean) places a person in the 98th percentile. GPA distributions in large universities typically have a standard deviation around 0.5-0.7 on a 4.0 scale.
Healthcare and Medicine
Medical researchers use standard deviation to understand the variability of biological measurements. Blood pressure, cholesterol levels, heart rate, and other health metrics are reported with means and standard deviations to establish normal ranges. Clinical trials use standard deviation to calculate effect sizes and determine whether treatment outcomes are statistically significant.
Weather and Climate Science
Meteorologists use standard deviation to describe climate variability. Temperature standard deviations help identify climate change patterns — increasing temperature variability (a growing standard deviation) can be as concerning as rising average temperatures. Precipitation standard deviations help assess drought and flood risks.
Common Misconceptions About Standard Deviation
- Standard deviation assumes normality: While the empirical rule applies to normal distributions, standard deviation itself is defined for any dataset regardless of distribution shape. However, its interpretation is less straightforward for non-normal distributions.
- Adding the same value to every data point changes the standard deviation: False. Adding a constant shifts the mean but does not change the spread — standard deviation remains unchanged. Only scaling (multiplying by a constant) changes the standard deviation.
- Standard deviation is always positive: True. The standard deviation of a dataset where all values are identical is zero, meaning no spread. It can never be negative.
- Variance and standard deviation measure the same thing: They measure spread differently — variance is in squared units while standard deviation is in the original units. Standard deviation is more interpretable and therefore preferred for reporting.
FAQ
Standard deviation is a number that tells you how spread out the values in a dataset are. Think of it as the "average distance" of each data point from the mean. If the standard deviation is small, the numbers cluster close to the average. If it's large, the numbers are spread out. For example, the heights of a class of 10-year-olds might have a standard deviation of 3 inches — most kids are within 3 inches of the average height.
Use population standard deviation when your dataset includes every single member of the group you're studying — for example, all students in a school, all countries in the UN, or all daily returns of a stock over a specific year. Use sample standard deviation when your data is only a subset of a larger group — for example, a survey of 500 voters out of millions, or a lab experiment with 30 patients. In practice, sample standard deviation is far more common because most research involves samples, not full populations.
For a population: σ = √(Σ(xi − μ)² / N), where μ is the population mean and N is the population size. For a sample: s = √(Σ(xi − x̅)² / (n − 1)), where x̅ is the sample mean and n is the sample size. The only difference is dividing by N versus n−1 (Bessel's correction).
Whether a standard deviation is "good" depends entirely on the context. In manufacturing, you want a very small standard deviation (consistent products). In investing, a moderate standard deviation might indicate healthy market activity. The standard deviation must always be interpreted relative to the mean using the coefficient of variation (CV = σ / μ × 100%), which expresses spread as a percentage of the mean. A CV under 15% is generally considered low, while over 35% is considered high.
In research papers, standard deviation is typically reported alongside the mean as "mean ± SD" (e.g., "blood pressure was 120 ± 15 mmHg"). A small SD relative to the mean suggests the measurement is precise and consistent. Researchers use SD to calculate confidence intervals, determine sample sizes, and perform hypothesis tests. The standard error of the mean (SEM = SD / √n) is derived from standard deviation and estimates how precisely the sample mean estimates the population mean.
Variance is the average of the squared differences from the mean. Standard deviation is the square root of the variance. The key difference: variance is in squared units (e.g., dollars-squared, inches-squared), which makes it difficult to interpret intuitively. Standard deviation returns the measure to the original unit (dollars, inches), making it directly interpretable. Both are valid measures of spread, but standard deviation is overwhelmingly preferred for reporting results because it's on the same scale as the original data.
Free Online Calculators
Common Distribution Shapes
| Shape | Mean vs Median | Example |
|---|---|---|
| Normal (Bell) | Mean ≈ Median | Heights, IQ scores |
| Right-Skewed | Mean > Median | Income, house prices |
| Left-Skewed | Mean < Median | Age at death, test scores (ceiling effect) |
| Bimodal | Two peaks | Exam scores (two groups) |
| Uniform | Flat distribution | Dice rolls (theoretical) |
Quick Tips
- SD = 0 means all values are identical.
- CV = SD / Mean gives relative spread as a %.
- Use IQR instead of SD for skewed data.
- 68-95-99.7 rule applies to normal distributions.
- Standard deviation is not resistant to outliers.