Skip to content

Mean, Median, Mode and Range Calculator With Frequency Table

Find the mean, median, mode and range of a data set with a frequency table. Step-by-step methods, what each measure tells you, and tips for even counts and ties.

4 min read

Mean, median, mode and range are the four basic ways to describe a set of numbers. The first three tell you what is typical; the range tells you how spread out the values are. They are taught early in school but used throughout statistics, business and everyday life. Our mean, median, mode and range calculator finds all four and builds a frequency table. This guide shows how to work each one out by hand.

How to use the calculator

Type or paste your data, separated by commas, spaces or new lines. With the default 3, 7, 7, 2, 9, 7, 4, 3:

  • Mean: 5.25
  • Median: 5.5
  • Mode: 7
  • Range: 7 (from 2 to 9)

The frequency table shows each value, how often it appears and its share of the data. For the default, 7 appears 3 times (37.5%) and 3 appears twice (25%).

Mean

Add all the values and divide by how many there are.

3 + 7 + 7 + 2 + 9 + 7 + 4 + 3 = 42, and 42 ÷ 8 = 5.25.

The mean uses every value, so it reflects the whole data set, but a single extreme value can pull it up or down.

Median

Sort the values and find the middle.

Sorted: 2, 3, 3, 4, 7, 7, 7, 9.

With 8 values, there are two middle values, the 4th and 5th: 4 and 7. Their average is 5.5.

With an odd count, the median is simply the middle value. For 2, 3, 4, 7, 9, it is 4.

A handy rule: the median is at position (n + 1) ÷ 2 in the sorted list. For n = 8 that is position 4.5, halfway between the 4th and 5th values.

Mode

The value that appears most often. In the default data, 7 appears three times, more than any other, so the mode is 7.

  • No mode: if every value appears once, there is no mode.
  • Bimodal: if two values tie for most common, both are modes. In 1, 2, 2, 3, 3, 4, the modes are 2 and 3.
  • The mode is the only average that works for non-numeric data, such as the most popular shirt size or favourite colour.

Range

The largest value minus the smallest: 9 − 2 = 7.

The range is quick to calculate but depends entirely on the two most extreme values. One unusual reading can make it misleading. The interquartile range or standard deviation are more robust; see the standard deviation calculator.

What the measures tell you together

PatternWhat it suggests
Mean ≈ medianRoughly symmetric data
Mean > medianA few high values pulling the mean up (right skew)
Mean < medianA few low values pulling the mean down (left skew)
Large rangeValues are widely spread

In the default data, the mean (5.25) is a little below the median (5.5), because the low values 2 and 3 pull it down.

Worked example: test scores

Scores out of 20: 12, 15, 15, 18, 20, 9, 15, 14.

  • Sorted: 9, 12, 14, 15, 15, 15, 18, 20.
  • Mean: 118 ÷ 8 = 14.75.
  • Median: (15 + 15) ÷ 2 = 15.
  • Mode: 15 (three times).
  • Range: 20 − 9 = 11.

The typical score is about 15, and the 9 is the outlier pulling the mean slightly lower.

Choosing the right average

  • Mean: for balanced numerical data, such as daily temperatures.
  • Median: for skewed data or data with outliers, such as salaries and house prices.
  • Mode: for the most common choice or category, such as shoe sizes in stock.

The average calculator adds weighted averages, and the statistics calculator adds variance, standard deviation and the geometric mean.

Frequency tables

A frequency table lists each distinct value and how often it appears. It makes the mode obvious, helps spot errors (such as a value typed twice) and is the first step toward drawing a bar chart or histogram. With large data sets, values are often grouped into ranges, such as 0 to 9 and 10 to 19.

Frequently asked questions

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

Sort the data and average the two middle values. For 2, 4, 6, 8, the median is (4 + 6) ÷ 2 = 5.

Can a data set have more than one mode?

Yes. If two or more values tie for the highest frequency, they are all modes. If every value appears once, there is no mode.

Can the mean be a value that is not in the data?

Yes. The mean of 1, 2, 3, 4 is 2.5, which is not one of the values. The same can happen with the median when the count is even.

Why is the range not always a good measure of spread?

It only uses the largest and smallest values, so a single outlier can make the data look far more spread out than it really is.

Share

Try it yourself

Run your own numbers with our free tool: Mean, median, mode, range calculator. No sign-up, and it works on any device.

Open the calculator