standarddeviationcalculator.net

Mean, median, mode and range calculator

Enter your numbers to get the mean, median, mode and range together, along with the quartiles and the standard deviation. Ties for the mode are all reported.

Separate values with commas, spaces, tabs or new lines — paste a column straight from a spreadsheet and it will parse. Decimals and negatives are fine.

Treat the data as
Mean 10.25
Count (n)8
Mean (x̄)10.25
Standard deviation5.52268
Mode7 (×3)
Variance30.5
Sum82
Σ(x − x̄)²213.5
Standard error1.95256
Coefficient of variation0.538798
Relative SD (%RSD)53.8798%
Minimum4
Maximum21
Range17
Median (Q2)8
Q17
Q312.75
IQR5.75
x̄ = 10.25 −1σ +1σ -6.318 26.82

The shaded bands are one, two and three standard deviations either side of the mean. 6 of 8 values — 75% — fall inside the innermost band.

Show the working, step by step

The three averages

MeanMedianMode
HowSum ÷ countMiddle of the sorted listMost frequent value
Uses every valueYesNo — only the middleNo
Affected by outliersStronglyBarelyNot at all
Works on categoriesNoOnly if orderedYes
Always existsYesYesNo
Always uniqueYesYesNo

Why the choice changes the answer

Take nine salaries at a small company, in thousands: 38, 41, 42, 44, 45, 47, 49, 52, 480.

Both the mean and the median are correct arithmetic. Only one of them describes what a new hire should expect. That single 480 — a founder's package — is enough to make the mean misleading, and it is precisely why income statistics are reported as medians.

The relationship to skew

How the three averages line up is itself a diagnostic of the distribution's shape:

Comparing the mean and median that the calculator reports is a quick way to check for skew before deciding which summary to publish, and before assuming that z-score percentiles or the 68–95–99.7 rule will behave.

Median, quartiles and the IQR

The median splits the data in half. The quartiles split it into quarters: Q1 is the median of the lower half, Q3 the median of the upper. The interquartile range, Q3 − Q1, spans the middle 50% of the data and is a robust alternative to the standard deviation when outliers are present.

There are several defensible conventions for calculating quartiles, and different software gives slightly different answers on small datasets. This calculator uses linear interpolation between order statistics — the same definition as R's default type 7 and Excel's PERCENTILE.INC, so results will match those. The methodology page has the detail.

Related calculators

Common questions

What is the difference between mean, median and mode?

The mean is the arithmetic average — add everything and divide by the count. The median is the middle value once the data is sorted. The mode is the value that occurs most often.

All three are "averages" in ordinary speech, and on symmetric data they land close together. On skewed data they separate, sometimes dramatically, and the choice between them changes the story the number tells.

Can a dataset have more than one mode?

Yes. Two values tied for most frequent make the data bimodal; more than two, multimodal. If every value occurs exactly once there is no mode at all. This calculator reports every tied value.

When should I use the median instead of the mean?

When the data is skewed or contains outliers. The mean is pulled towards extreme values; the median is not. This is why incomes, house prices and response times are reported as medians — a handful of very large values would otherwise drag the mean somewhere no typical case sits.

How is the median found with an even number of values?

Average the two middle values. For 3, 7, 8, 12 the middle pair is 7 and 8, so the median is 7.5. Note the median then need not be a value that actually appears in the data.

What is the range?

The largest value minus the smallest. It is the simplest measure of spread and the most fragile — a single outlier sets it entirely. The standard deviation or the interquartile range are far more stable.

Written and reviewed by our editorial team. Last updated . Method and sources: how these numbers are computed.