Maths explained · Years 7 to 10

How to find the mean, median, mode and range

The mean, median and mode are three ways to describe the centre of a set of data, and the range and interquartile range describe how spread out it is. Here’s how to find each one with an example, a calculator that shows the working, and practice questions with answers.

Quick answer

Mean: add all the values and divide by how many there are. Median: put the values in order and take the middle one (or the average of the middle two). Mode: the value that appears most often. Range: highest value minus lowest value. Interquartile range: Q3 − Q1, the spread of the middle half of the data.

Stuck on a statistics question?

Snap it. Tuterly shows a detailed worked solution, then gives fresh questions on the same skill until you can do it on your own. Years 7 to 10.

Coming soon on iPhone. Android soon after.

Launch price: 50% off until 31 March 2027. $17.99 $8.99 a week or $59.99 $29.99 a month.

We'll email you when Tuterly launches, plus occasional maths tips and offers. Unsubscribe any time. See our privacy policy.

Free to download · Years 7 to 10 maths · On iPhone. Android coming soon

How to find the mean

xˉ=sum of the valuesnumber of values\bar{x} = \frac{\text{sum of the values}}{\text{number of values}}

The mean is what most people call the average. Add up every value, then divide by how many values there are.

Worked example

Find the mean of 4,8,2,9,5,8,64, 8, 2, 9, 5, 8, 6.

There are 7 values and they add to 4+8+2+9+5+8+6=424 + 8 + 2 + 9 + 5 + 8 + 6 = 42.

xˉ=427=6\bar{x} = \frac{42}{7} = 6

The mean doesn't have to be one of the values, or even a whole number. The mean of 3,4,4,63, 4, 4, 6 is 174=4.25\dfrac{17}{4} = 4.25.

How to find the median

The median is the middle value once the data is in order. Forgetting to order the data first is the most common mistake.

  • Odd number of values: there's one middle value. For nn values, it's value number n+12\dfrac{n + 1}{2}.
  • Even number of values: there are two middle values. The median is halfway between them.

Worked example: odd count

Find the median of 4,8,2,9,5,8,64, 8, 2, 9, 5, 8, 6.

In order: 2,4,5,6,8,8,92, 4, 5, 6, 8, 8, 9. There are 7 values, so the median is value number 7+12=4\dfrac{7 + 1}{2} = 4, which is 66.

Worked example: even count

Find the median of 12,15,11,18,14,2012, 15, 11, 18, 14, 20.

In order: 11,12,14,15,18,2011, 12, 14, 15, 18, 20. The middle two values are 1414 and 1515.

median=14+152=14.5\text{median} = \frac{14 + 15}{2} = 14.5

How to find the mode

The mode is the value that appears most often. Ordering the data first makes repeats easy to spot.

  • 2,4,5,6,8,8,92, 4, 5, 6, 8, 8, 9: the mode is 88.
  • 3,5,8,103, 5, 8, 10: every value appears once, so there's no mode.
  • 2,4,4,6,7,72, 4, 4, 6, 7, 7: 44 and 77 both appear twice, so there are two modes, 44 and 77 (the data is bimodal).

The mode is the only one of the three that also works for categories, like the most popular sport in a class.

How to find the range

range=highest value−lowest value\text{range} = \text{highest value} - \text{lowest value}

The range measures spread, not the centre. For 2,4,5,6,8,8,92, 4, 5, 6, 8, 8, 9 the range is 9−2=79 - 2 = 7.

The range is always a single number. Writing "2 to 9" is not the range.

Mean, median, mode and range calculator (with working)

Paste or type your numbers. You’ll get the ordered data, mean, median, mode, range, quartiles and interquartile range, with every step.

Mean 6Median 6Mode 8Range 7Q1 4Q3 8IQR 4

  1. Put the data in order: 2, 4, 5, 6, 8, 8, 9
  2. Count the values: n=7n = 7
  3. Mean: add them up, 4 + 8 + 2 + 9 + 5 + 8 + 6 = 42. Then divide by 7: xˉ=427=6\bar{x} = \dfrac{42}{7} = 6
  4. Median: 7 values (odd), so it's the middle one, value number 4: 6
  5. Mode: 8 appears most often (2 times)
  6. Range: highest − lowest =9−2=7= 9 - 2 = 7
  7. Lower half (leave out the median): 2, 4, 5
  8. Q1 is the median of the lower half: 3 values (odd), so it's the middle one, value number 2: 4
  9. Upper half (leave out the median): 8, 8, 9
  10. Q3 is the median of the upper half: 3 values (odd), so it's the middle one, value number 2: 8
  11. Interquartile range: IQR=Q3−Q1=8−4=4\text{IQR} = Q_3 - Q_1 = 8 - 4 = 4

