Average calculator

Mean, median, mode, and range from a list — plus sum, count, geometric and harmonic means.

Report error
Arithmetic mean
Enter numbers on the right
Median
Mode
Range
Count
Geometric mean
Harmonic mean
Sum
Min · Max
Solution steps appear here.
Separate numbers with commas, spaces, or new lines.

Your numbers

Example: 2, 4, 4, 4, 5, 5, 7, 9

Average: Definition, Formula, and How to Calculate It

In mathematics, the word average usually refers to the arithmetic mean: add the values together and divide by how many values there are. It is one of the simplest ideas in statistics, but it is also one of the most useful.

An average takes a collection of numbers and replaces it with one number that represents the group. This makes it easier to describe a dataset, compare different groups, or get a quick idea of where the values are centered.

average center of the data
The average gives one numerical point around which the values can be viewed.

What Is an Average? Understanding the Arithmetic Mean

Suppose the numbers are

2, 7, 19, 24, 25

There are five values. First add them:

2 + 7 + 19 + 24 + 25 = 77

Then divide the sum by the number of values:

Average = 77 / 5 = 15.4

So the arithmetic mean is 15.4.

The formula can be written more generally as

Mean = Sum of all values / Number of values

Using mathematical notation, if the observations are x1, x2, ..., xn, the mean is

x̄ = (x1 + x2 + ··· + xn) / n

The symbol x̄ is read as “x-bar” and is commonly used for the arithmetic mean of a set of observations.

How Does an Average Work? The Balance Point

There is a useful way to understand the mean without thinking only about the formula. Imagine placing each number on a number line and putting equal weights on them. The mean is the point where the values would balance.

lower higher mean = balance point
Values below the mean and values above the mean balance each other in total deviation.

This leads to an important property of the arithmetic mean. If you subtract the mean from every value and add all those differences together, the result is zero.

Σ(x − x̄) = 0

For the numbers 4, 6, and 8, the mean is 6:

4 − 6 = −2
6 − 6 = 0
8 − 6 = +2

−2 + 0 + 2 = 0

The values on the two sides of the mean balance in this sense.

How to Calculate an Average Step by Step

For a small dataset, the procedure is straightforward.

Take the values 12, 18, 21, 25, and 34.

Step 1: Add the values.
12 + 18 + 21 + 25 + 34 = 110

Step 2: Count the values.
n = 5

Step 3: Divide.
110 / 5 = 22

The average is therefore 22.

Notice that 22 does not have to be one of the original observations. An average is a summary value; it does not necessarily have to appear in the dataset itself.

What Does the Average Tell You About a Dataset?

The mean gives a measure of the center of a group of numerical observations. If the values are reasonably balanced around a central point, the mean can give a useful description of a typical observation.

For example, consider the daily number of customers visiting a small business over five days:

80, 95, 100, 105, 120

The average is

(80 + 95 + 100 + 105 + 120) / 5
= 500 / 5
= 100

So 100 customers per day is a useful summary of the five-day period.

But this does not mean that exactly 100 customers arrived on every day. The mean compresses several observations into one number and therefore removes some information about the variation in the original data.

The average can be affected by extreme values

One of the most important facts about the arithmetic mean is that it is sensitive to unusually large or unusually small observations.

Suppose five people have monthly incomes of $1,000, $1,000, $1,000, $1,000, and $16,000.

Average = (1,000 + 1,000 + 1,000 + 1,000 + 16,000) / 5
Average = 20,000 / 5
Average = $4,000

The average income is $4,000, but four of the five people earn only $1,000. The single very large value pulls the mean upward.

This does not make the calculation wrong. The arithmetic is correct. The issue is interpretation: a mathematically correct average can still be a poor description of what is typical in a dataset.

When a dataset contains strong outliers, it is often useful to examine the median as well as the mean. The two measures answer slightly different questions about the center of the data.

Mean versus median

The median is the middle value after the observations have been arranged in order. Unlike the mean, it is much less affected by an unusually large or small observation.

Consider:

2, 3, 4, 5, 20

The mean is

(2 + 3 + 4 + 5 + 20) / 5 = 34 / 5 = 6.8

The median is 4 because 4 sits in the middle of the ordered list.

Both 6.8 and 4 are valid summaries, but they tell different stories. The mean incorporates every value numerically, while the median identifies the middle position and is less influenced by the value 20.

What happens when there is an even number of values?

With an even number of observations, there is no single middle observation. In that case, the median is found by averaging the two middle values.

For example:

3, 7, 10, 14, 18, 21

The two middle values are 10 and 14, so

Median = (10 + 14) / 2 = 12

This is different from the arithmetic mean of the entire dataset, which is calculated by adding all six observations and dividing by 6.

