Skip to main content

Free Mean, Median, Mode & Range Calculator – Every Statistic, Clearly Labelled

Paste any list of numbers to get the mean, median, every mode, range, quartiles, IQR, outliers and both sample and population standard deviation, clearly labelled.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

All Modes ListedSample & Population SDQuartiles & IQROutliersFree

Your Data Set

22.1429

Mean (average)

23

Median (middle value)

23, 38

Mode (2 modes)

36

Range (max − min)

7

Count n

155

Sum

2

Minimum

38

Maximum

20

Midrange

Sample — divide by n − 1

Variance s²
176.4762
Std deviation s
13.2844

Use this when your numbers are a sample drawn from a bigger group. The n − 1 divisor is Bessel's correction.

Population — divide by n

Variance σ²
151.2653
Std deviation σ
12.299

Use this when your numbers are the entire group you care about — every student in one class, not a sample of them.

Quartile Method

Active method: Inclusive (Excel QUARTILE.INC). The exclusive method gives Q1 = 10, Q3 = 38, IQR = 28 on this same data — which is why two calculators can both be right and still disagree.

15.5

Q1 (25th)

23

Q2 (median)

30.5

Q3 (75th)

15

IQR (Q3 − Q1)

Outliers by Tukey's 1.5 × IQR rule

Fences: below -7 or above 53. No outliers found.

Fences follow Tukey, Exploratory Data Analysis (1977). Quartile and mean definitions follow Wolfram MathWorld.

16.4128

Geometric mean

8.8922

Harmonic mean

Frequency Distribution

Solid amber line = mean (22.14). Dashed green line = median (23). When they sit far apart, the data is skewed.

Sorted Data Set (7 values)

2, 10, 21, 23, 23, 38, 38

The Working, With Your Numbers

  1. 1. Mean x̄ = 155 ÷ 7 = 22.1429
  2. 2. Median = middle of the sorted list (odd n, so the middle value) = 23
  3. 3. Sample variance s² = Σ(xᵢ − 22.1429)² ÷ (7 − 1) = 176.4762 → s = 13.2844
  4. 4. Population variance σ² = Σ(xᵢ − 22.1429)² ÷ 7 = 151.2653 → σ = 12.299
  5. 5. IQR = Q3 − Q1 = 30.515.5 = 15; fences = 15.5 − 1.5×15 and 30.5 + 1.5×15

100% Private

Your data set never leaves this tab — every statistic is computed in your browser.

How to Use Mean, Median, Mode & Range Calculator

1

Paste or Type Your Numbers

Drop your values into the box separated by commas, spaces, tabs or newlines — a spreadsheet column pastes in directly. Any non-numeric token is skipped and the count of skipped entries is shown, so nothing disappears silently.

2

Choose Sample or Population, and a Quartile Method

Both variance and standard deviation are shown side by side with n and n − 1 labelled, so pick the one your assignment needs. Switch the quartile method between inclusive and exclusive to match Excel or your textbook.

3

Read the Working and the Outlier Fences

The working panel substitutes your own sum, count and mean into each formula step by step. Check the Tukey fence figures to see which values, if any, are far enough from the middle to be treated as outliers.

What These Statistics Measure and Where Calculators Disagree

Mean, median and mode are the three standard ways to describe the middle of a data set, and they answer slightly different questions. The mean is the arithmetic average, the median is the value sitting in the physical centre of the sorted list, and the mode is whatever value appears most often. Range adds a crude sense of spread by subtracting the smallest value from the largest. Students meet all four in a single chapter, analysts reach for them before any modelling, and teachers use them to summarise a class. Reporting only one is how data gets misread: add a single extreme value to a list of seven and the mean can move by thousands while the median barely shifts at all. The formulas are short. Mean x̄ = Σxᵢ ÷ n, where xᵢ is each value and n is the count. Median is the middle of the sorted list when n is odd, or the average of the two middle values when n is even. Mode is every value tied for the highest frequency — plural, because a data set can genuinely have two or more, and there is no mode at all when every value occurs once. Spread is where the real trap lies. Population variance σ² = Σ(xᵢ − x̄)² ÷ n divides by n and describes a complete group. Sample variance s² = Σ(xᵢ − x̄)² ÷ (n − 1) divides by n − 1, called Bessel's correction, and is the unbiased estimate when your numbers are a sample from something larger. Standard deviation is the square root of either. This tool prints both, side by side and labelled, rather than quietly picking one. Take the data set 10, 2, 38, 23, 38, 23, 21, which is the worked example calculator.net publishes. The sum is 155 across 7 values, so the mean is 155 ÷ 7 = 22.1429. Sorted it reads 2, 10, 21, 23, 23, 38, 38, making the median 23. Both 23 and 38 appear twice, so this data set is bimodal and both are modes — a calculator returning just one is wrong here. The range is 38 − 2 = 36. Population variance comes to 151.2653 with σ = 12.299, while sample variance is 176.4762 with s = 13.2844. That gap of nearly one full unit between σ and s is exactly what a student loses marks over. Quartiles by the inclusive method give Q1 = 15.5, Q3 = 30.5 and IQR = 15, with Tukey fences at −7 and 53, so nothing here is an outlier. Geometric mean is 16.4128 and harmonic mean 8.8922. Four situations make this worth bookmarking. A teacher marking a class test wants the mean for the report and the median to check whether one very low score is dragging the average down. A biology student writing up an experiment must report the sample standard deviation, not the population one, because their measurements are a sample of all possible measurements. An analyst cleaning a spreadsheet uses the 1.5 × IQR fences to isolate suspicious entries before running anything else — on 1, 2, 3, 4, 5, 6, 7, 8, 9, 100 the upper fence is 14.5, so 100 is flagged immediately. And anyone averaging growth rates or ratios needs the geometric mean, since averaging percentages arithmetically overstates compounded growth. One genuine gotcha deserves attention: there is no single agreed definition of a quartile. Excel ships two functions, QUARTILE.INC and QUARTILE.EXC, and R offers nine methods, all defensible and all capable of returning different answers on the same numbers. On the integers 1 to 10 the inclusive method gives Q1 = 3.25 and Q3 = 7.75, while the exclusive method gives 2.75 and 8.25 — and because the IQR changes, so do the outlier fences. This tool lets you choose, names the active method on screen and shows the other method's figures beside it, so a spreadsheet mismatch is explainable rather than alarming. Fences follow Tukey's Exploratory Data Analysis (1977); mean definitions follow Wolfram MathWorld. Your data set is never uploaded.