Quartiles here use the usual Australian textbook method: split the ordered data into halves (leaving out the median if there’s an odd number of values) and find the median of each half. Some calculators use a slightly different method, so check which one your teacher wants.

Mean, median and mode from a frequency table

A frequency table tells you how many times (ff) each value (xx) appears. Add an f×xf \times x column to find the total.

Score (xx) Frequency (ff) f×xf \times x
1 2 2
2 5 10
3 8 24
4 3 12
5 2 10
Total 20 58

Worked example

Mean: divide the total of the f×xf \times x column by the total frequency.

xˉ=∑fx∑f=5820=2.9\bar{x} = \frac{\sum fx}{\sum f} = \frac{58}{20} = 2.9

Median: there are 20 values, so the median is halfway between the 10th and 11th. Count down the frequencies: the 1s are values 1 to 2, the 2s are values 3 to 7, and the 3s are values 8 to 15. The 10th and 11th are both 33, so the median is 33.

Mode: the score with the highest frequency, 33.

Range: 5−1=45 - 1 = 4.

A common mistake is dividing by the number of rows (5) instead of the total frequency (20).

Quartiles and the interquartile range (Years 9 and 10)

Quartiles split ordered data into four equal parts. Q1Q_1 (the lower quartile) has a quarter of the data below it, the median (Q2Q_2) has half, and Q3Q_3 (the upper quartile) has three quarters.

The interquartile range is the spread of the middle half of the data:

IQR=Q3−Q1\text{IQR} = Q_3 - Q_1

The method most Australian textbooks use:

  1. Put the data in order and find the median.
  2. Split the data into a lower half and an upper half. If there's an odd number of values, leave the median out of both halves.
  3. Q1Q_1 is the median of the lower half, and Q3Q_3 is the median of the upper half.

Worked example: odd count

Find the IQR of 1,4,5,7,9,10,12,15,181, 4, 5, 7, 9, 10, 12, 15, 18.

There are 9 values, so the median is the 5th: 99. Leave it out.

Lower half: 1,4,5,71, 4, 5, 7, so Q1=4+52=4.5Q_1 = \dfrac{4 + 5}{2} = 4.5.

Upper half: 10,12,15,1810, 12, 15, 18, so Q3=12+152=13.5Q_3 = \dfrac{12 + 15}{2} = 13.5.

IQR=13.5−4.5=9\text{IQR} = 13.5 - 4.5 = 9

Worked example: even count

Find the IQR of 3,5,6,8,10,12,13,153, 5, 6, 8, 10, 12, 13, 15.

There are 8 values, so the halves are the first 4 and the last 4.

Lower half: 3,5,6,83, 5, 6, 8, so Q1=5+62=5.5Q_1 = \dfrac{5 + 6}{2} = 5.5.

Upper half: 10,12,13,1510, 12, 13, 15, so Q3=12+132=12.5Q_3 = \dfrac{12 + 13}{2} = 12.5.

IQR=12.5−5.5=7\text{IQR} = 12.5 - 5.5 = 7

Methods for quartiles vary slightly between textbooks and calculators (some include the median in each half, some use a formula for the position). They can give slightly different answers for the same data, so follow the method your teacher uses.

Outliers (Year 10). A value is usually called an outlier if it's below Q1−1.5×IQRQ_1 - 1.5 \times \text{IQR} or above Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}. The five-number summary (minimum, Q1Q_1, median, Q3Q_3, maximum) is what you draw a box plot from.

Mean or median: which one to use

An outlier (a value far from the rest) pulls the mean towards it, but barely moves the median.

Five people earn $500, $550, $600, $650 and $5000 a week. The mean is 73005=$1460\dfrac{7300}{5} = \text{\textdollar}1460, which is more than four of the five people earn. The median, $600, is a better summary of a typical wage.

  • Use the mean when the data has no outliers.
  • Use the median when there are outliers or the data is skewed.
  • Use the mode for categories, or when you want the most common value.

The same goes for spread: the IQR isn't affected by outliers, but the range is.

Practice questions with answers

