Average Calculator (Mean, Median and Mode)

Find the average (arithmetic mean) of a list of numbers, or switch to weighted mode when some values count more than others. The median, mode, range, geometric mean and harmonic mean are shown alongside, with every step written out. To examine spread around that mean, use the Standard Deviation Calculator.

Average (mean)
18
Count (n)6
Sum108
Median15.5
ModeNone (every value appears once)
Range38
Min / Max4 / 42
Geometric mean13.9655
Harmonic mean10.4995

Formula: x̄ = Σx ÷ n

Results update as you type
Step by step
  1. Sum = 4 + 8 + 15 + 16 + 23 + 42 = 108; mean = 108 ÷ 6 = 18
  2. Sorted: 4, 8, 15, 16, 23, 42. With 6 values (even), the median is the average of the 3rd and 4th values: (15 + 16) ÷ 2 = 15.5
  3. Count how often each value appears: 4 → 1, 8 → 1, 15 → 1, 16 → 1, 23 → 1, 42 → 1. Every value appears once, so there is no mode
  4. Range = max − min = 42 − 4 = 38

What this calculator does

In list mode this calculator returns the average (arithmetic mean) of any list of numbers together with the count, sum, median, mode, range, minimum, maximum, geometric mean and harmonic mean. One list gives all of them, so it works as a mean calculator, a median calculator and a mode calculator at once (a mean median mode calculator in one place).

In weighted mode it becomes a weighted average calculator: enter each value with its weight, or paste value, weight pairs, and it shows every product, both sums and the final division.

Average formula

Mean: x̄ = (x₁ + x₂ + … + xₙ) ÷ n = Σx ÷ n

Median: the middle value of the sorted list, or the average of the two middle values when n is even.

Mode: the value or values that appear most often. If every value appears once there is no mode.

Range: max − min

Weighted mean: Σ(w·x) ÷ Σw, explained in its own section below.

Geometric mean: (x₁ × x₂ × … × xₙ)^(1/n) and harmonic mean: n ÷ Σ(1/x). Both are only defined when every value is greater than 0.

Variable definitions

  • xᵢ: Each individual value in your list.
  • n: The count of values.
  • x̄: The arithmetic mean (average).
  • wᵢ: The weight of value xᵢ in a weighted average.
  • Σ: Sum of the terms that follow.

How to calculate the average

Whether you need to know how to calculate average test marks or how to find average daily sales, the average computation is the same three steps:

  1. Add all the numbers to get the sum.
  2. Count how many numbers there are.
  3. Divide the sum by the count.

For 6, 4, 8 and 2: the sum is 20, the count is 4, and 20 ÷ 4 = 5.

Worked example

Values: 4, 8, 15, 16, 23, 42

Sum = 108, n = 6 → Mean = 108 ÷ 6 = 18.

Sorted: 4, 8, 15, 16, 23, 42 → Median = (15 + 16) ÷ 2 = 15.5. Range = 42 − 4 = 38. No value repeats, so there is no mode.

How to use this calculator

  1. Choose List of numbers for a plain average or Weighted average when values count for different amounts.
  2. In list mode, type or paste your numbers; any mix of commas, spaces, tabs, semicolons or new lines works.
  3. In weighted mode, type each value and its weight in a row (add or remove rows as needed), or switch the entry to pasted pairs and paste one value, weight pair per line.
  4. Pick how many decimals to show, then read the result and the written steps.

Common mistakes

  • Mixing units: averaging values with different units (e.g. minutes and hours) gives a meaningless number, convert first.
  • Ignoring outliers: a single very large or very small value can pull the mean far from the typical value. Compare with the median.
  • Averaging percentages directly: percentages of groups with different sizes need a weighted average, as shown below.
  • Leaving out zeros: a 0 is a real value and lowers the average; only leave it out when it means “no data”.
  • Double counting: pasting duplicate rows accidentally inflates the count. The calculator shows the count so you can verify it.

Weighted average formula

Weighted average = Σ(w·x) ÷ Σw: multiply each value x by its weight w, add the products, and divide by the sum of the weights. The weights can be percentages, decimals or plain counts; only their relative sizes matter.

Example: test scores of 80, 90 and 70 that count 20%, 30% and 50% of the grade. The products are 1,600, 2,700, 3,500, so Σ(w·x) = 7,800 and Σw = 100. The weighted average is 7,800 ÷ 100 = 78. Writing the weights as 0.2, 0.3 and 0.5 gives the same 78. The plain average of the three scores would be 80, because it treats the small test like the big one.

Use a weighted average when values do not count equally: course grades with category weights (the Weighted Grade Calculator and Grade Calculator are built for that), or things bought in different quantities. Buying 10 boxes at $4 and 30 boxes at $6 works out to (40 + 180) ÷ 40 = $5.50 per box on average, not the $5.00 you get by averaging the two prices.

Mean, median and mode

All three describe the center of a list. The mean is the sum divided by the count. The median is the middle value once the list is sorted. The mode is the value that appears most often; in 3, 7, 7, 2, 9 the mean is 5.6, the median is 7 and the mode is 7.