What Is a Weighted Average? Formula and Example

Not every situation gives every value the same importance. When observations have different weights, a simple average can give the wrong result.

The weighted average is calculated by multiplying each value by its weight, adding those products, and then dividing by the sum of the weights.

Weighted Mean = Σ(wx) / Σw

Suppose a student's final grade consists of a 30% assignment score of 80 and a 70% exam score of 90.

Weighted average = (80 × 0.30 + 90 × 0.70)
= 24 + 63
= 87

The final weighted average is 87.

A simple average of 80 and 90 would be 85, but that would incorrectly assume the assignment and exam have equal importance.

Why averaging averages can be misleading

It is tempting to calculate several averages and then simply average those averages. Sometimes that works, but not always.

Suppose one class has 10 students with an average score of 90, while another class has 30 students with an average score of 60. The simple average of the two class averages is

(90 + 60) / 2 = 75

But if we want the average score of all 40 students, each student must have equal influence:

Class 1 total = 10 × 90 = 900
Class 2 total = 30 × 60 = 1,800

Combined total = 2,700
Combined students = 40

Overall average = 2,700 / 40 = 67.5

The correct overall average is 67.5, not 75.

The difference occurs because the two groups contain different numbers of observations. In effect, the group averages need to be weighted by their sample sizes.

How to Calculate an Average of Percentages

Percentages require a little care because an average of percentages is not automatically the overall percentage.

Suppose one test is taken by 10 students and the average score is 80%, while another test is taken by 30 students and the average score is 60%. A simple average gives 70%, but the combined percentage depends on the number of students represented by each result.

The same principle applies to business reports, survey results, class grades, conversion rates, and many other situations. Before averaging percentages, ask whether each percentage represents the same number of observations.

Average, median, mode, and midrange

The word “average” is sometimes used informally for several different measures of central tendency. The arithmetic mean is only one of them.

The mean uses every numerical value and divides their sum by the number of observations.

The median is the middle observation after sorting the data, or the average of the two middle observations when there is an even number of values.

The mode is the value that occurs most frequently. A dataset can have one mode, more than one mode, or no repeated value at all.

The midrange is the average of the smallest and largest observations:

Midrange = (Minimum + Maximum) / 2

These measures should not be treated as interchangeable. Each summarizes the data in a different way.

A useful check using the minimum and maximum

For a non-empty set of ordinary numerical observations, the arithmetic mean cannot be smaller than the smallest value or larger than the largest value.

Minimum ≤ Mean ≤ Maximum

This gives a quick error check.

If the values are 12, 15, 18, and 25, an average of 30 is impossible. Likewise, an average below 12 would indicate a calculation or data-entry problem.

This simple check is especially useful when working with a calculator, spreadsheet, or a large dataset.

How to Update an Average When Adding a New Value

There is also a useful way to update an average without starting from the beginning.

Suppose the current average of 5 numbers is 20. The sum of those five numbers must be

5 × 20 = 100

Now add a sixth value of 32. The new sum is 132, and the new average is

132 / 6 = 22

So the average rises from 20 to 22.

This way of thinking is useful in real datasets because an average is always connected to a total and a count. If you know two of those quantities, you can usually recover the third.

How to Find a Missing Value From an Average

Suppose four numbers have an average of 18, and three of the numbers are 12, 17, and 20. What is the fourth number?

First find the total that four numbers must have:

Total = 4 × 18 = 72

Then add the known values:

12 + 17 + 20 = 49

The missing value must make the total equal to 72:

Missing value = 72 − 49 = 23

Check:

(12 + 17 + 20 + 23) / 4 = 72 / 4 = 18

This is often easier than trying to manipulate the average formula all at once. Think in terms of the total first.

Average in Statistics: Population Mean vs. Sample Mean

In statistics, the mean is a measure of central tendency. It gives a single value intended to summarize the center of a numerical dataset.

For a population, the mean is often represented by the Greek letter μ:

μ = Σx / N

Here, N is the number of observations in the population.

For a sample, the mean is commonly written as x̄:

x̄ = Σx / n

The calculation itself has the same basic structure. The notation changes because population and sample statistics have different roles in statistical analysis.

Average Formula: The Main Idea to Remember

The arithmetic mean is simple:

Mean = Sum ÷ Count

But using an average correctly requires more than performing the division. You should also ask what the numbers represent, whether every observation should have equal weight, and whether unusual values are influencing the result.

For a clean dataset with no major outliers, the mean can be an excellent summary. When the data is skewed or contains extreme observations, the median may give a better picture of what is typical. When observations have different importance or represent different group sizes, a weighted mean may be necessary.

The best habit is therefore not simply to calculate the average, but to understand what that average is actually saying about the data.