ADVERTISEMENT
728 × 90 Responsive Top Leaderboard Banner

Mean, Median, Mode & Range Calculator

Paste or enter numbers separated by commas, spaces, tabs, or line breaks. Instantly compute Mean, Median, Mode (unimodal, bimodal, multimodal, or no mode), Range, Geometric Mean, and Quartiles (Q1, Q3 & IQR).

• •
11 valid numbers detected
Decimal point: . (e.g. 18.5) • Shortcut: Ctrl+Enter

Central Tendency & Spread Results

Arithmetic Average x̄
Mean
25.9091
Sum (285) ÷ Count (11)
Middle Value (50%) M
Median
22
Exact middle item (#6 of 11)
Unimodal Mo
Mode
22
Appears 3 times (highest frequency)
Total Spread R
Range
34
Max (48) − Min (14)

Ascending Sorted Dataset & 5-Number Summary

Ordered from smallest to largest to visually verify Minimum, Median, Mode, and Maximum:

Median Mode Min / Max
Minimum (0%) 14
Q1 (25th Pct) 19
Median (Q2) 22
Q3 (75th Pct) 31
Maximum (100%) 48

Quartiles, Interquartile Range (IQR) & Summary Metrics

Minimum (Min) 14
Maximum (Max) 48
Total Count (n) 11
Sum (Σx) 285
Geometric Mean (GM) 24.6409
1st Quartile — Q1 (25%) 19
3rd Quartile — Q3 (75%) 31
Interquartile Range (IQR) 12
ADVERTISEMENT
Responsive In-Content Banner (336 × 280 or 728 × 90)

How to Find Mean, Median, Mode, and Range Step-by-Step

In descriptive statistics, Mean, Median, and Mode summarize the "typical" center of a dataset (measures of central tendency), while Range and Interquartile Range (IQR) describe how widely the numbers spread out (measures of dispersion). Let's walk through each calculation using a practical example dataset of 7 quiz scores: [18, 24, 15, 24, 21, 32, 27] (sorted ascending as [15, 18, 21, 24, 24, 27, 32]):

1. Mean (Arithmetic Average)

Sum of all values divided by total count

x̄ = Σxi n = x1 + x2 + … + xn n

Example: For [15, 18, 21, 24, 24, 27, 32], add all 7 scores (Σx = 161) and divide by n = 7 to get x̄ = 23.

2. Median (50th Percentile)

Exact middle value of the sorted dataset

M = x(n+1)/2 (odd n)

Example: Sorted ascending, item (7 + 1) / 2 = 4th value in [15, 18, 21, 24, 24, 27, 32] is 24. If n is even, average the two middle numbers.

Mode (Mo)

Count Value Frequencies: Scan the sorted list for repeating numbers. In [15, 18, 21, 24, 24, 27, 32], 24 appears twice while all others appear once, making it Unimodal (Mode = 24). Two tied peaks create a Bimodal set; equal frequencies across all distinct values yield No Mode.

Range (R)

Subtract Minimum from Maximum: Range = Max − Min = 32 − 15 = 17. Range gives a quick snapshot of total width, though a single outlier can stretch it dramatically.

IQR (Q3 − Q1)

Find the Middle 50% Spread: Split the sorted data at the median. The median of the lower half [15, 18, 21] is Q1 = 18, and the median of the upper half [24, 27, 32] is Q3 = 27. Thus, IQR = 27 − 18 = 9.

Geo. Mean

Multiplicative Growth Average: For strictly positive numbers (xi > 0), the Geometric Mean is the n-th root of their product: GM = (x₁ × x₂ × … × xₙ)1/n, widely used for compound investment returns and biological growth rates.

When to Use Median vs. Mean: Skewed Data & Outliers

A critical skill in data analysis is knowing when the arithmetic mean misleads. Consider 5 employees at a startup earning $52k, $55k, $58k, $60k, and a founder earning $975k:

  • The Mean is $240,000: Pulled upward by the single outlier, $240k represents none of the employees accurately—80% of the team earns less than a quarter of the "average."
  • The Median is $58,000: Unaffected by whether the top earner makes $150k or $10M, the median pinpoints the true typical salary right in the center of the workforce.
Metric Best Data Type & Distribution Sensitivity to Outliers Real-World Examples
Mean (x̄) Continuous / numerical data with a symmetric (normal) distribution High — pulled toward extreme highs or lows Standardized exam scores, manufacturing tolerances, daily temperatures
Median (M) Numerical or ordinal data with skewed distributions or outliers Very Low (Robust) — resistant to extreme values Household income, real estate prices, web server response latency
Mode (Mo) Categorical, nominal, or discrete data with repeating peaks None — depends strictly on peak frequency Most popular shoe size sold, most common defect code, customer rating
IQR vs. Range Pair IQR with Median for skewed data; pair SD / Range with Mean IQR ignores top/bottom 25%; Range uses 2 extremes Salary bands (25th to 75th percentile), medical reference ranges

Frequently Asked Questions (FAQ)

All three measure the "center" of a dataset in distinct ways: the Mean is the arithmetic average (total sum divided by count), balancing the mathematical weight of every value. The Median is the positional middle number once values are ordered from smallest to largest, splitting the data into two equal 50% halves. The Mode is the value that appears most frequently. In a perfectly symmetrical bell curve, the mean, median, and mode are identical.
Yes to both. If one value occurs more times than any other, the dataset is Unimodal. If two distinct values tie for the highest frequency (e.g., both appear 3 times), it is Bimodal; if three or more tie, it is Multimodal. Conversely, if every distinct value in the dataset occurs the exact same number of times (such as [4, 9, 12, 17] where each appears once, or [2, 2, 5, 5] where every distinct value appears twice), no single value stands out as most frequent, so there is No Mode.
First, sort all numbers in ascending order. Because an even count (n) has no single middle element, locate the two middle numbers at positions n / 2 and (n / 2) + 1, add them together, and divide by 2. For example, in the 6-number dataset [8, 12, 15, 21, 24, 30], the 3rd and 4th numbers are 15 and 21, giving a median of (15 + 21) ÷ 2 = 18.
Use the median whenever your dataset is strongly skewed or contains extreme outliers. Classic examples include national household income, residential property prices, net worth, and application load times. A few ultra-high values pull the mean far above what most observations experience, whereas the median (paired with Q1, Q3, and IQR) stays anchored at the true 50th-percentile midpoint.
No—never. All mathematical calculations execute 100% locally inside your browser using client-side JavaScript. None of your pasted spreadsheet values, numbers, or statistical results are ever saved in a database, logged, or transmitted to any server.

Explore Our Free Calculator Series

Fast, privacy-first math & statistical utilities running 100% in your browser.

ADVERTISEMENT
Responsive Bottom Banner (728 × 90 or Auto)