Skip to content

Average Calculator - Mean, Median, Mode

Calculate mean (average), median, and mode for any set of numbers with detailed statistics

Calculator Details

Mean (Average):3See results ↓

Numbers separated by commas, spaces or new lines. With spaces between values, 1,000 is read as one thousand.

Your Results

Mean (Average): 3

Mean (Average)

3

Average of 5 numbers

Central Tendency

Mean

3

Median

3

Mode

No mode

Data Summary

Count

5

Sum

15

Range

4

Midrange

3

(smallest + largest) ÷ 2

Min/Max Values

Minimum

1

Maximum

5

Interquartile Range

2

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

How often each value appears

How often each value appears

Detailed Breakdown

Frequency of each value (most frequent first)
ValueFrequencyShare
1120%
2120%
3120%
4120%
5120%

How This Calculator Works

How Average, Median, and Mode Are Calculated

These three measures of central tendency each describe the "typical" value in a dataset in different ways.

Mean (Average)

The mean is the arithmetic average - the sum of all values divided by how many values there are.

Mean = Sum of all values / Count of values

Your calculation:

Sum: 15
Count: 5

Mean = 15 / 5
Mean = 3

Median

The median is the middle value when all numbers are arranged in order. If there's an even count, it's the average of the two middle values.

Sorted values: [1, 2, 3, 4, 5]
Median = 3

Mode

The mode is the value that appears most frequently. A dataset can have one mode, multiple modes, or no mode at all.

Mode = No mode (all values appear once)

Quartiles and IQR

Quartiles use the inclusive method (the same as Excel QUARTILE.INC): Q1 sits at position 0.25 × (n − 1) in the sorted list and Q3 at 0.75 × (n − 1), interpolating between neighbours.

Q1 = 2, Q3 = 4
IQR = 4 − 2 = 2

When to Use Each Measure

  • Mean: Best for normally distributed data without outliers
  • Median: Better when data has outliers or is skewed (e.g., house prices, salaries)
  • Mode: Useful for categorical data or finding the most common value

Frequently Asked Questions

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

Mean is the arithmetic average (sum ÷ count). Median is the middle value when data is sorted. Mode is the most frequently occurring value. For example, in [1, 2, 2, 3, 100], the mean is 21.6, median is 2, and mode is 2. The mean is affected by the outlier (100), while median and mode are not.

Which average should I use?

Use the mean for symmetrical data without outliers (like test scores). Use the median when data has outliers or is skewed (like salaries or house prices - a few very high values would skew the mean). Use the mode for categorical data or to find the most common value (like shoe sizes).

What does it mean when there is no mode?

There is no mode when all values in the dataset appear with the same frequency (typically once each). For example, [1, 2, 3, 4, 5] has no mode because each number appears exactly once. This is common in datasets with many unique values.

Can there be more than one mode?

Yes! A dataset can be bimodal (two modes), trimodal (three modes), or multimodal (multiple modes). This happens when two or more values tie for the highest frequency. For example, [1, 1, 2, 3, 3, 4] has modes of both 1 and 3, making it bimodal.

What is the interquartile range (IQR)?

The IQR is the range of the middle 50% of your data. It's calculated as Q3 (75th percentile) minus Q1 (25th percentile). The IQR is useful for identifying outliers - values below Q1 - 1.5×IQR or above Q3 + 1.5×IQR are typically considered outliers.

How do I calculate average in Excel?

In Excel, use =AVERAGE(range) for mean, =MEDIAN(range) for median, and =MODE.SNGL(range) for mode. For example, =AVERAGE(A1:A10) calculates the mean of cells A1 through A10. Use =MODE.MULT(range) if you want to find all modes in a multimodal distribution. =QUARTILE.INC(range, 1) and (range, 3) give the same quartiles as this calculator.

How are quartiles calculated here?

With the inclusive method used by Excel QUARTILE.INC and PERCENTILE.INC: sort the values, then Q1 is at position 0.25 × (n − 1) and Q3 at 0.75 × (n − 1), counting from 0 and interpolating between the two neighbouring values. For 1 to 10 that gives Q1 = 3.25 and Q3 = 7.75. Some textbooks use the median of each half instead, which can give slightly different quartiles.

How many decimals does the calculator show?

The sums and averages are worked out with exact decimal arithmetic, so 0.1 + 0.2 averages to exactly 0.15 rather than a floating-point approximation. An average that never ends, like 14 ÷ 6, is shown to 10 significant digits (2.333333333).

What is the difference between the mean and a weighted average?

The mean gives every value the same weight. A weighted average multiplies each value by its weight, adds the results and divides by the total weight, which is how course grades are usually worked out. This calculator gives the plain (unweighted) mean; use the grade calculator for weighted averages.

What is the midrange?

The midrange is halfway between the smallest and largest values: (min + max) ÷ 2. For 1, 2, 3, 4, 5 it is 3, the same as the mean, but a single extreme value moves it a lot: for 1, 2, 3, 4, 50 the midrange is 25.5 while the median stays at 3. It is quick to work out but the least robust of the averages.

Mean, median, mode, range, midrange, sum, count and inclusive quartiles (Excel QUARTILE.INC) of the numbers you enter, with exact decimal arithmetic. Not included: weighted, geometric or harmonic means, and grouped (frequency-table) data.

Average Calculator: Mean, Median, Mode and When Each One Misleads

By FindMySum · Last reviewed

An average calculator answers a simple question, what is a typical value in this list, but "average" has three common meanings and they don't always agree. This calculator gives all three: the mean (add everything up and divide by how many there are), the median (the middle value once the list is sorted) and the mode (the value that turns up most often). It also reports the sum, count, minimum, maximum, range, first and third quartiles and the interquartile range, plus a frequency table. Seeing them side by side is the quickest way to tell whether one number really does summarise your data.

How each measure is calculated

Mean = sum of the values ÷ number of values. It uses every value, which makes it sensitive: change any one number and the mean moves. It is the balance point of the data, the place where the distances to values above it exactly cancel the distances to values below it.

Median = the middle value of the sorted list. With an odd count it is the value in the middle position; with an even count it is halfway between the two middle values. Half the data lies at or below it and half at or above it, and it ignores how far away the extreme values are.

Mode = the most frequent value. A list can have one mode, several (when values tie for most frequent) or none at all, when every value appears the same number of times. The calculator reports "no mode" in that last case rather than listing every value.

Range = maximum − minimum, the full spread of the data.

Quartiles split the sorted data into four parts. The calculator uses the inclusive method found in Excel's QUARTILE.INC: the first quartile sits at position 0.25 × (n − 1) in the sorted list, counting from zero, and the third quartile at 0.75 × (n − 1), interpolating when the position falls between two values. The interquartile range (IQR) is Q3 − Q1, the spread of the middle half of the data. The NIST e-Handbook notes that several percentile definitions are in use, so a statistics package or a textbook may give slightly different quartiles for small lists. None of them is wrong; they are different conventions, and the differences shrink as the list grows.

The arithmetic is done in exact decimals, so a list like 0.1, 0.2 averages to exactly 0.15. Averages that never terminate are rounded for display.

Worked example: the calculator's defaults

The calculator opens with the list 1, 2, 3, 4, 5.

  1. Count: 5 values. Sum: 1 + 2 + 3 + 4 + 5 = 15.
  2. Mean: 15 ÷ 5 = 3.
  3. Median: the list is already sorted and has an odd count, so the median is the third value, 3.
  4. Mode: every value appears once, so there is no mode. The frequency table shows each value at 20% of the list.
  5. Range: 5 − 1 = 4.
  6. Quartiles: n − 1 = 4, so Q1 is at position 0.25 × 4 = 1 (the second value, 2) and Q3 at position 0.75 × 4 = 3 (the fourth value, 4). The IQR is 4 − 2 = 2.

Because the list is evenly spaced and symmetrical, the mean and median are identical. That agreement is the signal that either one is a fair summary.

The midrange

The midrange is the point halfway between the smallest and largest values, (min + max) ÷ 2. For the default 1, 2, 3, 4, 5 it is (1 + 5) ÷ 2 = 3, the same as the mean and median because the numbers are evenly spread. It uses only the two extremes, so one unusual value moves it as much as the range: change the 5 to 50 and the midrange jumps to 25.5 while the median stays at 3. Weather records use it for the daily mean temperature, (high + low) ÷ 2.

When the mean and median disagree

Now take a list that isn't symmetrical, such as seven commute times in minutes: 42, 45, 45, 48, 51, 55 and 160, where the last one was the day of a highway closure. The calculator gives:

MeasureResult
Sum446
Mean63.71428571
Median48
Mode45
Range118
Q1 / Q345 / 53
IQR8

The mean says a typical commute is almost 64 minutes, yet six of the seven trips took 55 minutes or less. The single long trip pulls the mean up by about 16 minutes, while the median barely notices it. Remove the 160 and the calculator gives a mean of 47.66666667 and a median of 46.5: the mean drops by 16 minutes, the median by a minute and a half.

A common rule of thumb, from John Tukey's work on box plots, flags a value as a possible outlier if it lies more than 1.5 × IQR beyond a quartile. Here 1.5 × 8 = 12, so anything above 53 + 12 = 65 minutes stands out, and 160 clearly does. An outlier isn't automatically an error. It might be the most important value in the list. But it is a reason to report the median, or to report the mean with and without it.

This is why incomes and house prices are usually summarised by the median: a small number of very high values lift the mean well above what most people earn or pay.

What the calculator doesn't do

  • It gives every value equal weight. Course marks where a final exam counts for 40% need a weighted average; the grade calculator handles that.
  • It doesn't measure spread around the mean. The range and IQR describe spread, but the usual measure, the standard deviation, lives in the standard deviation calculator.
  • It doesn't judge your data. A typo such as 4,80 instead of 480 gives a perfectly computed but meaningless average. Check the sorted list and the minimum and maximum before trusting the result.
  • The mode of continuous measurements is rarely meaningful. With values like 12.37 and 12.41, almost nothing repeats exactly. Grouping values into ranges is the usual fix.

Using the result

Report the mean when the data is roughly symmetrical and has no extreme values, and the median when it is skewed or contains outliers. If the two are close, either will do; if they are far apart, that gap is itself worth reporting. For changes between two averages, the percentage calculator gives the percentage increase or decrease, and for school marks the GPA calculator converts averages to a grade point scale.

More questions

Is the average of two averages the same as the overall average?

Only if both groups have the same number of values. If one class of 10 students averages 80 and another class of 30 averages 70, the combined average is not 75: it is (10 × 80 + 30 × 70) ÷ 40 = 72.5, because the larger class carries more weight. To combine averages correctly, multiply each by its count, add, and divide by the total count, or paste all the raw values into the calculator.

How do I work out the score I need to reach a target average?

Multiply the target by the number of values you will have in total, then subtract the sum of the values you already have. With scores of 72, 85 and 78 (sum 235) and a target average of 80 over four tests, you need 4 × 80 − 235 = 85 on the fourth. If the answer is above the maximum possible score, the target can't be reached.

What happens to the mean and median if I add the same number to every value?

Both shift by exactly that amount, and so does the mode, while the range and interquartile range stay the same. Multiplying every value by a number multiplies the mean, median, mode, range and IQR by that number. This is why converting a list from Celsius to Fahrenheit, or from dollars to cents, doesn't change the shape of the data, only its scale and position.

Can I paste a column of numbers from a spreadsheet?

Yes. The calculator accepts numbers separated by commas, spaces, semicolons or new lines, so a pasted column works as it is. When the values are separated by spaces or new lines, a number written with thousands separators, like 1,250, is read as one number; if you separate values with commas only, leave the thousands separators out.

Why is the median sometimes a number that isn't in my list?

With an even number of values there is no single middle value, so the median is the halfway point between the two middle ones. The list 42, 45, 45, 48, 51, 55 has six values; the middle two are 45 and 48, so the median is 46.5. The same thing happens with quartiles, which are interpolated between neighbouring values.

When is the mode more useful than the mean?

When the values are categories or sizes rather than measurements on a smooth scale. A shoe store cares that size 9 sells most often, not that the average size sold is 8.7, which no customer wears. The mode is also the only one of the three averages that makes sense for non-numeric data such as the most common answer in a survey.

When is the midrange useful?

When only the extremes are known, such as a day's high and low temperature: the midrange (high + low) ÷ 2 is the traditional daily mean temperature. For most data sets the median or mean describes the centre better, because the midrange depends on just two values.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy