How to Calculate Average: Mean, Median, and Mode

Advertisement
Ad space (728×90 / Responsive)

Calculate the mean, median, and sum of any set of numbers. Enter values separated by commas for instant results.

Open Average Calculator
Advertisement
Ad space (336×280 / Responsive)

"Average" is one of those everyday words that hides a surprising amount of nuance. Most of the time it means the arithmetic mean — add everything up and divide by the count — but there are two other common averages, the median and the mode, and choosing the wrong one can paint a badly misleading picture. This guide covers how to calculate each one, when each matters, how outliers distort the mean, and how weighted averages work when not every value counts equally.

Three kinds of average

There are three measures of central tendency you will encounter, each answering a slightly different question:

  • Mean — the arithmetic average. Sum of values divided by count. The "default" average.
  • Median — the middle value when the data is sorted. The "typical" value, resistant to outliers.
  • Mode — the most frequently occurring value. The "most common" value, useful for categories.

They agree on symmetric, well-behaved data and diverge on skewed or outlier-heavy data — which is exactly when the choice between them starts to matter.

How to calculate the mean (arithmetic mean)

The mean is the most common average. The formula is:

Mean = (Sum of values) ÷ (Count of values)

Add all the numbers, divide by how many there are.

Worked example: the mean of 6, 8, 10, 12, and 14.

  • Sum: 6 + 8 + 10 + 12 + 14 = 50
  • Count: 5 values
  • Mean: 50 ÷ 5 = 10

The mean is 10. For anything beyond a handful of values, an average calculator handles the summing and dividing instantly, which is handy for long lists or when you are computing several averages in parallel.

How to calculate the median

The median is the middle value of a sorted list. To find it:

  • Sort the values from lowest to highest.
  • If the count is odd, the median is the single middle value.
  • If the count is even, the median is the mean of the two middle values.

Worked example (odd count): median of 3, 1, 7, 5, 9.

  • Sort: 1, 3, 5, 7, 9
  • Count is 5 (odd), so the median is the third value: 5

Worked example (even count): median of 4, 2, 8, 6.

  • Sort: 2, 4, 6, 8
  • Count is 4 (even), so take the mean of the two middle values: (4 + 6) ÷ 2 = 5
  • Median: 5

How to calculate the mode

The mode is the value that appears most often. A dataset can have one mode (unimodal), two modes (bimodal), or no mode at all if every value appears exactly once.

Worked example: mode of 2, 4, 4, 4, 7, 8, 8, 9.

  • 4 appears three times, 8 appears twice, every other value once
  • Mode: 4

The mode is the only average that works for non-numeric (categorical) data. If you survey people's favorite color, you cannot take a mean or median — but you can report the most common answer, which is the mode.

When each average matters

The three averages answer different questions, and the shape of your data determines which one is most honest:

  • Use the mean for symmetric distributions — bell-shaped data without strong outliers, like repeated measurements of the same quantity or test scores in a well-designed exam. Here the mean, median, and mode cluster together and the mean makes full use of every data point.
  • Use the median for skewed distributions or data with outliers — income, home prices, net worth, response times. A few extreme values pull the mean well away from the typical case, while the median stays put.
  • Use the mode for categorical data or when you specifically want the most common value — survey responses, product sizes, the most popular option.

Reporting only the mean when the data is skewed is a common way statistics mislead. "The average salary is $90,000" sounds impressive until you learn the median is $58,000 because a handful of very high earners pulled the mean up.

How outliers distort the mean

Because the mean uses the numerical value of every data point, a single extreme value shifts it toward that extreme. The median, by contrast, depends only on rank, so it barely moves.

Worked example: consider the dataset 1, 2, 3, 4, 100.

  • Sum: 1 + 2 + 3 + 4 + 100 = 110
  • Count: 5
  • Mean: 110 ÷ 5 = 22
  • Sorted: 1, 2, 3, 4, 100
  • Median: 3 (the middle value)

