Mean, Median, Mode & Range Calculator

Calculate mean, median, mode, range, variance, standard deviation, and quartiles with step-by-step solutions.

For learning and homework help — verify critical calculations independently.

Reviewed by CalculatorDrive Math Editorial Board · Last updated

Calculator

Enter numbers separated by commas or new lines

Enter a set of numbers to calculate mean, median, mode, range, and other statistical measures.

The short answer

Mean is the arithmetic average (sum ÷ count), median is the middle value when sorted, mode is the most frequent value, and range is the largest value minus the smallest. Together they summarize a data set from four angles — where it's centered (mean, median, mode) and how spread out it is (range).

Key takeaways

  • Mean and median usually sit close together for symmetric data but diverge sharply once outliers or skew enter the picture.
  • A data set can have zero modes (all unique values), one mode, or several (bimodal/multimodal) — mode is the only one of the four that can be undefined.
  • Range only looks at the two extreme values, so a single outlier can make the spread look much bigger than it really is for the bulk of the data.
  • The interquartile range (Q3 − Q1) is a more robust measure of spread than range, since it ignores the most extreme 25% on each end.

The four measures at a glance

Measure What it tells you Sensitive to outliers?
MeanArithmetic center of the dataYes — shifts with every value
MedianMiddle value when sortedNo — resistant to extremes
ModeMost frequent value(s)No — unaffected by extreme values
RangeSpread from lowest to highestYes — defined entirely by the extremes

Worked example: one data set, four numbers

Data: 12, 15, 12, 18, 20, 12, 25 — sorted: 12, 12, 12, 15, 18, 20, 25

Mean(12+15+12+18+20+12+25) ÷ 7 ≈ 16.29
Median4th value in sorted list = 15
Mode12 (appears 3 times)
Range25 − 12 = 13

Notice mean (16.29) sits above the median (15) here, pulled upward by 25 — a mild sign of right skew even in a small data set.

Using the IQR to spot outliers

Continuing the same data set (12, 12, 12, 15, 18, 20, 25): splitting around the median gives a lower half of 12, 12, 12 and an upper half of 18, 20, 25. One common method takes the median of each half: Q1 = 12 and Q3 = 20.

IQR = Q3 − Q1 = 20 − 12 = 8

Lower bound = Q1 − 1.5×IQR = 12 − 12 = 0

Upper bound = Q3 + 1.5×IQR = 20 + 12 = 32

Every value in this data set falls between 0 and 32, so none would be flagged as an outlier by this rule — even though 25 is the largest value, it's still within a normal range for this spread.

Common mistakes to avoid

  • Assuming mean and median will always be close — they diverge significantly once a data set is skewed or contains outliers.
  • Expecting every data set to have a mode — a set where every value is unique has no mode at all, not a mode of zero.
  • Judging spread from range alone — a single extreme value can make the range misleading about how the bulk of the data actually behaves.
  • Assuming Q1/Q3 will exactly match between different tools — quartile calculation has more than one accepted convention, so small cross-tool differences are normal.

Frequently Asked Questions

What are mean, median, mode, and range?

Mean is the average. Median is the middle value when sorted. Mode is the most frequent value. Range is the difference between the largest and smallest values.

When should you report median instead of mean?

Use median when data are skewed or contain outliers — income, home prices, or reaction times — so one extreme value does not dominate.

Can a data set have more than one mode?

Yes. A distribution with two peaks is bimodal. If every value appears once, there is no mode.

What does range tell you about spread?

Range is simple spread but sensitive to outliers. Two data sets can share a mean yet have very different ranges.

How do I use this mean median mode range calculator?

Enter your data values separated by commas, then click Calculate. All four statistics appear together with sorted data for reference.

How do you use the IQR to spot outliers?

The interquartile range (IQR = Q3 − Q1) measures the spread of the middle 50% of your data. A common rule flags any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR as a potential outlier. For Q1 = 12 and Q3 = 20, the IQR is 8, so values below 0 or above 32 would be flagged as unusual.

More math calculators