Mean, Median, Mode & Range Calculator Formula & Method

Mean x̄ = Σxᵢ ÷ n Median = middle value of the sorted list (n odd), or the mean of the two middle values (n even) Mode = every value tied for the highest frequency; none when all frequencies equal 1 Range = max − min Midrange = (max + min) ÷ 2 Population variance σ² = Σ(xᵢ − x̄)² ÷ n → σ = √σ² (use for a complete group) Sample variance s² = Σ(xᵢ − x̄)² ÷ (n − 1) → s = √s² (Bessel's correction, for a sample) Geometric mean = (Πxᵢ)^(1/n) — needs every xᵢ > 0 Harmonic mean = n ÷ Σ(1 ÷ xᵢ) — needs no xᵢ = 0 Quartiles by linear interpolation on the sorted values: inclusive (Excel QUARTILE.INC): position = p × (n − 1) exclusive (Excel QUARTILE.EXC): position = p × (n + 1) − 1 for p = 0.25, 0.50, 0.75; IQR = Q3 − Q1 Outliers (Tukey 1977): below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR Rounding rule: full precision through every step; values are rounded to 4 decimals only for display.

Examples: Mean, Median, Mode & Range Calculator

Input

10, 2, 38, 23, 38, 23, 21

Result

mean 22.1429 · median 23 · modes 23 and 38 · range 36 · sum 155 · n 7

Mean is 155 ÷ 7; sorted the list reads 2, 10, 21, 23, 23, 38, 38 so the middle value is 23, and both 23 and 38 appear twice making it bimodal — the exact figures calculator.net publishes for this set.

Input

Same set, spread statistics

Result

sample variance 176.4762, s = 13.2844 · population variance 151.2653, σ = 12.299

Dividing the same sum of squared deviations by n − 1 = 6 rather than n = 7 raises the standard deviation by roughly one unit, which is why the two must never be mixed up.

Input

2, 4, 4, 4, 5, 5, 7, 9

Result

mean 5 · median 4.5 · mode 4 · population SD exactly 2 · sample SD 2.1381

The textbook standard-deviation example: the deviations are −3, −1, −1, −1, 0, 0, 2, 4, whose squares sum to 32, and 32 ÷ 8 = 4 gives σ = 2 exactly.

Input

1, 2, 3, 4, 5, 6, 7, 8, 9, 10 — quartile methods

Result

inclusive Q1 3.25, Q3 7.75, IQR 4.5 · exclusive Q1 2.75, Q3 8.25, IQR 5.5

Same data, two accepted methods, two answers — this is precisely why the active quartile method is named on screen and the alternative shown beside it.

Input

1, 2, 3, 4, 5, 6, 7, 8, 9, 100

Result

Tukey fences −3.5 and 14.5 · outlier: 100

Q1 = 3.25 and Q3 = 7.75 give an IQR of 4.5, so the upper fence is 7.75 + 1.5 × 4.5 = 14.5 and 100 sits far beyond it.

Frequently Asked Questions – Mean, Median, Mode & Range Calculator

Population standard deviation divides the squared deviations by n and describes a complete group. Sample standard deviation divides by n − 1, Bessel's correction, giving an unbiased estimate when your data is a sample. On the set 10, 2, 38, 23, 38, 23, 21 they are 12.299 and 13.2844.