Standard Deviation and Statistics Calculator

A free statistics calculator that turns a list of numbers into the mean, median, mode, variance, standard deviation, quartiles and more.

Separate numbers with commas, spaces, semicolons, tabs or new lines. You can paste a column straight from a spreadsheet. Use a dot for decimals (1.5) and e for powers of ten (1.5e3).

Sorted data

  1. 2
  2. 4
  3. 4
  4. 4
  5. 5
  6. 5
  7. 7
  8. 9

Results

Mean 5 (n = 8)
Results
Center
Count (n)8
Sum (Σx)40
Mean (x̄)5
Median4.5
Mode4appears 3 times
Geometric mean4.60321559605
Range and quartiles
Minimum2
Maximum9
Range7
First quartile (Q1)4
Third quartile (Q3)5.5
Interquartile range (IQR)1.5
Spread
Population standard deviation (σ)2
Population variance (σ²)4
Sample standard deviation (s)2.1380899353
Sample variance (s²)4.57142857143
Sum of squares Σ(x − x̄)²32

Field guide

FieldWhat it doesExample
Input
Data (numbers)Enter numbers separated by commas, spaces, semicolons, tabs or new lines; a spreadsheet column can be pasted as is. Use a dot for decimals and e for powers of ten (1.5e3 = 1500).2, 4, 4, 4, 5, 5, 7, 9 (used in the examples below)
Center
Mean (x̄)x̄ = Σx ÷ n40 ÷ 8 = 5
MedianThe middle value of the sorted data; when n is even, the average of the two middle values.(4 + 5) ÷ 2 = 4.5
ModeThe most frequent value. Ties are all listed; if every value appears once, it shows “None”.4 (appears 3 times)
Geometric meanⁿ√(x₁ × x₂ × … × xₙ). Calculated only when every value is greater than 0.⁸√201600 = 4.60321559605
Range and quartiles
RangeMaximum − minimum9 − 2 = 7
First quartile (Q1)The value at position 1 + (n − 1) × 0.25 in the sorted data, interpolated between neighbors (same as Excel QUARTILE.INC).position 2.75 → 4
Third quartile (Q3)The value at position 1 + (n − 1) × 0.75, found the same way as Q1.position 6.25 → 5 + 0.25 × (7 − 5) = 5.5
Interquartile range (IQR)IQR = Q3 − Q1, the width of the middle 50% of the data.5.5 − 4 = 1.5
Spread
Population standard deviation (σ)σ = √(Σ(x − x̄)² ÷ n). Use it when the data covers the whole group.√(32 ÷ 8) = 2
Population variance (σ²)σ² = Σ(x − x̄)² ÷ n32 ÷ 8 = 4
Sample standard deviation (s)s = √(Σ(x − x̄)² ÷ (n − 1)). Use it when the data is a sample from a larger group. Needs at least 2 values.√(32 ÷ 7) = 2.1380899353
Sample variance (s²)s² = Σ(x − x̄)² ÷ (n − 1)32 ÷ 7 = 4.57142857143
Sum of squares Σ(x − x̄)²Each value’s distance from the mean, squared, then added up.9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32

Frequently asked questions

Should I use the population or the sample standard deviation?

Use the population version (÷n) when your data covers the whole group you care about, and the sample version (÷(n − 1)) when it is a sample from a larger group. Dividing by n − 1 corrects a sample’s tendency to underestimate the spread (Bessel’s correction). In Excel these are STDEV.P and STDEV.S.

Why are my quartiles different from another calculator or textbook?

There are several ways to calculate quartiles. This calculator uses the Excel QUARTILE.INC method, so for 2, 4, 4, 4, 5, 5, 7, 9 it gives Q3 = 5.5, while QUARTILE.EXC gives 6.5 and taking the median of the upper half gives 6.

Why are the count (n) or the results not what I expected?

Commas and spaces always separate numbers, so 1,000 is read as two values, 1 and 0. Type numbers without thousands separators, like 1000.

What does “… is not a number” mean?

An entry contains something other than a number, such as a unit or a symbol (10kg, 5%). The message shows the first such entry; keep only the number and the results come back.

Why do the sample standard deviation or the geometric mean show “—”?

The sample variance and standard deviation divide by n − 1, so they need at least 2 values. The geometric mean is not calculated if any value is zero or negative.