The mean is 22, but four of the five values are below 10. The single value 100 inflated the mean to more than seven times the typical value. The median of 3 is a far better description of the "typical" data point. This is exactly why household income and housing prices are nearly always reported as medians, not means.

Removing or capping outliers is sometimes legitimate (measurement errors, data-entry mistakes), but doing so changes the mean dramatically and should be done transparently. An average calculator that reports all three measures side by side makes this kind of comparison immediate.

Weighted averages

A weighted average accounts for the fact that not every value counts equally. Each value is multiplied by a weight representing its importance, the products are summed, and the result is divided by the total weight:

Weighted average = Σ(value × weight) ÷ Σ(weight)

Worked example: GPA. A student takes three courses with these grades and credit hours:

  • Math (4 credits): grade point 3.7
  • History (3 credits): grade point 4.0
  • Lab (1 credit): grade point 3.0

Multiply each grade point by its credits: 3.7×4 = 14.8, 4.0×3 = 12.0, 3.0×1 = 3.0. Sum: 14.8 + 12.0 + 3.0 = 29.8. Total credits: 4 + 3 + 1 = 8. Weighted average: 29.8 ÷ 8 = 3.725.

Without weighting, the simple mean would be (3.7 + 4.0 + 3.0) ÷ 3 = 3.57 — quite different, because the lab's low grade counts equally despite being worth only one credit. Weighting matters whenever the items contribute unequally, which is the case in GPAs, survey results, price indices, and almost any aggregated performance score.

Other averages worth knowing

  • Geometric mean: the nth root of the product of n values. Used for growth rates and percentages, because arithmetic means of rates mislead. The average of +50% and −50% is 0% arithmetically but actually loses money geometrically — the geometric mean captures that.
  • Harmonic mean: the reciprocal of the arithmetic mean of reciprocals. Used for rates and ratios, like average speed over equal distances.
  • Mid-range: the mean of the minimum and maximum values. A quick estimate, but very sensitive to outliers.

These come up in specialized contexts — investment returns, physics, finance — but the arithmetic mean, median, and mode cover the vast majority of everyday needs.

Real-world uses

  • Grades and GPA: course averages and cumulative GPAs are weighted means of grade points.
  • Income and housing: median is the standard for salaries and home prices precisely because the distributions are right-skewed.
  • Test scores: standardized tests report mean and percentiles; the median SAT score, for instance, is the 50th percentile.
  • Business metrics: average order value, average revenue per user, and customer lifetime value are means used to summarize financial performance.
  • Quality control: manufacturing relies on mean and standard deviation (the spread around the mean) to monitor process stability.

To develop a sharper statistical intuition — when means mislead, how distributions behave, and why the choice of average shapes the story — Brilliant offers interactive statistics and probability courses. For applied data-analysis skills in a tool like Excel or Python, Udemy has affordable, practical data courses that walk through these calculations on real datasets.

Common mistakes

  • Reporting only the mean on skewed data: the headline number can sit well above or below what most people actually experience.
  • Forgetting to sort before taking the median: the middle of an unsorted list is meaningless.
  • Ignoring weights when they exist: a simple mean of values that should be weighted gives the wrong answer, sometimes badly.
  • Treating no-mode data as having a mode of zero: if no value repeats, there is no mode — not "mode = 0".
  • Averaging averages without re-weighting: the mean of two group means is only correct if the groups are the same size; otherwise weight by group size.

The bottom line

The mean is the sum divided by the count — the default average, best for symmetric data. The median is the middle value after sorting, resistant to outliers and best for skewed data. The mode is the most frequent value, the only average that works for categories. Outliers can pull the mean far from the typical value (as in 1, 2, 3, 4, 100, where the mean is 22 but the median is 3), which is why income and housing data are reported as medians. When values contribute unequally, use a weighted average that multiplies each value by its importance first. For day-to-day work, an average calculator that returns all three at once is the fastest way to see which one actually describes your data.

Advertisement
Ad space (728×90)

Sources