HomeFinanceAverage Formula: How to Calculate the Mean With Examples

Average Formula: How to Calculate the Mean With Examples

The average formula is simple: add up all the values, then divide by how many values there are. Statisticians call this result the arithmetic mean. It is the number most people mean when they talk about an average test score, an average bill or an average month.

This guide walks through the formula step by step, with worked examples using test scores and monthly spending in US dollars. It also compares the mean with the median and the mode, shows how one extreme value can pull the mean, and explains why averaging percentages often gives the wrong answer. The same math works in any currency.

The Average Formula in One Line

The arithmetic mean is the sum of the values divided by the count of values:

Average = (sum of all values) ÷ (number of values)

In statistics notation, the sample mean is written as x̄ = Σx / n, where Σx is the sum of the values and n is how many there are. The NIST/SEMATECH e-Handbook of Statistical Methods defines the mean as the sum of the data points divided by the number of data points.

To use the formula:

  1. List every value you want to average.
  2. Add them together to get the sum.
  3. Count how many values you have.
  4. Divide the sum by the count.

Count every value, including zeros. A month with $0 of spending is still a month, and leaving it out raises the average.

Worked Examples of the Average Formula

Two everyday cases show how the steps play out. Both use round numbers so the arithmetic is easy to follow.

Average formula example with five uneven wooden block stacks levelled into five equal stacks

Example 1: Test scores

A student scores 80, 90, 70, 85 and 75 on five tests.

  • Sum: 80 + 90 + 70 + 85 + 75 = 400
  • Count: 5
  • Average: 400 ÷ 5 = 80

The average score is 80. You can also run the formula backwards. To reach an average of 82 over six tests, the student needs a total of 82 × 6 = 492. That means a sixth score of 492 − 400 = 92. An average of 90 would need a sixth score of 140, which is not possible on a 100-point test.

Example 2: Monthly grocery spending in USD

A household spends $250, $300, $300, $350 and $300 on groceries over five months.

  • Sum: $250 + $300 + $300 + $350 + $300 = $1,500
  • Count: 5
  • Average: $1,500 ÷ 5 = $300 a month

The mean is often the first step in other calculations. For example, the standard deviation formula starts from the mean and measures how far each value sits from it.

Mean vs Median vs Mode

The mean is one of three common measures of the centre of a data set. Penn State’s STAT 200 course notes define the median as the middle of the ordered values and the mode as the value that occurs most often. When a data set has an even number of values, the median is the average of the two middle values.

Wooden block stacks sorted by height with one tall outlier, comparing mean, median and mode

The table uses the five months of grocery spending above, sorted as $250, $300, $300, $300, $350.

Measure How to find it Grocery example Effect of extreme values
Mean Sum ÷ count $1,500 ÷ 5 = $300 Strong: every value moves it
Median Middle value once sorted $300 (third of five) Weak: based on order, not size
Mode Most frequent value $300 (appears three times) Weak: based on frequency

Here all three measures agree at $300 because the values are close together. That changes as soon as one value is far from the rest.

How Outliers Pull the Mean

Suppose a sixth month brings a large one-off grocery bill, so grocery spending that month reaches $1,500.

  • New sum: $1,500 + $1,500 = $3,000
  • New count: 6
  • New mean: $3,000 ÷ 6 = $500
  • New median: the middle two values are $300 and $300, so the median stays $300
  • Mode: still $300

One month moved the mean from $300 to $500, a rise of about 67% (rounded) using the percentage change formula. Yet only one of the six months is above $500. The mean no longer describes a typical month.

The NIST handbook states that extreme values in the tails distort the mean but not the median, because the median is based on ranks. Penn State’s notes add that the mean is pulled in the direction of the skew. A practical check is to compute both. If the mean and median are far apart, report both, or look for the outlier before relying on the average formula alone.

The Average of Percentages Pitfall

A common mistake is to average percentages that are based on groups of different sizes. Take two classes:

  • Class A: 10 students, 90% pass, so 9 students pass
  • Class B: 40 students, 50% pass, so 20 students pass

The simple average of the two pass rates is (90% + 50%) ÷ 2 = 70%. That figure is wrong for the school as a whole. The correct overall rate goes back to the counts: 29 passes out of 50 students, which is 29 ÷ 50 = 58%.

The gap of 12 percentage points appears because the small class counts as much as the large one in the simple average. To avoid it:

  1. Turn each percentage back into a count. Our guide on how to calculate a percentage of a number covers this step.
  2. Add the counts and add the group sizes.
  3. Divide total count by total size, then convert to a percentage.

A percentage calculator can check the final step. Averaging percentages directly is only safe when every group is the same size. Otherwise, the right tool is a weighted average, where each rate counts in proportion to its group.

When the Simple Mean Is the Right Choice

The average formula uses every value, which makes it useful for totals and budgets. If a household averages $300 a month on groceries across a full year, multiplying by 12 gives the yearly total of $3,600. The median cannot do that.

The NIST handbook notes that the mean is an optimal estimator when the data are normally distributed. For data with extreme values in the tails, it says the median gives a better estimate of location. In plain terms, the mean suits values that cluster evenly around the centre. The median suits data with a few very large or very small values.

Conclusion

The average formula divides the sum of the values by the count of values. It works the same way for test scores, monthly bills or any currency. Before trusting the result, check two things. First, compare the mean with the median to spot outliers. Second, never average percentages from groups of different sizes; go back to the counts instead. With those checks, the average formula gives a clear and honest summary of a data set.

RELATED ARTICLES

Most Popular