Average Calculator
Paste or type your numbers to get the mean, median, mode and range. Advanced adds weighted averages, percentages, times, moving averages and the number you need next.
Separate them with commas, spaces or new lines. You can paste a column from a spreadsheet.
Need a weighted average, percentages or times? Switch to Advanced.
Averages each run of this many numbers in a row, for trends in prices, sales or scores.
Drops the highest and lowest values first, like judges' scores.
Averaging speeds over equal distances? Use the harmonic mean below, or the speed, distance & time calculator.
Grades: score and how much it counts. Shares: price and how many you bought. A blank weight counts as 1.
For example 80% of 50 questions, or a 60% pass rate in a class of 200. Leave every “out of” blank to treat all groups the same.
Moving average table and chart
| # | Value | Moving average | Running average |
|---|
How your average is worked out
Mean = add everything up, then divide by how many there are.
- 1
Add them up
6 + 8 + … + 5
= 48 - 2
Count them
how many numbers
= 8 - 3
Share it out
48 ÷ 8
= 6 (the mean) - 4
Middle and most
median 6.5
mode 8
Read more: the formula, a worked example, weighted averages, percentages and times
“Average” usually means the mean: add the numbers up and divide by how many there are. The median is the middle number once they're in order, and the mode is the number that turns up most often. The range is the gap between the biggest and smallest.
The formula
mean = sum of the numbers ÷ how many numbers
median = the middle number in order (or the mean of the two middle ones)
mode = the number that appears most often
range = largest − smallest
weighted average = sum of (value × weight) ÷ sum of weights
next number needed = target × (count + 1) − current sum
Worked example
For 6, 8, 3, 9, 8, 2, 7 and 5: the sum is 6 + 8 + 3 + 9 + 8 + 2 + 7 + 5 = 48, and there are 8 numbers, so the mean is 48 ÷ 8 = 6. In order they are 2, 3, 5, 6, 7, 8, 8, 9. With an even count the median is the mean of the two middle numbers: (6 + 7) ÷ 2 = 6.5. 8 appears twice, so the mode is 8, and the range is 9 − 2 = 7. To lift the average to 7 with one more number, you need 7 × 9 − 48 = 15.
Weighted average
Use it when some values count more than others. Homework 85 (worth 20%), a midterm of 72 (30%) and a final of 90 (50%) give (85 × 20 + 72 × 30 + 90 × 50) ÷ 100 = (1,700 + 2,160 + 4,500) ÷ 100 = 83.6. The plain average of 85, 72 and 90 would be 82.33, which ignores that the final counts most. The same sum gives an average share price: 10 shares at 100 and 30 at 80 cost (1,000 + 2,400) ÷ 40 = 85 each. If your weights are percentages that don't add to 100 yet, the calculator divides by what they do add to, which is your grade so far. To plan the score you need on a final, try the final grade calculator.
Averaging percentages the right way
You can't just average percentages that come from groups of different sizes. 80% of 50 questions is 40 right, 60% of 200 is 120 and 90% of 10 is 9. That's 169 right out of 260, which is 169 ÷ 260 = 65%. The plain average of 80, 60 and 90 is 76.67%, far too high because the big 200-question test counts the same as the tiny 10-question one. Only when every group is the same size do the two answers match.
Average of times
Times are turned into seconds, averaged, and turned back. Laps of 25:30, 24:10, 26:05 and 23:55 are 1,530 + 1,450 + 1,565 + 1,435 = 5,980 seconds; 5,980 ÷ 4 = 1,495 seconds = 24:55 a lap. Times of day are different, because the clock wraps round at midnight: bedtimes of 23:30, 00:15, 23:45 and 00:30 average to 00:00, not midday. The calculator places each time on a 24-hour clock face and averages the directions (a circular mean).
Geometric, harmonic and other means
- Geometric mean (the nth root of all the numbers multiplied together) suits growth rates and ratios. Growth factors of 2 and 8 have a geometric mean of √16 = 4. For yearly returns, see the CAGR calculator.
- Harmonic mean (count ÷ sum of 1 ÷ each number) suits rates over the same distance. Driving there at 60 km/h and back at 40 km/h averages 2 ÷ (1/60 + 1/40) = 48 km/h, not 50, because you spend longer at the slower speed. For trips with different distances or times use the speed, distance & time calculator.
- Quadratic mean (root mean square) squares, averages and takes the square root; it is used for electrical currents and errors.
- Trimmed mean drops a set share of the highest and lowest values first, so one odd result can't drag the average.
- Midrange is halfway between the smallest and largest.
For positive numbers that aren't all the same, harmonic < geometric < mean < quadratic mean.
Moving average
A moving average with a window of 3 averages numbers 1–3, then 2–4, then 3–5 and so on, smoothing out bumps so you can see the trend. On the example list the first is (6 + 8 + 3) ÷ 3 = 5.67 and the last is (2 + 7 + 5) ÷ 3 = 4.67. The running (cumulative) average is the mean of everything so far.
Mean, median or mode?
- Mean uses every number, so it's best when values are spread fairly evenly.
- Median ignores extreme values, so it's better for things like house prices or salaries where a few very large values pull the mean up.
- Mode works for the most common shoe size, score or answer. A list can have no mode, or several.
For how spread out your numbers are (variance and standard deviation), use the standard deviation calculator.
Common questions
How do I calculate the average?
Add up all the numbers and divide by how many there are. For 6, 8, 3, 9, 8, 2, 7 and 5 the sum is 48 and there are 8 numbers, so the mean is 48 ÷ 8 = 6. Paste your own list and the calculator does the rest.
What is the difference between mean, median and mode?
The mean is the sum divided by the count, the median is the middle number in order, and the mode is the number that appears most often. For 2, 3, 5, 6, 7, 8, 8, 9 the mean is 6, the median is 6.5 and the mode is 8.
How do I calculate a weighted average?
Multiply each value by its weight, add them up and divide by the total of the weights. Homework of 85 worth 20%, a midterm of 72 worth 30% and a final of 90 worth 50% give 83.6, not the plain average of 82.33.
Can I average percentages?
Only if every group is the same size. 80% of 50 questions, 60% of 200 and 90% of 10 is 169 right out of 260, which is 65%. The plain average of the three percentages, 76.67%, is far too high because the big test counts the same as the tiny one.
What number do I need to raise my average?
Multiply the target average by the count plus one, then take away the current sum. To lift the average of the 8 example numbers, which add up to 48, to 7, you need 7 × 9 − 48 = 15 as your next number.
When should I use the median instead of the mean?
Use the median when a few very large or very small values would pull the mean, such as house prices or salaries, because the median ignores extreme values. The mean uses every number, so it's best when values are spread fairly evenly.
Related calculators
Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.