Mean, Median, Mode Calculator

Paste a list of numbers. Commas, spaces and new lines all work.

Separate numbers with commas, spaces or new lines. You can paste a column from Excel or Google Sheets.
Mean (average)
–
Median
–
Mode
–
Sorted:

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

How do I calculate the mean, median and mode?

  • Mean: add all the numbers and divide by how many there are. For 2, 3, 3, 8 the mean is 16 ÷ 4 = 4.
  • Median: sort the numbers and take the middle one. With an even count, average the two middle numbers: for 2, 3, 3, 8 it's (3 + 3) ÷ 2 = 3.
  • Mode: the number that appears most often, here 3. A list can have more than one mode, or none if every value appears once.
  • Range: largest minus smallest, here 8 − 2 = 6.

When should I use the median instead of the mean?

When a few very large or small values would pull the average off. Salaries are the classic example: one very high earner lifts the mean, but the median still shows what a typical person earns. If your data is fairly even, the mean and median will be close.

Which standard deviation should I use, sample or population?

Use the sample figure (dividing by n − 1) when your numbers are a sample from a bigger group, such as 30 students from a whole school. Use the population figure (dividing by n) when you have every value, like the marks of everyone in your class. Most school and university statistics questions want the sample version unless they say otherwise.

Need other maths tools? Try the LCM and HCF Calculator, the Percentage Calculator or the GPA and CGPA Calculator, which weights grades by credit hours.

Questions people ask

What is the mean of 12, 15, 11 and 18?

14. The total is 56, and 56 ÷ 4 = 14.

How do I find the median of an even number of values?

Sort them and average the two middle numbers. For 4, 7, 9 and 12, the median is (7 + 9) ÷ 2 = 8.

Can a data set have two modes?

Yes. If two values tie for the most appearances, both are modes and the set is called bimodal. The calculator lists every mode.

What does "no mode" mean?

Every value appears exactly once, so none appears more often than the others.

Can I paste data from Excel?

Yes. Copy a column or row and paste it into the box. Anything that isn't a number is skipped and the calculator tells you how many items it skipped.

Is the mean the same as the average?

Yes. In everyday use "average" means the arithmetic mean: the total divided by the count.

Related tools