Standard Deviation Calculator: Sample or Population
Find the spread of numeric observations and check how the sample or population denominator changes variance. Review the mean and sum of squared deviations.
Result
How is this calculated?
Square the distances from the mean, divide by the selected denominator, then take the square root.
Worked example: Find sample spread for three measurements
Values 2, 4 and 6 have mean 4. Squared distances are 4, 0 and 4. Divide 8 by 2 for sample variance 4; its square root is 2.
Method and limits
Select sample to use n−1 in the variance denominator, or population for n. Variance is calculated from exact typed decimal differences before rounding. The margin of error for a sample uses a normal approximation, not a small-sample t interval. A fully observed population has no sampling error; a separate reference margin treats the data as draws from a model. Educational estimates. Confidence intervals require a representative random sample and a justified distribution model; these results do not correct a biased sampling process.
How to use this calculator
- Paste numeric observations in a single common unit. Decide if they describe everyone you intend to measure or a subset used to describe a larger group.
- Select Sample or Entire population. Read the standard deviation in the original units and examine variance and the squared-deviation total as checks.
Use the right denominator for 2, 4 and 6
The mean is 4 and the squared-deviation total is 8. The sample variance is 8 ÷ 2 = 4. If these are the complete population, the variance is 8 ÷ 3 and the standard deviation is about 1.633.
Spread is not the gap between extremes
For 2, 4 and 6, the range is 4 but the sample standard deviation is 2. Range uses only the endpoints; standard deviation incorporates the squared distance of each observation from the mean.
Select population based on the question
If the three values are every item in a tray and you only want its spread, divide by three. If the tray is a sample for a larger process, the sample formula divides by two. Changing the mode does not change the mean.
Separate spread from uncertainty in a mean
Standard deviation describes the spread of observations. The confidence setting only affects the separate displayed normal margin. For a small sample with unknown population variability, a Student t interval is usually preferred when its assumptions are appropriate.
Frequently asked questions
- Why is sample SD unavailable for one value?
- The denominator n − 1 would be zero. A fully listed one-value population has variance and standard deviation zero.
- What units do I report?
- Use the input units for standard deviation and squared input units for variance.
- Does changing confidence alter my standard deviation?
- No. It only affects the separate normal confidence or model-reference calculation.
- Do unusual measurements matter?
- Yes. Squaring the distances gives large deviations substantial weight. Verify the measurements rather than deleting them just because they are large.
Common mistakes and limits
- This tool does not determine whether your observations are representative or satisfy interval assumptions.
- The model reference margin for a complete population is hypothetical. Do not report it as sampling error.
Sources & methodology
Related calculators
- Average Calculator: Find the Arithmetic Mean
Paste a list of equally weighted numbers and find their average, total and count. Paste columns or type values separated by spaces, commas or semicolons.
- Mean, Median, Mode and Range Calculator
Compare the mean and median, find most frequent values including ties, and measure the spread from the smallest to the largest.
- Descriptive Statistics Calculator
Get count, totals, arithmetic and geometric means, and both sample and population measures of spread in one view.