Statistics formula

Average (Mean) Formula

The mean, the figure most people intend when they say "average", is the total of a set of numbers shared equally among them. In a job search it summarises advertised salaries, hours worked per week or scores, as long as no single value is far from the rest.

Formula

mean = sum of the values ÷ number of values

mean
the arithmetic average: the value each item would have if the total were shared out equally
sum of the values
every value in the set added together
number of values
how many values were added, including any zeros

Average and Median Calculator

What it means

Think of the mean as levelling. If five adverts quote five different salaries, the mean is the single salary that, paid five times, would cost the same in total. That makes it the right summary whenever the total is what matters: average weekly hours across a month give the month's hours when multiplied back, and average monthly pay across a year gives the year.

The numbers must measure the same thing in the same unit. Annual salaries can be averaged with annual salaries, but an hourly rate, a monthly figure and a yearly one have to be converted first. Where an advert gives a range, decide on one rule, such as the midpoint or the lower end, and use it for every advert in the set.

Every value pulls on the mean in proportion to its distance from the rest, so one extreme figure can drag it a long way. A single director-level salary among six mid-level adverts lifts the mean above what the other five employers are paying. When you see that, report the median as well, or instead. A gap between mean and median is itself useful: it tells you the set is lopsided.

Read a mean alongside the count and the spread. An average of 40,000 from three adverts is weak evidence; from thirty it is firmer. Two sets can also share a mean while one is tightly bunched and the other runs from very low to very high, so note the lowest and highest values before you quote the average in a pay discussion.

Other forms

Total from a mean
sum of the values = mean × number of values
Value needed to reach a target mean
missing value = target mean × number of values − sum of the known values
New mean after adding one value
new mean = (old mean × old count + new value) ÷ (old count + 1)
Mean of two groups combined
combined mean = (mean A × count A + mean B × count B) ÷ (count A + count B)

Worked example

You collect the salaries quoted in six adverts for office manager roles in your city: 31,000, 33,500, 34,000, 36,000, 39,500 and 66,000. The last one is for a much larger organisation.

  1. Sum: 31,000 + 33,500 + 34,000 + 36,000 + 39,500 + 66,000 = 240,000
  2. Count: 6 values
  3. Mean: 240,000 ÷ 6 = 40,000
  4. Without the 66,000 advert: 174,000 ÷ 5 = 34,800
  5. Effect of that one advert: 40,000 − 34,800 = 5,200

Result: The mean of the six adverts is 40,000, yet five of the six pay less than that; leaving out the 66,000 role gives 34,800, so one advert has raised the average by 5,200.

Where it is used

Your hours vary from week to week and an application form asks for "average weekly hours" in your current job. Over the last eight weeks you worked 32, 36, 28, 40, 35, 31, 38 and 24 hours. The total is 264 and the mean is 264 ÷ 8 = 33 hours. That is a fair answer because total hours are what the question is really about, and no single week is wildly out of line. The same figure feeds the hourly to annual formula if you want to estimate a year of pay from an hourly rate.

Common mistakes

  • Averaging percentages or rates that rest on groups of different sizes, such as two response rates from batches of 20 and 60, instead of going back to the raw counts.
  • Quoting the mean of a set with one extreme value as if it described a typical member of the set.
  • Dividing by the wrong count, usually by leaving out a zero value or by counting a range such as "30,000 to 34,000" as two entries.
  • Mixing units, for example adding hourly rates to annual salaries, or gross figures to net ones, before dividing.
  • Averaging averages: the mean of two group means equals the overall mean only when the groups are the same size.

Questions and answers

Is "average" always the mean?

In everyday speech it usually is, but average can also refer to the median or the mode. When a salary report or an employer quotes an average, ask which one, because the mean and the median of pay data can be far apart.

How do I average salaries that are advertised as ranges?

Turn each range into one number by the same rule every time. The midpoint is common and the lower end is more cautious. Then average those numbers, and say which rule you used if you quote the result.

Should zeros be included?

Yes, if the zero is a real observation. A week in which you worked no hours is part of your average weekly hours. Leave a value out only when it is missing or unknown, and reduce the count to match.

When is the mean a better choice than the median?

When you care about the total, or when the values are fairly evenly spread with no outliers. Budgeting from average monthly income is a case for the mean, because twelve times the mean gives the true yearly amount and twelve times the median does not.