Get Started
How to Calculate Average
Learn how to calculate an average step by step, find the median and mode, calculate a weighted average for grades and prices, and average percentages.

How to Calculate Average: Mean, Median, Mode and Weighted Average

Last Updated: 8 min read
Pencil resting on a multiple choice answer sheet

Learn how to calculate an average step by step, find the median and mode, work out weighted averages for grades and prices, and average percentages correctly.

Table of Contents 15 sections
  1. How to calculate the average in 2 steps
  2. How to find the median
  3. How to find the mode
  4. Which average should you use?
  5. How to calculate a weighted average
  6. How to calculate an average percentage
  7. How to calculate an average over time
  8. How to find the average in Excel and Google Sheets
  9. How to find the number you need for a target average
  10. How a single value changes the average
  11. Common mistakes
  12. Practice problems
  13. Calculate it instantly
  14. How to use this guide
  15. Frequently asked questions
Want it done for you? The free Average Calculator finds the mean, median, mode and weighted average in one click.

Averages are everywhere: your grade in a class, your car's fuel economy, your monthly grocery bill, a player's points per game. Calculating one is usually simple, but there are a few versions of "average", and choosing the wrong one gives a misleading answer. This guide shows you how to calculate the average (mean) step by step, how to find the median and mode, how to calculate a weighted average for grades and prices, how to average percentages correctly, and how to do it all in Excel, with worked examples throughout.

How to calculate the average in 2 steps

  1. Add up all the numbers.
  2. Divide the total by how many numbers there are.
Average = Sum of all values / Number of values

Example: you spent $52, $47, $61, $38 and $72 on groceries over five weeks. The total is $270, and 270 / 5 = $54 per week.

For related numbers, try the Percentage Calculator and Grade Calculator.

Example with decimals: the daily rainfall over 4 days is 0.2, 1.5, 0 and 0.7 inches. The total is 2.4, and 2.4 / 4 = 0.6 inches per day. The day with zero rain still counts in the count.

Example with negative numbers: winter temperatures of -4, 2, -1, 5 and -7 degrees add up to -5, so the average is -5 / 5 = -1 degree.

How to find the median

  1. Sort the numbers from smallest to largest.
  2. If there is an odd number of values, the median is the middle one.
  3. If there is an even number, the median is the average of the two middle values.

Example (odd): 3, 9, 4, 7, 12 sorted is 3, 4, 7, 9, 12, so the median is 7.

Example (even): 3, 9, 4, 7, 12, 15 sorted is 3, 4, 7, 9, 12, 15. The middle two are 7 and 9, so the median is (7 + 9) / 2 = 8.

A quick way to find the middle position: it is (n + 1) / 2. For 5 values that is position 3; for 6 values it is position 3.5, meaning halfway between the 3rd and 4th values.

How to find the mode

The mode is the value that appears most often. In 2, 4, 4, 5, 7, 7, 7, 9 the mode is 7. If two values tie, there are two modes (bimodal). If nothing repeats, there is no mode. The mode is the only kind of average that works for non-numeric data: if a shoe store sells more size 9 than any other size, size 9 is the mode.

Which average should you use?

Use the mean for data that is fairly symmetric without extreme values, such as test scores or heights. Use the median when a few values are much larger or smaller than the rest, such as salaries or home prices. Use the mode for the most common choice or category.

Example: the prices of six homes on a street are $310,000, $325,000, $330,000, $340,000, $355,000 and $1,900,000. The mean is $593,333, but five of the six homes cost far less than that. The median, $335,000, is the better summary. This is why real estate reports use median prices.

How to calculate a weighted average

When values do not count equally, multiply each one by its weight, add the products, and divide by the total of the weights.

Weighted average = (v₁w₁ + v₂w₂ + ... + vₙwₙ) / (w₁ + w₂ + ... + wₙ)

Example: weighted grade

Your syllabus says assignments are 25%, quizzes 15%, the midterm 25% and the final 35%. Your scores are 95, 82, 78 and 88.

  • 95 × 25 = 2,375
  • 82 × 15 = 1,230
  • 78 × 25 = 1,950
  • 88 × 35 = 3,080

The total is 8,635, and the weights add to 100, so the weighted average is 86.35%. If the weights do not add up to 100, for example because the final has not happened yet, divide by the weights you have used so far (here 65) to get your current grade: (2,375 + 1,230 + 1,950) / 65 = 85.46%.

Example: GPA with credit hours

A 4-credit class with an A (4.0), a 3-credit class with a B (3.0) and a 1-credit lab with a C (2.0) give a GPA of (4 × 4 + 3 × 3 + 1 × 2) / (4 + 3 + 1) = 27 / 8 = 3.38. The GPA guide covers this in more detail.

Example: average cost

You fill your car with 10 gallons at $3.20 and later 15 gallons at $3.50. The average price per gallon is (10 × 3.20 + 15 × 3.50) / 25 = 84.50 / 25 = $3.38.

Example: average atomic mass

Chemistry students meet weighted averages when calculating average atomic mass. Multiply each isotope's mass by its natural abundance (as a decimal) and add the results. Chlorine is 75.77% chlorine-35 (mass 34.969 amu) and 24.23% chlorine-37 (mass 36.966 amu). Average atomic mass = 34.969 × 0.7577 + 36.966 × 0.2423 = 26.496 + 8.957 = 35.45 amu, the value printed on the periodic table. Because the abundances already add up to 1 (100%), there is no need to divide at the end; if they were given as percentages, divide the total by 100.

Example: average of averages in Excel

If a spreadsheet has the average score of each class section in column B and the number of students in column C, =AVERAGE(B2:B6) gives every section equal say, which is wrong when the sections differ in size. Use =SUMPRODUCT(B2:B6,C2:C6)/SUM(C2:C6) to weight each section's average by its head count.

How to calculate an average percentage

Averaging percentages is where many people go wrong. If every percentage is out of the same total, you can average them directly: 80%, 90% and 70% on three 50-point tests average 80%. But if the totals differ, add up the raw scores and divide by the total possible.

Example: you scored 18/20 (90%) on a quiz and 60/100 (60%) on a test. The simple average of the percentages is 75%, but your actual overall score is 78 / 120 = 65%, because the test is worth five times as many points.

How to calculate an average over time

Average speed is total distance divided by total time, not the average of the speeds. Driving 120 miles in 2 hours and then 30 miles in 1 hour gives 150 / 3 = 50 mph.

Average growth rate uses the geometric mean. If sales grow 20% one year and 5% the next, the average annual growth is √(1.20 × 1.05) - 1 = 12.25%, slightly less than the 12.5% simple average. For multi-year growth, the percentage increase calculator works out the compound annual growth rate.

How to find the average in Excel and Google Sheets

  • =AVERAGE(B2:B30) for the mean.
  • =MEDIAN(B2:B30) and =MODE.SNGL(B2:B30) for the median and mode.
  • =SUMPRODUCT(B2:B5,C2:C5)/SUM(C2:C5) for a weighted average, with values in B and weights in C.
  • =AVERAGEIF(A2:A30,">0") to skip zeros, or =AVERAGEIFS for several conditions.
  • =TRIMMEAN(B2:B30,0.2) to drop the top and bottom 10% before averaging, which reduces the effect of outliers.

How to find the number you need for a target average

Needed value = Target average × Total number of values - Sum of current values

Example: a bowler has scores of 168, 182 and 175 and wants a 180 average after four games. They need 180 × 4 - 525 = 195 in game four. If the answer is above the maximum possible score, the target cannot be reached. For exams with weighted finals, the final grade calculator does this for you.

How a single value changes the average

Adding a value above the current average raises it, and adding one below lowers it. The change equals (new value - old average) / new count. If your average over 9 tests is 82 and you score 92 on the tenth, the average rises by (92 - 82) / 10 = 1 point, to 83. The more values you already have, the less any single new one moves the average, which is why one bad grade early in a course hurts more than one late in the course.

Common mistakes

  • Dividing by the wrong count. Count every value, including zeros.
  • Averaging averages from groups of different sizes. Weight by group size instead.
  • Averaging percentages with different totals.
  • Reporting only the mean for skewed data; add the median.
  • Rounding too early. Keep full precision until the final answer.

Practice problems

  1. Find the mean, median and mode of 6, 3, 9, 6, 11, 2, 6, 5. Answer: mean 48 / 8 = 6, sorted 2, 3, 5, 6, 6, 6, 9, 11 so the median is (6 + 6) / 2 = 6, mode 6.
  2. A class has 12 students averaging 74 and 18 students averaging 84. What is the overall average? Answer: (12 × 74 + 18 × 84) / 30 = 2,400 / 30 = 80.
  3. Your first three quiz scores are 7, 8 and 6 out of 10. What do you need on the fourth for an average of 8? Answer: 8 × 4 - 21 = 11, which is impossible on a 10-point quiz.

Calculate it instantly

The free average calculator finds the mean, median, mode and range of any list, and switches to weighted average mode for grades, credits and prices. To measure how spread out your numbers are, use the standard deviation calculator and read how to calculate standard deviation.

How to use this guide

Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.

Frequently asked questions

How do you calculate the average of numbers?

Add all the numbers together and divide by how many numbers there are.

How do you calculate a weighted average?

Multiply each value by its weight, add up the products, and divide by the sum of the weights.

How do I find the average of percentages?

If the percentages share the same total, average them directly. Otherwise add the raw scores and divide by the total possible points.

What is the difference between mean, median and mode?

The mean is the sum divided by the count, the median is the middle value when sorted, and the mode is the most common value.

How do I calculate average in Excel?

Use =AVERAGE(range). For a weighted average, use =SUMPRODUCT(values,weights)/SUM(weights).

How do I find what score I need for a certain average?

Multiply the target average by the total number of scores and subtract the sum of the scores you already have.

This average calculator is an educational tool. Results are computed in your browser with standard formulas; double-check grades, financial figures and research results against your official records or course method.

Sawera Shahid

About the author

Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.

© 2026 Calculators360. Free calculators for math, finance and health. Privacy · About · Contact

Leave a Reply

Your email address will not be published. Required fields are marked *