Standard Deviation Calculator
Calculate sample and population standard deviation, variance, mean, standard error, and absolute deviations for your data.
Separate values with commas, spaces, semicolons, tabs, or newlines. Filters automatically.
| i | Value (x_i) | Deviation (x_i - mean) | Squared (x_i - mean)² | Abs |x_i - mean| |
|---|---|---|---|---|
| 1 | 10 | -8 | 64 | 8 |
| 2 | 12 | -6 | 36 | 6 |
| 3 | 16 | -2 | 4 | 2 |
| 4 | 16 | -2 | 4 | 2 |
| 5 | 21 | 3 | 9 | 3 |
| 6 | 23 | 5 | 25 | 5 |
| 7 | 23 | 5 | 25 | 5 |
| 8 | 23 | 5 | 25 | 5 |
| Sum | 144 | 0 | 192 | 36 |
- Mean Absolute Deviation (MAD): Average of absolute deviationsMAD = Sum(|x_i - mean|) / n = 36 / 8 = 4.5
- Standard Error of Mean (SEM): Spread of sample meansSEM = s / ān = 5.23723 / ā8 = 1.85164
- Coefficient of Variation (CV): Normalized dispersion (SD / Mean)Sample CV = s / Mean = 5.23723 / 18 = 0.29096
Population CV = Ļ / Mean = 4.89898 / 18 = 0.27217
Scientific References & Assumptions
- Data is drawn from a normally-distributed interval variable population.
- Divisors of $n-1$ (Bessel's correction) are used for sample estimation to correct bias, and $N$ for populations.
- Zero variance occurs when all values in the dataset are identical.
- Standard error and coefficient of variation are undefined when sample size is 1 or mean is 0, respectively.
- Standard Deviation. (2026). In Wolfram MathWorld. mathworld.wolfram.com/StandardDeviation.html
- Bessel's Correction. (2026). Wikipedia. en.wikipedia.org/wiki/Bessel%27s_correction
Frequently Asked Questions
What is the difference between sample and population standard deviation?
Population standard deviation (Ļ) is used when you have the entire population dataset; it uses a divisor of N. Sample standard deviation (s) is used when your dataset is a sample representing a larger population; it uses Bessel's correction with a divisor of n - 1 to adjust for bias in estimating variance.
Why do we divide by n - 1 instead of n for the sample standard deviation?
Dividing by n - 1 (Bessel's correction) corrects the bias in the estimation of the population variance. Using n underestimates variance because the sample mean is closer to the sample data points than the population mean is.
Can standard deviation be negative?
No, standard deviation is always greater than or equal to zero. This is because it is the square root of the variance, and the variance is the average of squared differences, which are always non-negative.
What does it mean if the standard deviation is zero?
A standard deviation of zero means that all values in the dataset are identical. There is no variance or dispersion; every data point equals the mean.
How does the coefficient of variation (CV) help in comparing datasets?
The coefficient of variation (CV = SD / Mean) represents the relative standard deviation. Because it is unitless, it allows you to compare the relative variability of datasets with different units or widely different means.
How does the mean absolute deviation (MAD) compare to standard deviation?
While standard deviation squares the deviations from the mean (making it more sensitive to outliers), MAD takes the simple average of absolute deviations. MAD is less affected by extreme outliers than standard deviation.
What is the standard error of the mean (SEM)?
SEM measures the precision of the sample mean as an estimate of the true population mean. It represents the standard deviation of the theoretical distribution of sample means (s / ān).
About the Standard Deviation Calculator
Quickly calculate population and sample standard deviation and variance. Enter your numbers with commas, spaces, or semicolons to see sorted lists, step-by-step arithmetic solutions, and visual distribution charts.
Mathematical Formula & Logic
Step-by-Step Example
Worked Examples: 1. Basic Set: For the dataset: 10, 12, 23, 23, 16, 23, 21, 16. The count is 8, and the sum is 144. The mean is 144 / 8 = 18. The sum of squared deviations is 192. The sample variance is 192 / 7 = 27.42857. The sample standard deviation is sqrt(27.42857) = 5.23723. The population variance is 192 / 8 = 24. The population standard deviation is sqrt(24) = 4.89898. 2. Negatives: Consider the dataset: -5, -2, 0, 2, 5. The count is 5, sum is 0, mean is 0. The sum of squared deviations is 58. The sample variance is 58 / 4 = 14.5, yielding a sample standard deviation of 3.80789. The population variance is 58 / 5 = 11.6, yielding a population standard deviation of 3.40588.
Reference Data & Values
| metric | formula | description |
|---|---|---|
| Sample Standard Deviation (s) | s = ā[Ī£(x_i - xĢ)² / (n - 1)] | Measures variation in a sample from a larger population (Bessel's correction) |
| Population Standard Deviation (Ļ) | Ļ = ā[Ī£(x_i - μ)² / N] | Measures variation across the entire population |
| Sample Variance (s²) | s² = Ī£(x_i - xĢ)² / (n - 1) | Estimated population variance from a sample |
| Population Variance (ϲ) | ϲ = Ī£(x_i - μ)² / N | Absolute variance of the population |
| Mean Absolute Deviation (MAD) | MAD = Ī£|x_i - xĢ| / n | Average absolute distance from the mean, less outlier-sensitive |
| Standard Error of the Mean (SEM) | SEM = s / ān | Estimates precision/variability of the sample mean |