The median is the better summary when a few values are far from the rest. Five delivery times of 12, 14, 15, 16 and 98 minutes have a mean of 31 minutes but a median of 15 minutes. Without the 98-minute delivery the mean drops to 14.25, while the median barely moves (14.5). The mode is most useful for repeated values such as the most common size or score.

To measure how spread out the values are around the mean, use the Standard Deviation Calculator.

How to average percentages

Percentages of groups with different sizes cannot simply be added and divided. If 50% of a group of 10 passed and 90% of a group of 30 passed, the counts are 5 and 27 people, so 32 of 40 passed overall: 80%. Averaging 50 and 90 gives 70%, which is wrong because the larger group counts three times as much.

This is a weighted average with the group sizes as weights. In weighted mode, enter each percentage as the value and its group size as the weight. A plain average of percentages is only correct when every group has the same size.

Average in Excel and Google Sheets

The same functions work in Excel and Google Sheets.

FormulaReturns
=AVERAGE(A1:A10)Mean of the range (empty cells and text are skipped, zeros count)
=MEDIAN(A1:A10)Median
=MODE.MULT(A1:A10)Every mode (several cells when values tie); MODE.SNGL returns one
=SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4)Weighted average of values in A2:A4 with weights in B2:B4
=GEOMEAN(A1:A10) / =HARMEAN(A1:A10)Geometric / harmonic mean (positive values only)

Browse the math calculators for related percentage, statistics and measurement tasks.

Frequently asked questions

›How do you calculate an average?

Add all the numbers, then divide the sum by how many numbers there are. For 6, 4, 8 and 2 the sum is 20 and there are 4 numbers, so the average is 20 ÷ 4 = 5.

›What is a weighted average?

A weighted average lets some values count more than others. Multiply each value by its weight, add the products, and divide by the sum of the weights: Σ(w·x) ÷ Σw. Scores of 80, 90 and 70 weighted 20%, 30% and 50% give 7,800 ÷ 100 = 78, while the plain average of the three scores is 80.

›How do I calculate average percentage?

Turn each percentage back into a count, add the counts, and divide by the total base. 50% of 10 is 5 and 90% of 30 is 27, so the combined figure is (5 + 27) ÷ 40 = 80%, not the 70% you get by averaging 50 and 90. A plain average of percentages is only right when every group has the same base.

›Is average the same as mean?

In everyday use, yes: "the average" means the arithmetic mean, the sum divided by the count. In statistics the median and the mode are also called averages (measures of the center), so say "mean" when you need to be exact.

›What is the average of 6, 4, 8 and 2?

The average is 5: the sum is 6 + 4 + 8 + 2 = 20, and 20 ÷ 4 = 5. The median is also 5 (the middle of 2, 4, 6, 8), and there is no mode because every value appears once.

›How is the mean different from the median?

The mean adds and divides, so a single extreme value pulls it. The median is the middle value of the sorted list and ignores how far the extremes are. For 12, 14, 15, 16 and 98 the mean is 31 but the median is 15, which is closer to the typical value.

›What is the mode?

The mode is the value that appears most often. A list can have no mode (every value appears once), one mode, or several tied modes; this calculator lists all of them. In 3, 7, 7, 2, 9 the mode is 7.

›What is the range?

Range = maximum − minimum. It is the simplest measure of spread, but a single extreme value can change it a lot.

›What are the geometric mean and the harmonic mean?

The geometric mean is the n-th root of the product of the values; the harmonic mean is n divided by the sum of the reciprocals. Both need every value to be greater than 0. For 2 and 8 the geometric mean is 4 and the harmonic mean is 3.2, both below the arithmetic mean of 5.

›How do you calculate a batting average in cricket?

Divide the total runs a batter has scored by the number of times they were out. Not-out innings add their runs but do not add to the number of dismissals. In baseball the batting average is different: hits divided by official at-bats.

›How do I find a class average?

Add every student's score and divide by the number of students; that is the plain average this calculator gives in list mode. If a course weights homework, quizzes and exams differently, each student's grade is a weighted average of those categories.

›Can I enter negative numbers or decimals?

Yes. Separate numbers with commas, spaces, tabs, semicolons or new lines. Negatives, decimals and exponents such as 1e3 work. Anything that is not a number is skipped, and the calculator tells you how many entries it ignored. Convert fractions to decimals before pasting. If you average fractions by hand, the LCM Calculator finds a common denominator so you can add them before dividing by the count.

›How is this different from the Standard Deviation Calculator?

This tool focuses on the average and the basic center and spread of a list (mean, median, mode, range, geometric and harmonic mean) plus weighted averages. For variance, sample vs. population standard deviation and a deviation table, use the Standard Deviation Calculator.

›How are the results shortened?

All math runs at full double precision with a compensated sum, so even values near 1,000,000,000 keep their exact average. Only the displayed numbers are shortened to the decimals you choose, and trailing zeros are dropped.

Related calculators

If this helped, the following calculators are useful for everyday math problems:

Last updated: November 14, 2026 · Checked against standard formulas and sample test cases.

Uses a compensated sum, so long lists and values with a large common offset (such as numbers near 1,000,000,000) keep full accuracy. Only the displayed values are shortened to the decimals you choose.