Mean, Median, Mode Calculator - Statistics Mean Median Mode

Enter a data set to instantly compute mean, median, mode, quartiles, IQR, and outliers.

Enter Data Set

Your Results

Mean (Average) 5
Formula (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 5
Mean 5
Median 4.5
Mode 4
Range 7
Q1 (25th percentile) 4
Q2 (Median) 4.5
Q3 (75th percentile) 6
IQR (Q3 − Q1) 2
Outliers None
Sum 40
Count 8

Sorted Data (Ascending)

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

Mean, Median, Mode Calculator - Guide

What Is the Mean, Median, Mode Calculator?

The Mean, Median, Mode Calculator is a free online statistics tool that computes all three measures of central tendency — plus range, quartiles (Q1, Q2, Q3), interquartile range (IQR), and outlier detection — for any set of numbers you enter. These measures describe the “centre” and spread of a data set, making them indispensable in statistics, data analysis, and everyday problem-solving.

The mean (arithmetic average) sums all values and divides by the count. The median is the middle value once the data is sorted. The mode is the value that occurs most frequently.

Key Features

  • All-in-one output: Mean, median, mode, range, Q1, Q2, Q3, IQR, outliers, sum, and count calculated simultaneously.
  • Instant, real-time results: Every statistic updates the moment you change the input data.
  • Sorted data view: Your numbers are displayed in ascending order beneath the results so you can verify order-dependent calculations.
  • Outlier detection: Values beyond Q1 − 1.5×IQR or Q3 + 1.5×IQR are flagged automatically.
  • Formula display: The mean formula with your actual numbers is shown beneath the primary result for easy verification.
  • Mobile-friendly & accessible: Responsive layout with keyboard navigation and ARIA labels.

Formulas — How Each Statistic Is Calculated

1. Mean (Arithmetic Average)

Mean = (x1 + x2 + … + xn) ÷ n

2. Median

Sort the data. If n is odd, the median is the middle value. If n is even, the median is the average of the two middle values.

3. Mode

The value(s) with the highest frequency. A data set may be unimodal, bimodal, multimodal, or have no mode (all values equally frequent).

4. Range

Range = Maximum value − Minimum value

5. Quartiles

Q1 = median of the lower half  |  Q2 = median  |  Q3 = median of the upper half

6. Interquartile Range (IQR)

IQR = Q3 − Q1

7. Outliers (IQR Method)

A value is an outlier if it is below Q1 − 1.5×IQR or above Q3 + 1.5×IQR.

How to Use This Calculator — Step by Step

  1. Enter your data: Type or paste numbers into the text area, separated by commas or spaces (e.g., 2, 4, 4, 4, 5, 5, 7, 9).
  2. Click “Calculate” or watch the results update instantly as you type.
  3. Review the results card: Mean, median, mode, range, quartiles, IQR, outliers, sum, and count are all displayed.
  4. Check the formula line: The mean formula with your actual numbers appears below the primary result value.
  5. View sorted data: Scroll to the “Sorted Data (Ascending)” section to see your numbers in order.

Practical Examples — Worked Central Tendency Problems

Example 1 — Basic data set

  • Data: 2, 4, 4, 4, 5, 5, 7, 9
  • Mean = (2+4+4+4+5+5+7+9) ÷ 8 = 40 ÷ 8 = 5
  • Sorted: 2, 4, 4, 4, 5, 5, 7, 9 → Median = (4+5) ÷ 2 = 4.5
  • Mode = 4 (appears 3 times)
  • Range = 9 − 2 = 7

Example 2 — Odd count

  • Data: 1, 2, 3, 4, 5
  • Mean = 15 ÷ 5 = 3
  • Median = 3 (the middle value)
  • Mode = none (all values appear once)

Example 3 — Bimodal data with outlier

  • Data: 1, 1, 2, 2, 3, 50
  • Mean = 59 ÷ 6 ≈ 9.83
  • Median = (2+2) ÷ 2 = 2
  • Mode = 1 and 2 (bimodal, each appears twice)
  • Q1 = 1, Q3 = 3, IQR = 2 → Upper fence = 3 + 3 = 6 → 50 is an outlier

Real-World Use Cases

  • Classroom grades: Teachers use the mean to compute grade averages and the median to understand the typical student performance when a few extreme scores skew the mean.
  • Income analysis: Economists report median household income because a few very high earners inflate the mean.
  • Retail & inventory: The mode identifies the most popular product size or colour sold.
  • Quality control: Manufacturers use quartiles and IQR to monitor process variation and flag defective outliers.
  • Sports analytics: Median lap times, average points per game, and modal finishing positions are common metrics.
  • Healthcare: Median survival times and mean blood-pressure readings guide treatment decisions.

Understanding Your Results

  • Mean: The arithmetic average — sensitive to outliers. Best for symmetric distributions.
  • Median: The middle value — robust against outliers. Preferred for skewed data.
  • Mode: The most frequent value. Useful for categorical or discrete data.
  • Range: The spread between the highest and lowest values. Simple but sensitive to extremes.
  • Q1, Q2, Q3: Divide sorted data into quarters. Q2 is the median. Q1 and Q3 mark the 25th and 75th percentiles.
  • IQR: The range of the middle 50% of the data. A smaller IQR means data is tightly clustered around the median.
  • Outliers: Values flagged as unusually far from the bulk of the data using the 1.5×IQR rule.
  • Sum & Count: The total of all values and the number of values entered — useful for verifying input.

Tips & Best Practices

  • If your data contains outliers, report the median instead of (or alongside) the mean for a more representative centre.
  • Always sort and visually inspect your data before interpreting statistics — the sorted-data view in this calculator helps with that.
  • When all values appear with equal frequency, there is no mode. This is normal and does not indicate an error.
  • For large data sets, paste directly from a spreadsheet — commas or spaces between values both work.
  • Use IQR-based outlier detection as a starting point, but always investigate flagged values in context before discarding them.

Common Mistakes to Avoid

  • Using the mean with heavily skewed data: A few extreme values can pull the mean far from the typical value. Use the median instead.
  • Forgetting to sort before finding the median: The median is defined on sorted data. This calculator sorts automatically, but be careful when calculating by hand.
  • Assuming every data set has a mode: If all values are unique, there is no mode. If multiple values tie for highest frequency, the data is multimodal.
  • Confusing range with IQR: Range covers the full spread (max − min); IQR covers only the middle 50%.
  • Automatically removing outliers: Outliers may be valid data points (e.g., a record-breaking measurement). Always investigate before excluding.

Frequently Asked Questions

Q: What is the difference between mean, median, and mode?

The mean is the arithmetic average (sum ÷ count). The median is the middle value when the data is sorted. The mode is the most frequently occurring value. Each measures the “centre” of a data set in a different way.

Q: When should I use the median instead of the mean?

Use the median when your data is skewed or contains outliers — for example, household incomes, house prices, or any distribution with a long tail on one side.

Q: How are outliers detected?

This calculator uses the IQR method: any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is flagged as a potential outlier.

Q: What does “no mode” mean?

It means every value in the data set appears the same number of times, so no single value is more frequent than the rest.

Find a Calculator

Browse All Calculators →