Skip to content

Standard Deviation & Variance Calculator

Calculate sample standard deviation, population standard deviation, mean, median, variance, and standard error. Paste comma- or space-separated datasets to view the full calculation table.

Paste a list of numbers, e.g.: 10, 20, 30, 40, 50

Sample Std Dev (s)
15.81
Population Std Dev (σ)
14.14
Mean (Average)
30
Median
30
Sample Variance (s²)
250
Population Variance (σ²)
200
Count (n)
5
Sum
150
Minimum
10
Maximum
50
Range (max − min)
40
Value (x)Deviation (x − x̄)Deviation²
10 -20 400
20 -10 100
30 0 0
40 10 100
50 20 400

How It Works

Formula

Sample s = √[∑(xi - x̄)² / (n - 1)] | Population σ = √[∑(xi - μ)² / N]

Worked Example

For the dataset [10, 12, 23, 23, 16, 23, 21, 16]: count n = 8, mean = 18.00, sample variance s² = 28.57, sample standard deviation s = 5.35.

Measures of Dispersion: Standard Deviation & Variance

In descriptive and inferential statistics, measuring central tendency (mean, median, mode) only reveals half the picture. Two datasets can have identical averages (e.g., 50) while representing vastly different risk profiles: one clustered between 48 and 52, and another scattered between 0 and 100. Standard deviation quantifies the average spread or dispersion of data around the mean.

Mathematical Formulas

1. Mean (Arithmetic Average)

$$\bar{x} = \frac{1}{n} \sum_{i=1}^n x_i$$

2. Sample Standard Deviation ($s$)

Used when your data is a sample drawn from a larger population: $$s = \sqrt{\frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n - 1}}$$

3. Population Standard Deviation ($\sigma$)

Used when your dataset encompasses all members of the group of interest: $$\sigma = \sqrt{\frac{\sum_{i=1}^N (x_i - \mu)^2}{N}}$$


Step-by-Step Procedure

  1. Calculate the Mean ($\bar{x}$): Add all values and divide by the total count $n$.
  2. Find the Deviations: Subtract the mean from each individual data point: $(x_i - \bar{x})$.
  3. Square Each Deviation: Square each difference to eliminate negative signs: $(x_i - \bar{x})^2$.
  4. Sum the Squared Deviations ($SS$): Total all squared deviations: $\sum (x_i - \bar{x})^2$.
  5. Divide by Degrees of Freedom: Divide by $(n - 1)$ for sample variance, or by $N$ for population variance.
  6. Take the Square Root: The square root yields the standard deviation.

Frequently Asked Questions

What is the difference between sample and population standard deviation?

Population standard deviation (σ) divides the sum of squared differences by N (the entire universe of data). Sample standard deviation (s) divides by (n - 1), known as Bessel's correction, which eliminates bias when estimating a broader population from a smaller sample.

Why do we use Bessel's correction (n - 1) for samples?

Because sample data points naturally cluster closer to their sample mean than to the true unknown population mean, dividing by n systematically underestimates true variability. Dividing by (n - 1) corrects this bias.

What is the 68-95-99.7 Empirical Rule in a normal distribution?

For data following a normal Gaussian curve: ~68.2% of observations fall within ±1 standard deviation of the mean, ~95.4% fall within ±2 standard deviations, and ~99.7% fall within ±3 standard deviations.

How does standard deviation relate to variance?

Standard deviation is simply the square root of the variance. While variance is expressed in squared units (e.g., dollars² or kg²), standard deviation returns the dispersion measure to the original unit of the data.

Last updated: Oct 10, 2026
math

Simplify Calculator

(S3-lite) Simplify fractions, radicals and algebraic expressions with steps. Use math.js simplify, lazy-loaded ONLY on this page. Verify intent (algebra) via SERP.

math

Speed Calculator

Solve speed/distance/time (any two); unit selectors km/h, m/s, mph, knots; pace conversion.

math

Combination Calculator

nCr, nPr, with/without repetition; BigInt for large n; show factorial expansion steps.

finance

Swp Calculator

in: total investment, monthly withdrawal, expected return % p.a., years, optional yearly step-up % of withdrawal. out: total withdrawn, final balance, year-wise table + chart. Monthly loop: bal = bal*(1+r/12) - w. Flag when corpus runs out.

fun

Love Calculator

Entertainment only. Deterministic result from two names (normalised hash -> 40-99%), same input always same output; result message tiers. Prominent 'for fun' note; no data stored.