Median and Mode Calculator

Find the median, mode and quartiles of a dataset, and compare them against the mean to see how skewed your data is.

Separate values with commas, spaces or new lines.
Median 15
median = middle value of the sorted list (mean of the two middle values when the count is even)
Mode 15 (3×)
Mean (for comparison) 16.222222
First quartile (Q1) Not defined
Third quartile (Q3) Not defined
Interquartile range Not defined
Distribution Not defined

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Median and Mode Calculator does

This median and mode calculator will find the median, mode and quartiles of a dataset, and compare them against the mean to see how skewed your data is. Fill in the single field and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for reporting a typical salary or house price, where the mean is distorted by a few very high values. A related tool on this site is the standard deviation calculator.

How to use it

  1. Enter your numbers in any order — they are sorted automatically.
  2. Read the median, the middle value of the sorted set.
  3. The mode shows the most frequent value, or says so when nothing repeats.
  4. Compare the mean and median to judge whether the data is skewed.

When to use it

  • Reporting a typical salary or house price, where the mean is distorted by a few very high values.
  • Finding the most common response in a survey.
  • Identifying outliers using the interquartile range.

Common mistakes to avoid

  • Reporting the mean for skewed data such as income, where it overstates what a typical person earns.
  • Assuming there is always exactly one mode — a dataset can have none or several.

Frequently asked questions

What if there are two middle numbers?

With an even count, the median is the mean of the two middle values. For 2, 4, 6, 8 the median is (4 + 6) ÷ 2 = 5.

When is the median better than the mean?

Whenever a few extreme values would drag the average away from the typical case. Income, house prices and response times are the standard examples — all are reported as medians for this reason.

How are quartiles calculated here?

By splitting the sorted data at the median and taking the median of each half, excluding the middle value when the count is odd. Some software uses a slightly different interpolation, so quartiles can differ by a small amount between tools.

Related tools

See all math & statistics calculators →