Statistics Calculator

Paste a list of numbers and get the mean, median, mode, range, quartiles, standard deviation and variance (sample and population), outliers, skewness and more, with a box plot and the working.

Calculator Numbers & Math Updated Oct 3, 2026
How to Use
  1. Paste or type your numbers, separated by commas, spaces or new lines (a column from a spreadsheet works).
  2. Choose how quartiles are found: exclusive (TI-84, most textbooks) or inclusive (Excel QUARTILE.INC).
  3. Read the mean, median, sample standard deviation and count; the table has everything else.
  4. Show Work follows the mean, the squared deviations and the variance step by step.
  5. The box plot shows the quartiles, whiskers and any outliers (red circles); the dot plot underneath shows every value.
Input
any separators
Presets
Distribution
Mean
—
Median
—
Std dev (sample)
—
Count
—

Worked Example

2, 4, 4, 4, 5, 5, 7, 9. The sum is 40, so the mean is 40 ÷ 8 = 5. The deviations from 5 are −3, −1, −1, −1, 0, 0, 2, 4, and their squares add to 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32. The population variance is 32 ÷ 8 = 4 (SD 2); the sample variance is 32 ÷ 7 = 4.571 (SD 2.138). The median is (4 + 5) ÷ 2 = 4.5 and the mode is 4.

An outlier. In 198, 205, 210, 215, 225, 230, 240, 980 the mean is 312.9 but the median is 220. Q1 = 207.5 and Q3 = 235, so the upper fence is 235 + 1.5 × 27.5 = 276.25, and 980 is flagged.

The common mistake: forgetting to sort. The median of 7, 2, 9 is not 2 (the middle as typed) but 7, the middle of 2, 7, 9.

Show Work

Paste some numbers to see the working.

Formulas

Mean
x̄ = Σx ÷ n
Sample variance
s² = Σ(x − x̄)² ÷ (n − 1)
Population variance
σ² = Σ(x − μ)² ÷ n
Standard error
SE = s ÷ √n
Outlier fences
Q1 − 1.5·IQR, Q3 + 1.5·IQR
Coefficient of variation
CV = s ÷ x̄

Averages and Spread

Astronomers in the 16th and 17th centuries, Tycho Brahe among them, began averaging repeated observations to cancel errors. Karl Pearson coined “standard deviation” in 1893, and the n − 1 correction is credited to Friedrich Bessel, who used it in astronomy in the early 19th century.

John Tukey introduced the box plot and the 1.5 × IQR rule for outliers in Exploratory Data Analysis (1977), arguing that looking at data should come before testing it, and that the median and quartiles resist being fooled by a few wild values.

About This Calculator

This calculator gives every common descriptive statistic for up to 100,000 numbers: centre (mean, median, mode, geometric and harmonic means), spread (range, IQR, sample and population variance and SD, standard error, CV) and shape (skewness and excess kurtosis), with both quartile conventions, outlier detection and an exact mean as a fraction when the decimal repeats.

Everything runs in your browser; nothing is sent anywhere.

Related calculators: Probability & Statistics Lab, Z-Score Calculator, and Confidence Interval Calculator.

Frequently Asked Questions

What is the difference between sample and population standard deviation?

Population SD divides the squared deviations by n; sample SD divides by n − 1. Use the sample version when your data are a sample from a bigger group, which is nearly always: dividing by n − 1 (Bessel’s correction) makes the variance an unbiased estimate. For 2, 4, 4, 4, 5, 5, 7, 9 the population SD is 2 and the sample SD 2.138.

How do I calculate the standard deviation by hand?

Find the mean, subtract it from each value, square the results, add them up, divide by n − 1 (or n), and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5, the squared deviations add to 32, 32 ÷ 7 = 4.571, and √4.571 = 2.138.

Why do calculators give different quartiles?

There are several definitions. The exclusive method (TI-84, most textbooks) takes the median of each half, leaving the middle value out: for 1–10, Q1 = 3 and Q3 = 8. Excel’s QUARTILE.INC interpolates at positions (n − 1)/4 and 3(n − 1)/4, giving 3.25 and 7.75. Both are correct; choose the one your course or software uses.

When is a value an outlier?

A common rule (Tukey’s fences) calls a value an outlier if it lies more than 1.5 × IQR below Q1 or above Q3. For 198, 205, 210, 215, 225, 230, 240 and 980: Q1 = 207.5, Q3 = 235, IQR = 27.5, so the fences are 166.25 and 276.25 and 980 is an outlier. With only four or five values the quartiles are too unstable for the rule to mean much. Outliers are drawn as red circles on the box plot.

Should I use the mean or the median?

The mean uses every value but is pulled by extremes; the median is the middle value and ignores them. Household incomes, house prices and response times are usually skewed, so the median describes a typical case better. When the mean is much bigger than the median, the data have a long right tail.

How do I use the Statistics Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Test scores

A class’s marks: mean, median, spread and the top and bottom quartiles.

Lab data

Repeated measurements: sample SD and the standard error of the mean.

Spreadsheets

Paste a whole column of 10,000 numbers at once.

Outliers

Spot unusual values with the 1.5 × IQR rule before averaging.

Growth rates

The geometric mean of 1.10, 0.95 and 1.20 is the average growth factor, 1.078.

Last updated: