MathsAverages & Ratios

Average
calculator.

Paste your numbers to get their average, the median and mode, and the score you need next to hit a target.

How it's worked out

The average most people mean is the arithmetic mean. You add the values and divide by how many there are.

x‾\displaystyle \bar{x}=x1+x2+⋯+xnn\displaystyle {}= \frac{x_1 + x_2 + \cdots + x_n}{n}

Here x‾\bar{x} (said "x bar") is the mean, each xx is one of your values and nn is the count. A blank cell is skipped, but a zero is a real value. It adds nothing to the sum and still adds one to the count.

The median is the middle value once the list is sorted. With an even count, it is halfway between the two middle values. The mode is the value that shows up most often. A list can have two modes, or none if no value repeats.

To hit a target, the tool turns the formula around. Say you have nn values and kk more to come. All of them together must add up to the target times n+kn + k. Whatever is missing from your current sum has to come from the new values.

needed\displaystyle \text{needed}=target×(n+k)−sumk\displaystyle {}= \frac{\text{target} \times (n + k) - \text{sum}}{k}

When every value is a whole number, the mean is a fraction. The tool shows it exactly as well. For the twelve test scores below that is 2453\frac{245}{3}, which is 81.67 to two places.

Worked examples

Jordan's twelve test scores

Jordan has twelve scores out of 100: 78, 85, 92, 65, 88, 73, 95, 82, 69, 77, 85, 91. They add up to 980. Divide by 12 and the mean is 81.67. Sorted, the middle two scores are 82 and 85, so the median is 83.5. The only score that repeats is 85, so that is the mode.

Jordan wants an average of 82 after one more test. Thirteen tests at 82 make 1066. Jordan has 980, so the next test needs 86. A goal of 85 with two tests left would need an average of 105 on each. That is past 100, so it can't happen.

Open this example in the tool

A week of commutes with one bad day

Priya times her drive to work for a week, in minutes: 22, 25, 24, 23, 26, 24, 61. The mean is 29.29 minutes, but the median is 24 minutes. The 61 is past the outlier fence at 28.5. Leave it out and the mean drops to 24 minutes. If Priya wants to know how long a normal drive takes, the median is the better answer. If she wants the total time for the week, she needs the mean.

Open this example in the tool

Three quizzes and a goal of 90

Sam has quiz scores of 84, 79, 91, a mean of 84.67. To average 90 with one quiz left, Sam would need 106, which is more than the quiz is worth. With two quizzes left, each needs 98. With three left, each needs 95.33. The what-if list in the tool shows this whole pattern at once.

Open this example in the tool

Reading your result

The mean is the balance point of your list. If you stacked your values on a ruler, it would balance at the mean. That is why one far-off value moves it so much. The median only cares about the middle, so it barely moves.

Compare the two. If they are close, your list is fairly even, and either one is a fair summary. If the mean is well above the median, a few high values are pulling it up. That is common with prices, incomes and travel times. If the mean is well below, look for a low value, such as a zero or a missed test.

The tool flags a value as an outlier when it sits more than 1.5 times the interquartile range beyond the first or third quartile. The interquartile range is the width of the middle half of your values. This is Tukey's rule, as described in the NIST/SEMATECH e-Handbook, section 7.1.6. A value past 3 times that range is called far out. An outlier is a reason to double-check a number, not proof that it is wrong.

When you set a target, read the needed value against the top score. In Jordan's case, 86 on a 100-point test is hard but possible. The line on the chart shows how the average would climb if Jordan scored exactly that.

Common mistakes

  • Leaving a zero in by accident. A zero that stands for a missing test is not a score. With 88, 91, 0, 90, 87 and 92, the mean is 74.67. Without the zero it is 89.6.
  • Averaging two averages. Jordan's 12 tests average 81.67 and Sam's 3 quizzes average 84.67. Their plain average is 83.17, but all 15 scores together average 82.27. The bigger group should count for more. Use the weighted average calculator when group sizes differ.
  • Using the mean for skewed lists. House prices and pay are usually reported as medians for this reason. A few very large values make the mean look higher than what a typical person sees.
  • Rounding too early. Round only the final answer. If you round each value first, the small errors add up across a long list.
  • Forgetting values still to come. A target average counts every value, including future ones. Set how many are left before you read the needed score.

Questions people ask

In everyday use, yes: "the average" almost always means the arithmetic mean. Strictly, the median and the mode are averages too, which is why the tool shows all three. When people quote an average house price or salary, they often mean the median.

Sources