Mean, Median, Mode Calculator

Works anywhere

Takes a pasted list of numbers and returns the mean, median, mode, range, quartiles and interquartile range, with the sorted data shown alongside. For the set 5, 10, 10, 15, 20 the mean is 12, the median is 10, the mode is 10 and the range is 15.

Enter your values

Paste your numbers separated by commas, spaces or new lines, straight from a spreadsheet column.

Runs in your browser. Nothing you enter is stored or sent anywhere.

Results

Worked example. Edit the values and press Calculate

Mean

12.0000

The arithmetic average: every value counts, including outliers.

  • Median

    10.0000

  • Mode

    10 (appears 2 times)

  • Range

    15.0000

  • Midrange

    12.5000

  • Lower quartile (Q1)

    7.5000

  • Upper quartile (Q3)

    17.5000

  • Interquartile range (IQR)

    10.0000

  • Sum

    60.0000

  • Count

    5

  • Smallest value

    5.0000

  • Largest value

    20.0000

Why use this calculator

Average is a word that hides three different questions, and choosing the wrong one is how honest data gets reported misleadingly. The mean uses every value and is the right choice when you need a total divided fairly, but a single extreme figure drags it away from anything typical.

The median ignores magnitude and reports the middle, which is why incomes, house prices and waiting times are almost always published that way. The mode names the value that actually occurs most, which is the only one of the three that works for categories. Showing all three together, with the range and the interquartile range beside them, makes the shape of the data visible in a way that any single number cannot, and it immediately reveals skew whenever the mean and the median disagree.

How to use it

  1. Paste your numbers into the data box, separated by commas, spaces, tabs or new lines, so a column copied straight out of a spreadsheet works without reformatting.
  2. Negative numbers and decimals are both accepted, and any text between the numbers is ignored, so units or labels in the pasted block will not break it.
  3. There is no need to sort the list first, because the calculator orders it for you and shows the sorted version underneath so you can see exactly where the median falls.
  4. Up to five hundred values are read; if you have more, summarise in batches or use a spreadsheet.
  5. Read the mean and median together, and if they differ noticeably your data is skewed and the median is the safer summary.

What each result means

Mean
The arithmetic average, found by dividing the total by the count. Every value pulls on it, including extremes.
Median
The middle value once sorted, so exactly half the data sits above it and half below it regardless of magnitude.
Mode
The value that appears most often. A set can have several modes, or none at all when nothing repeats.
Range
The distance from the smallest value to the largest, giving the crudest possible measure of spread.
Midrange
The halfway point between the smallest and largest values, which is highly sensitive to a single extreme reading.
Lower quartile (Q1)
The value one quarter of the way through the sorted data, below which a quarter of all observations fall.
Upper quartile (Q3)
The value three quarters of the way through, above which the top quarter of observations sit.
Interquartile range (IQR)
The spread of the middle half of the data, which ignores extremes and is the basis of most outlier tests.
Sum
The total of every value entered, which is the numerator used when calculating the mean.
Count
How many numbers were actually read from your input, so you can confirm nothing was dropped.
Smallest value
The minimum observation in the set, forming the lower end of the range.
Largest value
The maximum observation in the set, forming the upper end of the range.

The formula

The mean is the sum of all values divided by the count, written as

x̄ = Σx ÷ n

Σx
the total
n
how many values there are

The median is the middle value once the data is sorted, or the average of the two middle values when n is even. The mode is the value that occurs most often, and a set with no repeated value has no mode. The range is the largest value minus the smallest. Quartiles use the Moore and McCabe convention: Q1 is the median of the lower half and Q3 the median of the upper half, excluding the overall median when n is odd, and the interquartile range is Q3 minus Q1.

How this number is used in practice

Income and property statistics are published as medians almost everywhere, and the reason is visible the moment you compute both. A handful of very high earners lifts the mean well above what a typical household receives, so the mean describes the total divided evenly rather than anyone's actual experience.

National statistics agencies therefore report median household income and median dwelling price, and quote quartiles alongside to show the spread. When a report quotes an average without saying which one, the gap between the mean and the median is the first thing worth checking.

In manufacturing and service operations the mode and the interquartile range carry most of the information. A production line reports the most common defect type, which is a mode on categorical data where no mean exists at all. Service level agreements are written against percentiles rather than averages, because an average response time of two minutes is consistent with a small fraction of customers waiting an hour.

The interquartile range is the standard input to a box plot and to the usual outlier rule, which flags anything more than 1.5 interquartile ranges beyond a quartile.

In classrooms and laboratories the three measures are the first diagnostic on any data set. A class mean well below the median suggests a few very low scores rather than general weakness, which points to a different intervention. In a laboratory the median resists a single mis-recorded reading in a way the mean does not, which is why robust statistics are preferred where transcription errors are plausible and a repeat measurement is expensive.

Worked examples

  • A small symmetric set: 5, 10, 10, 15, 20

    Mean 12.0000, median 10.0000, mode 10, range 15.0000 and an IQR of 10.0000.

  • Five salaries where one is far larger: 45000, 48000, 52000, 55000, 250000

    Mean 90,000.0000 but median only 52,000.0000. The mean describes nobody in the group.

  • Seven test scores: 72, 85, 85, 90, 91, 96, 100

    Mean 88.4286, median 90.0000, mode 85 and a range of 28.0000.

  • A set with nothing repeated: 3, 7, 11

    Mean and median both 7.0000, and the mode row reports that there is no mode.

When people use it

  • Summarising survey responses, test scores or sensor readings before writing them up
  • Deciding whether the mean or the median is the honest headline figure for a report
  • Detecting skew and outliers by comparing the mean against the median and the IQR
  • Preparing the five-number summary needed to draw a box plot
  • Checking a spreadsheet formula against an independent calculation of the same column

Tips

  • Compare the mean with the median first. A large gap means the data is skewed and the median is the safer summary.
  • The mode is the only measure that works on categories such as colours, fault codes or survey options.
  • A data set can have two modes or many, and one with no repeated value has no mode at all. That is a valid result, not an error.
  • Use the interquartile range rather than the range to describe spread, because the range depends entirely on two extreme values.
  • Quartile conventions differ between textbooks and software, so state which method you used when reporting Q1 and Q3.
  • Never average a set of averages unless each was based on the same number of observations; you need a weighted mean instead.

What it assumes, and where it stops being accurate

  • Values are read as plain numbers; any text between them is ignored, so a stray label will not be counted.
  • At most five hundred values are read from the input, and anything beyond that is discarded rather than silently truncating the answer.
  • Quartiles use the Moore and McCabe convention, which excludes the overall median from both halves when the count is odd.
  • Every observation is weighted equally, so this is not appropriate for grouped or frequency-weighted data without expansion.
  • The data is treated as the complete set you care about; no sampling error, confidence interval or population inference is calculated.
  • Results are shown to four decimal places, which may imply more precision than the underlying measurements actually have.

Terms used on this page

Mean
The arithmetic average: the sum of all values divided by how many there are.
Median
The middle value of a sorted data set, or the average of the two middle values when the count is even.
Mode
The value that occurs most often. A set may have one mode, several, or none.
Interquartile range
The distance from the lower quartile to the upper quartile, covering the middle half of the data.
Skew
Asymmetry in a distribution, shown by the mean sitting noticeably above or below the median.
Outlier
An observation far from the rest, conventionally more than 1.5 interquartile ranges beyond a quartile.

Questions people ask

When should I use the median instead of the mean?
Whenever the data is skewed or contains outliers. Income, house prices, waiting times and reaction times all have a long tail of high values that drags the mean upward, so the median describes a typical case far better. A good rule is to compute both: if they are close, use the mean, and if they differ noticeably, report the median and say why.
Can a data set have more than one mode?
Yes. If two or more values tie for the highest frequency the set is bimodal or multimodal, and all the tied values are modes. That often signals two different groups mixed together, such as two shifts or two product variants, in which case splitting the data and summarising each group separately is more informative than any single average.
What does it mean when there is no mode?
It means no value occurs more often than any other, which is common in continuous measurements where exact repeats are unlikely. It is a legitimate result rather than an error. If you need a most-typical value for continuous data, group it into bins first and report the modal bin, or use the median instead.
What is the interquartile range used for?
It measures the spread of the middle half of the data, ignoring the top and bottom quarters entirely, which makes it far more robust than the range. It is the box in a box plot, and the standard outlier rule flags any value more than 1.5 interquartile ranges below Q1 or above Q3 as worth investigating.
Why do different tools give different quartiles?
Because there are several accepted conventions for quartiles on small samples, differing in whether the median is included in each half and whether interpolation is used. This calculator uses the Moore and McCabe method, which excludes the median from both halves when the count is odd. Differences vanish as the data set grows, but on small sets they are visible.
Should I report the mean or the median for exam results?
Report both, along with the range or interquartile range. The mean tells you the overall level, the median tells you the typical student, and a mean well below the median exposes a small group of very low scores that a single figure would hide. Reporting only one is what makes two schools with different distributions look identical.

Use this with

Mean, Median, Mode Calculator answers one part of the question. These pick up where it stops: Standard Deviation Calculator, Z-Score Calculator, Percentage Calculator and GPA Calculator.

Where these figures come from

Works anywhereLast reviewed 2026-09·How we build and check calculators

This calculation is jurisdiction-neutral arithmetic. No country-specific rules are applied.

Mean, Median, Mode Calculator produces an estimate for general information. It is not financial, tax, medical, legal or engineering advice. read the full disclaimer. Spotted a wrong number? Report it and it gets fixed. The form picks up this calculator and the inputs you used.