Try each one before you open the answer.

  1. Find the mean of 5,8,12,3,75, 8, 12, 3, 7.

    Show the answer

    5+8+12+3+75=355=7\dfrac{5 + 8 + 12 + 3 + 7}{5} = \dfrac{35}{5} = 7

  2. Find the median of 9,2,7,4,119, 2, 7, 4, 11.

    Show the answer

    In order: 2,4,7,9,112, 4, 7, 9, 11. The middle value is 77.

  3. Find the median of 6,1,8,3,10,46, 1, 8, 3, 10, 4.

    Show the answer

    In order: 1,3,4,6,8,101, 3, 4, 6, 8, 10. The middle two are 44 and 66, so the median is 4+62=5\dfrac{4 + 6}{2} = 5.

  4. Find the mode and the range of 4,7,2,7,9,3,7,24, 7, 2, 7, 9, 3, 7, 2.

    Show the answer

    Mode: 77 (it appears 3 times). Range: 9−2=79 - 2 = 7.

  5. The mean of five numbers is 88. Four of them are 6,9,46, 9, 4 and 1010. What is the fifth number?

    Show the answer

    The five numbers add to 5×8=405 \times 8 = 40. The four you know add to 2929, so the fifth is 40−29=1140 - 29 = 11.

  6. Find Q1Q_1, Q3Q_3 and the IQR of 2,5,7,8,11,13,15,18,202, 5, 7, 8, 11, 13, 15, 18, 20.

    Show the answer

    The median is 1111. Lower half: 2,5,7,82, 5, 7, 8, so Q1=5+72=6Q_1 = \dfrac{5 + 7}{2} = 6. Upper half: 13,15,18,2013, 15, 18, 20, so Q3=15+182=16.5Q_3 = \dfrac{15 + 18}{2} = 16.5. IQR=16.5−6=10.5\text{IQR} = 16.5 - 6 = 10.5.

  7. A class recorded goals scored per game: 0 goals 4 times, 1 goal 6 times, 2 goals 7 times and 3 goals 3 times. Find the mean.

    Show the answer

    ∑f=4+6+7+3=20\sum f = 4 + 6 + 7 + 3 = 20 games. ∑fx=0+6+14+9=29\sum fx = 0 + 6 + 14 + 9 = 29 goals. Mean =2920=1.45= \dfrac{29}{20} = 1.45 goals per game.

Mean, median and mode by year level

Following the Victorian Curriculum 2.0. Schools sequence topics differently, so check your course.

Year 7

Statistics

Mean, median, mode and range from lists of data and frequency tables.

Year 8

Statistics

Collecting data and samples, and how outliers change the mean and median.

Year 9

Comparing data sets

Comparing data sets using measures of centre and spread, including the range and IQR.

Year 10

Statistics

Quartiles, the interquartile range, five-number summaries, box plots and outliers.

Mean, median and mode: common questions

What's the difference between the mean, median and mode?

The mean is the average: add up the values and divide by how many there are. The median is the middle value once the data is in order. The mode is the value that appears most often.

How do you find the median when there's an even number of values?

Put the values in order and find the middle two. The median is halfway between them: add them and divide by 2. For 11, 12, 14, 15, 18, 20 the middle two are 14 and 15, so the median is 14.5.

Can there be no mode, or more than one?

Yes. If every value appears once, there's no mode. If two values tie for most common, both are modes (the data is bimodal). The mode is the only one of the three that doesn't have to be a single number.

How do you find the interquartile range?

Put the data in order and find the median. Split the data into a lower half and an upper half (leave the median out if there's an odd number of values). Q1 is the median of the lower half, Q3 is the median of the upper half, and IQR = Q3 − Q1. Textbooks and calculators vary slightly in how they find quartiles, so use your teacher's method.

What year level learns mean, median and mode?

In the Victorian Curriculum 2.0, the mean, median, mode and range are Year 7 statistics and are used again every year after. Quartiles, the interquartile range and box plots come in Years 9 and 10. Schools sequence topics differently, so check your course.

Tuterly · Years 7 to 10 maths

Got a statistics question wrong in homework?

Snap it with Tuterly. You’ll see every step of the working, then get fresh questions on the same skill until it’s mastered. Built for the Australian Curriculum by Bayside Academics.

Coming soon on iPhone. Android soon after.

Launch price: 50% off until 31 March 2027. $17.99 $8.99 a week or $59.99 $29.99 a month.

We'll email you when Tuterly launches, plus occasional maths tips and offers. Unsubscribe any time. See our privacy policy.

Free to download · Years 7 to 10 maths · On iPhone. Android coming soon
Or try it free now with your own question →