Sample variance calculator

Find sample variance and mean for a numeric dataset using the n−1 denominator.

Enter values

Start with the example below, or enter your own values.

How it works

Welford’s recurrence avoids subtracting large raw squared sums. At least two observations are required.

Try an example

Sample observations: 2, 4, 6, 8. The form starts with these values; change them to explore your own case.

Example result: 6.66666666667

  1. Update centered sum of squares with Welford’s recurrence.
  2. Divide by n−1.

Learn more in Probability and statistical inference.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.