Statistics Calculator

Mean (Average)

5.0000

Mean 5.0000
Count 8
Sum 40.0000
Median 4.5000
Mode 4.0000
Range 7.0000
Population Standard Deviation2.0000
Sample Standard Deviation2.1381
Population Variance4.0000
Sample Variance4.5714

Compare Calculations

Downloads

Includes your inputs and results for this calculation, plus any additional calculations you've compared.

How This Calculator Works

This calculator finds the mean, median, mode, range, variance, and standard deviation of any list of numbers. Paste or type your numbers into the box below — separated by commas, spaces, or new lines, in any combination — and every common descriptive statistic is calculated at once.

Mean is the arithmetic average. Median is the middle value when the numbers are sorted (or the average of the two middle values, for an even-sized list). Mode is whichever value (or values) appear most often — if every number appears exactly once, there’s no mode.

Standard deviation measures how spread out the numbers are from the mean — a small standard deviation means the numbers are clustered close together; a large one means they’re spread widely. This calculator reports it two ways: population standard deviation (when your numbers are the entire group you care about) and sample standard deviation (when your numbers are a sample used to estimate a larger population) — the sample version is slightly larger, correcting for the fact that a sample tends to underestimate the true spread of the full population.

The Formula

Mean=NumbersCount\vC{\text{Mean}} = \frac{\sum \vA{\text{Numbers}}}{\vB{\text{Count}}} Population Variance=(NumberMean)2Count\vD{\text{Population Variance}} = \frac{\sum (\vA{\text{Number}} - \vC{\text{Mean}})^2}{\vB{\text{Count}}} Sample Variance=(NumberMean)2Count1\vD{\text{Sample Variance}} = \frac{\sum (\vA{\text{Number}} - \vC{\text{Mean}})^2}{\vB{\text{Count}} - 1} Standard Deviation=Variance\text{Standard Deviation} = \sqrt{\vD{\text{Variance}}}

Population or sample, matching whichever variance is used.

The only difference between the population and sample versions is dividing by the count itself versus the count minus one (known as Bessel’s correction) — everything else is identical.

Worked Example

The numbers 2, 4, 4, 4, 5, 5, 7, 9:

  1. Count: 8\vB{8}. Sum: 40\vA{40}. Mean: 40÷8=5\vA{40} \div \vB{8} = \vC{5}.
  2. Sorted: 2, 4, 4, 4, 5, 5, 7, 9 — median is the average of the two middle values (4 and 5): (4+5)÷2=4.5(4 + 5) \div 2 = 4.5.
  3. Mode: 4 (appears three times, more than any other value).
  4. Range: 92=79 - 2 = 7.
  5. Population standard deviation: 2.0. Sample standard deviation: ≈2.14.

Source: Wikipedia: Variance (Population vs. Sample).

Frequently Asked Questions

What is the difference between population and sample standard deviation?

Population standard deviation treats your numbers as the entire group you care about. Sample standard deviation treats them as a sample used to estimate a larger population, dividing by one less than the count (Bessel's correction) — this slightly increases the result to correct for a sample's tendency to underestimate the true spread. Use sample if your data is a subset of a bigger group; use population if it's literally everything.

What if there is no mode?

If every number in your list appears exactly once, there is no mode — this calculator reports "No mode" rather than an arbitrary value in that case.

How do I enter my numbers?

Type or paste them into the box separated by commas, spaces, or new lines — any combination works, so you can paste a column copied from a spreadsheet directly.