Mean, Median, Mode, Range Calculator

Enter a list of numbers to find the mean, median, mode and range, with every step explained: sorting, adding, finding the middle and counting repeats.

Mean, median, mode and range calculator
Mean

    Step by step

    Separate numbers with commas, spaces or new lines. Negative numbers and decimals are fine. Use a dot for decimals, because commas separate the numbers.

    On this page

    A mean, median, mode and range calculator finds the four most common summary values of a list of numbers and explains each one step by step. The mean is the average, the median is the middle value, the mode is the most frequent value and the range is the gap between the largest and smallest values. The calculator sorts your numbers, shows the sum and division for the mean, points to the middle position for the median, counts how often values repeat for the mode, and subtracts for the range.

    For example, for the numbers 3, 7, 5, 13, 20, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29, the mean is 22, the median is 23, the mode is 23 and the range is 53.

    How to use the calculator

    1. Type or paste your numbers into the box, separated by commas, spaces or new lines.
    2. Use a dot for decimal points, such as 2.5. Negative numbers like −3 are fine.
    3. Press Calculate to see the four results and a step-by-step explanation you can follow or copy into your homework.

    How to find the mean

    The mean, often just called the average, is found by adding all the numbers together and dividing by how many numbers there are.

    Mean = sum of values ÷ number of values

    For the test scores 72, 85, 90, 85 and 68, the sum is 400 and there are 5 scores, so the mean is 400 ÷ 5 = 80. The mean uses every value, which makes it a good summary when the data is fairly balanced, but it can be pulled a long way by one unusually high or low number.

    How to find the median

    The median is the middle value when the numbers are arranged in order.

    1. Sort the numbers from smallest to largest.
    2. If there’s an odd number of values, the median is the one in the middle. With n values, it’s in position (n + 1) ÷ 2.
    3. If there’s an even number of values, the median is the average of the two middle values.

    Sorted, the test scores are 68, 72, 85, 85, 90. There are five, so the median is the 3rd value: 85. For the ten numbers 2, 2, 3, 4, 5, 5, 6, 8, 8, 9, the median is the average of the 5th and 6th values: (5 + 5) ÷ 2 = 5.

    How to find the mode

    The mode is the value that appears most often. In the test scores, 85 appears twice and every other score once, so the mode is 85. A list can have:

    • One mode, as in the example above.
    • Two modes (bimodal), when two values tie for the highest count.
    • Several modes (multimodal), such as 2, 5 and 8 in the list 2, 2, 3, 4, 5, 5, 6, 8, 8, 9.
    • No mode, when every value appears exactly once.

    The mode is the only one of the four that also works for non-numerical data, such as the most popular shoe size or favourite colour.

    How to find the range

    The range measures how spread out the numbers are. Subtract the smallest value from the largest.

    Range = largest value − smallest value

    For the test scores, the range is 90 − 68 = 22. When the smallest value is negative, be careful with the signs: the range of −3, −3, 2.5 and 7 is 7 − (−3) = 10.

    Worked example

    Take the 15 numbers 3, 7, 5, 13, 20, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29.

    1. Sort: 3, 5, 7, 12, 13, 14, 20, 23, 23, 23, 23, 29, 39, 40, 56.
    2. Mean: the sum is 330, and 330 ÷ 15 = 22.
    3. Median: there are 15 values, so the median is the 8th: 23.
    4. Mode: 23 appears 4 times, more than any other value, so the mode is 23.
    5. Range: 56 − 3 = 53.

    Mean vs median: which should you use?

    When the data is roughly symmetrical, the mean and median are close, and the mean is usually preferred because it uses every value. When the data contains outliers or is skewed, the median gives a better picture of a typical value.

    Imagine six salaries, in thousands: 30, 32, 35, 38, 40 and 250. The mean is about 70.8, but five of the six people earn 40 or less. The median, 36.5, is much more representative. That’s why house prices and incomes are usually reported as medians.

    MeasureBest forWeakness
    MeanBalanced data; using every valueDistorted by outliers
    MedianSkewed data, incomes, pricesIgnores the size of extreme values
    ModeMost common choice; categoriesMay not exist or may not be unique
    RangeQuick sense of spreadDepends only on the two extremes

    Finding a missing value from the mean

    If you know the mean you want, you can work backwards. Suppose your first four test scores average 78 and you want an average of 80 over five tests. The five scores must add up to 5 × 80 = 400, and the first four add up to 4 × 78 = 312, so you need 400 − 312 = 88 on the fifth test. The same method works for any target average: multiply the target by the total count and subtract the sum you already have.

    Where these measures are used

    • School: teachers report class averages, and students use the mean to track their grades.
    • Sport: batting averages, average points per game and the range of finishing times.
    • Weather: average daily temperatures and the range between the hottest and coldest days.
    • Shopping and business: the most popular size (the mode) helps shops decide what to stock, and the median sale price summarises the housing market.
    • Health: average heart rate, median recovery time and the range of normal test results.

    Beyond the range: other measures of spread

    The range is easy to calculate, but it only looks at the two most extreme values. One very high or low number can make it misleading. The interquartile range, which looks at the spread of the middle half of the data, and the standard deviation, which measures the typical distance from the mean, give a more reliable picture. For a full set of these, including quartiles, variance and outliers, use a statistics calculator or a standard deviation calculator after you’ve found the basics here.

    Mean, median and mode of grouped data

    Sometimes data comes in a frequency table rather than a list, such as “3 students scored 70, 5 scored 80, 2 scored 90”. To use this calculator, type each value as many times as it occurs: 70, 70, 70, 80, 80, 80, 80, 80, 90, 90. The mean is then (3 × 70 + 5 × 80 + 2 × 90) ÷ 10 = 79, the median is 80, the mode is 80 and the range is 20.

    Common mistakes

    • Finding the median without sorting the numbers first.
    • Forgetting to average the two middle numbers when there’s an even count.
    • Dividing by the wrong count when finding the mean, especially when some values repeat. Every repeated value counts separately.
    • Saying the mode is zero when no value repeats. The correct answer is that there is no mode.
    • Giving the range as two numbers, such as “3 to 56”. The range is a single number: the difference, 53.

    Tips

    • Cross off numbers from each end of the sorted list to find the median by hand.
    • Tally repeated values to find the mode quickly.
    • Check your mean is between the smallest and largest values. If it isn’t, there’s a mistake.
    • Report the range alongside the mean or median to show how spread out the data is.

    Related calculations

    Two other tools work well alongside this one: the average calculator, to find the average or weighted average of any numbers, and the z-score calculator, to calculate z-scores and percentiles.

    Frequently asked questions

    The mean is the average (sum ÷ count), the median is the middle value of the sorted list, and the mode is the value that appears most often.

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

    Yes. If two values tie for the most appearances, the data is bimodal; with more ties it's multimodal. If no value repeats, there's no mode.

    No. The range is the largest value minus the smallest, so it's always zero or positive.

    Use the mean for balanced data, the median when there are outliers or the data is skewed, and the mode for the most common value or category.

    In everyday use, yes: average usually means the arithmetic mean. In statistics, average can also refer to the median or mode.

    The mean, median and mode all equal that number, and the range is 0.

    An outlier can shift the mean a lot, but the median hardly moves. That's why the median is preferred for skewed data like incomes.

    Yes. Use a dot for decimals, such as 2.5, and a minus sign for negatives, such as −3.

    It gives a quick idea of how spread out the data is. A small range means the values are close together.

    Up to 50,000. The step-by-step working shows every value for short lists and a summary for long ones.