Standard Deviation Calculator

Measure how spread out quantitative observations are around their mean. Choose sample variance with denominator n − 1 when estimating population variability, or population variance with denominator n when describing the complete population supplied. The calculator checks every entry and retains decimal information for the mean and squared deviations before forming numerical approximations. It does not discard observations, identify a normal distribution or decide whether an outlier should be removed.

Standard Deviation Calculator Interactive Tool

Describe the population you mean
Sample divides squared deviations by n − 1; Population divides by n.

SD and variance below are numerical approximations. Exact decimal means and extrema are retained; no observation is discarded.

Results

Standard Deviation
2.1380899352994
Mean
5
Variance
4.57142857142857
Count (n)
8
Min / Max
2 / 9
Calculation
Sample; variance denominator n − 1

How to use this calculator

  1. Enter complete decimal or scientific-notation observations separated by commas, spaces or line breaks. Keep every comma-separated cell populated; trailing commas and missing entries are errors.
  2. Choose Sample when estimating variability from a sample of a larger population, or Population when describing all values in the population of interest.
  3. Read the standard deviation and variance with the mean, count and minimum/maximum. All observations must use the same measurement units.
  4. Review precision notes for extreme scales. Correct the entire input if a value is invalid; the calculator never silently filters bad values or truncates the dataset.

The Formula

The mathematical logic powering this calculation is:

Mean = Σx / n
Sample variance s² = Σ(x − mean)² / (n − 1), n ≥ 2
Population variance σ² = Σ(x − mean)² / n, n ≥ 1
Standard deviation = √variance

Worked Example

If you input:

  • Data Values (commas or whitespace): 2,4,4,4,5,5,7,9
  • Type: Sample

Result:

Sample Std Dev: 2.1381, Mean: 5. The squared deviations sum to 32, so sample variance is 32/7 ≈ 4.57143. Population mode instead divides by 8, giving variance 4 and SD 2.

Frequently Asked Questions

Should I choose sample or population standard deviation?

Use Population to describe the full population represented by your data; it divides the sum of squared deviations by n. Use Sample to estimate population variance from sampled observations; its n − 1 denominator accounts for estimating the mean from the same sample. This makes the sample variance unbiased under independent sampling with a common finite variance, but does not make the square-root standard deviation itself an exactly unbiased estimator.

What are the units of variance and standard deviation?

Standard deviation has the same units as the observations and mean. Variance has squared units: if observations are in minutes, variance is in minutes squared. A change of units changes the numerical spread, so comparisons should use consistent measurement scales.

What does zero standard deviation mean?

Zero means every entered observation is exactly the same decimal value. A population containing one observation has variance and SD zero; sample variance needs at least two observations because n − 1 would otherwise be zero. Constant recorded data do not prove that a broader process has no variability.

How do outliers and distribution shape affect the result?

Squaring deviations makes variance and SD sensitive to distant observations. The result alone does not prove normality, and rules about percentages within one or two SDs need additional distribution assumptions. Inspect the data and use measures such as the interquartile range when appropriate; this calculator does not automatically remove outliers.

Can I paste scientific notation or missing values?

Scientific notation such as 1.2e-6 is accepted, as are signed decimal values and whitespace separators. Each comma-separated cell must contain observations; blanks between commas, trailing commas, headers, quoted values, hexadecimal numbers, expressions and nonfinite values are rejected. At most 10,000 observations and 1,000,000 text characters are accepted, with 128 characters per number and explicit exponents from −324 to 324.

How is decimal precision handled?

Decimal inputs are used exactly for sums and centered second moments before conversion to numerical results. Exact means and extrema retain small differences around large offsets; recurring means can also be shown as fractions. Standard deviation involves a numerical square root, and displayed numerical variance may be approximate. Meaningful small results use scientific notation. If a nonzero input, mean, variance or SD cannot be represented, or a reported result overflows, an explicit numerical-limit error replaces the output.

Where are these formulas documented?

NIST's Measures of Scale explains sample variance, its square root and sensitivity to tails. OpenStax Introductory Statistics 2e, section 2.7, distinguishes the sample and population formulas and explains why SD uses the original measurement units.

Similar Calculators