Average and Standard Deviation Calculator

Paste numbers separated by commas, spaces, or new lines. Negatives and decimals (period) are supported. Calculation runs entirely in your browser.

Tip: press Ctrl+Enter (⌘+Enter on Mac) to calculate.

Count (n)
8
Sum
40
Mean (average)
5

Sample

Formula uses ÷ (n − 1)

Sample standard deviation
2.1381
Sample variance
4.5714

Population

Formula uses ÷ n

Population standard deviation
2
Population variance
4

How to use

  1. Paste or type your numbers into the box above.
  2. Separate values with commas, spaces, or line breaks (Excel column pastes work).
  3. Click Calculate (or press Ctrl+Enter / ⌘+Enter).
  4. Read count, sum, and mean, then compare sample vs population standard deviation and variance side by side.
  5. If you see an error about n ≥ 2, add at least one more valid number for sample SD.

Formula

Let your numbers be x₁, x₂, …, xₙ with count n.

Variance is the square of the corresponding standard deviation (population variance uses ÷ n; sample variance uses ÷ (n − 1)).

Worked example

Dataset: 2, 4, 4, 4, 5, 5, 7, 9

Load the example in the calculator above and click Calculate to confirm these figures.

FAQ

Sample vs population — which should I use?
Use population SD when the numbers are the entire set you care about. Use sample SD when they are a sample used to estimate the spread of a larger population; that formula divides by n − 1 so the estimate is less biased.
Can I paste from Excel?
Yes. Copy a column or row from Excel or Google Sheets and paste it into the box. New lines and tabs are treated as separators, same as commas and spaces.
What about empty values?
Empty tokens (extra commas, blank lines, or stray spaces) are ignored. Only tokens that look like valid numbers are counted.
What if all values are identical?
The mean equals that value, and both sample and population standard deviation (and variance) are 0 — there is no spread in the data.