Average Calculator
Paste your numbers and get the mean, median, mode, spread and outliers instantly. Switch tabs for a weighted average, a combined average of groups, average speed or a moving average, all with clear charts and the working shown.
- Private: nothing is uploaded or saved
- Handles 100,000 numbers
Private by design. Your numbers stay in this browser tab. Nothing is sent to a server or stored. A share link keeps your numbers only inside the link itself.
Your numbers
Window size
A moving average replaces each number with the average of the last few numbers in your list, in the order you typed them. Good for smoothing daily sales, temperatures or marks over time.
Values and weights
Weighted average = Σ(value × weight) ÷ Σ(weights). A bigger weight means that value counts for more.
Groups with their own averages
Enter each group's average and how many values are in it. Groups with more members get more say in the result.
Speed, rate and percentage
Example: you drive one half of a trip at 40 and the other half at 60. Is your average 50? Not quite. Check the two answers on the right.
Average speed for a whole trip = total distance ÷ total time. It works for any mix of legs.
Base means the whole that the percentage was taken from, for example the number of students in a class or the marks available in a paper.
See it in pictures
Every chart updates as you type. Hover, tap or tab to a mark to read its exact value, and use “View as table” if you prefer numbers.
Each dot is one number. The solid line is the mean, the dashed line the median and the dotted line the mode.
How many numbers fall in each band, with the mean and median overlaid.
The box holds the middle half of your numbers. Dots beyond the whiskers are outliers.
Solid bars are above the average. Hatched bars are below it. Grey bars sit right on it.
Bars going up are above the mean, hatched bars going down are below it. They always balance out.
The full bar is the weighted average. Each segment is one item's contribution (value × weight ÷ total weight).
Bigger groups have a bigger say. Segment width is each group's contribution.
The grey line is your numbers in order. The green line is the smoothed series. Each smoothed point is plotted at the end of its window.
What an average really means (and why there's more than one kind)
Ask ten people for the average of a set of numbers and nine of them will add everything up and divide by how many there are. That's the mean, and it's the one most of us learned at school. But "average" is a loose word. It really means "a single number that stands in for a whole list", and there are several fair ways to pick that number.
The three you'll meet most often are the mean, the median and the mode. The mean is the balance point. The median is the value in the middle once the list is sorted. The mode is the value that turns up most often. Each one answers a slightly different question, and on a messy real-world list they can give quite different answers.
That's why the calculator above shows all of them at once. You paste your numbers, and you see how they compare. The helper line under the results will even tell you which one probably describes your data best. If you only want a quick answer, you can stop there. If you want to know why the answer is what it is, keep reading. We'll go through each idea with small examples you can check by hand.
How to calculate the mean, step by step
The rule has two steps: add up all the values, then divide by how many values you added. Written as a formula it looks like this:
Example. A student scored 62, 70, 85, 90 and 78 in five tests.
62 + 70 + 85 + 90 + 78 = 385
385 ÷ 5 = 77
Her average mark is 77. Notice that nobody scored exactly 77. The mean doesn't have to be one of the values in your list. It's a balance point, not a member of the group.
If you have decimals, nothing changes. If you have negative numbers, nothing changes either, you just add them as negatives. The average of -4, 2 and 8 is (-4 + 2 + 8) ÷ 3 = 2.
Median: the middle value, and when it beats the mean
To find the median, sort your numbers from smallest to largest and pick the one in the middle. With an odd count there's a clear middle. With an even count there are two, so you take the mean of those two.
Say you run a small shop and your sales for five days were 4,500, 5,200, 4,800, 5,100 and 21,000. The last number is a festival day, and it's far bigger than the others. Sorted, the list reads 4,500, 4,800, 5,100, 5,200, 21,000. The middle one is 5,100.
The mean of the same five days is 40,600 ÷ 5 = 8,120. Is that a fair picture of a normal day? Not really. Four of your five days were close to 5,000. The median, 5,100, describes a typical day much better, because one huge value can't drag it around. That's the main job of the median: it stays calm when a few values are extreme.
An even example: 20, 24, 31 and 45. The two middle values are 24 and 31, so the median is (24 + 31) ÷ 2 = 27.5.
Mode: the most common value
The mode is the value that appears most often. It's the only one of the three that also works with things that aren't really numbers, like shoe sizes or the most popular bus route.
A shoe shop sells these sizes in a day: 7, 8, 8, 9, 8, 10, 7. Size 8 appears three times, more than any other, so the mode is 8. That's useful for ordering stock, and the mean (8.14) wouldn't help you at all, since nobody sells size 8.14.
Two things can surprise you. A list can have more than one mode: in 2, 2, 5, 5, 9 both 2 and 5 appear twice, so both are modes. And a list can have no mode: in 1, 2, 3, 4 every value appears once, so nothing stands out.
Mean vs median vs mode, side by side
| Mean | Median | Mode | |
|---|---|---|---|
| What it is | Sum divided by count | The middle value when sorted | The value that appears most |
| Thrown off by extreme values? | Yes, easily | Hardly at all | No |
| Best used for | Marks, temperatures, steady measurements | Incomes, house prices, daily sales with the odd huge day | Sizes, popular choices, survey answers |
| Can there be more than one? | No, always exactly one | No, always exactly one | Yes, or none at all |
| Must it appear in the list? | No | Only with an odd count | Yes, always |
A quick rule of thumb: if your numbers are fairly even and there are no wild values, use the mean. If a few values sit far away from the rest, use the median. If you care about the most popular choice, use the mode.
A full worked example with a small data set
Let's take ten daily readings, for instance the number of customers who walked into a shop each day: 12, 15, 11, 18, 15, 20, 14, 15, 19, 13. We'll find everything the calculator shows.
Sum and mean. 12 + 15 + 11 + 18 + 15 + 20 + 14 + 15 + 19 + 13 = 152. There are 10 values, so the mean is 152 ÷ 10 = 15.2.
Median. Sorted: 11, 12, 13, 14, 15, 15, 15, 18, 19, 20. With ten values the middle two are the 5th and 6th, both 15. The median is 15.
Mode. 15 appears three times, more than anything else. The mode is 15.
Range. The biggest value is 20 and the smallest is 11, so the range is 20 - 11 = 9.
Quartiles. Q1 is 13.25 and Q3 is 17.25, so the interquartile range (IQR) is 4. The outlier fences are 13.25 - 1.5 × 4 = 7.25 and 17.25 + 1.5 × 4 = 23.25. Everything sits inside them, so there are no outliers.
Spread. Each value's distance from 15.2, squared, adds up to 79.6. Divide by 10 for the population variance, 7.96 (standard deviation 2.82). Divide by 9 for the sample variance, 8.84 (standard deviation 2.97).
Here the mean (15.2), median (15) and mode (15) are all close together. That's a sign the data is fairly balanced, and any of the three would be a fair summary. Paste the same ten numbers into the calculator and you'll see exactly these results.
Weighted average (marks, grades, credits)
Sometimes not every number counts the same. A final exam is usually worth more than a class quiz. A four-credit subject matters more to your GPA than a one-credit one. In those cases you use a weighted average: multiply each value by its weight, add those up, then divide by the total of the weights.
Exam marks. Assignment 80 (worth 20%), mid-term 65 (worth 30%), final 72 (worth 50%).
80 × 20 = 1,600
65 × 30 = 1,950
72 × 50 = 3,600
Total = 7,150, and 7,150 ÷ 100 = 71.5
The weighted result is 71.5. The plain average of 80, 65 and 72 would be 72.3, which hides the fact that the heavy final exam was your second-lowest mark.
GPA works the same way, with credits as the weights. Maths (4 credits, grade point 3.7), English (3 credits, 3.0), Science (4 credits, 4.0) and ICT (2 credits, 3.3) give 14.8 + 9 + 16 + 6.6 = 46.4. Divide by the 13 credits and your GPA is about 3.57. The Weighted tab has presets for both examples.
If your weights are percentages they should add up to 100. If not, the calculator still divides by the actual total, but warns you, since a typo in a weight is a common cause of a surprising answer.
Average of averages: the mistake almost everyone makes
Say one class of 30 students has an average of 80, and another class of 70 students has an average of 60. What's the average for all 100 students? Many people add 80 and 60 and halve it, getting 70. It looks sensible, and it's wrong.
The second class has more than twice as many students, so it should have more say. The right way is to turn each average back into a total, add the totals, and divide by the total headcount:
30 × 80 = 2,400
70 × 60 = 4,200
(2,400 + 4,200) ÷ 100 = 66
The true combined average is 66, not 70. That's a gap of four marks, enough to change a grade boundary.
The simple "average the averages" shortcut only works when every group is exactly the same size. In real life they rarely are, so use the Combine groups tab whenever you're merging class results, branch sales or monthly figures.
Average speed: why it isn't the simple average
Imagine a drive where you cover the first half of the distance at 40 km/h in heavy traffic and the second half at 60 km/h on a clear road. Your average speed isn't 50 km/h.
Let's say each half is 60 km. The first half takes 60 ÷ 40 = 1.5 hours. The second takes 60 ÷ 60 = 1 hour. That's 120 km in 2.5 hours, so the average speed is 120 ÷ 2.5 = 48 km/h. You spent more time going slowly, so the slow speed counts for more.
The shortcut for equal distances is the harmonic mean: divide the number of legs by the sum of the reciprocals of the speeds. For 40 and 60 that's 2 ÷ (1/40 + 1/60) = 48. If instead you'd driven for equal times at each speed, say one hour at 40 and one hour at 60, the simple mean of 50 would be right. The Speed & percentage tab shows both side by side so you can see the difference.
For anything messier, such as a trip with different distances and different times, skip the shortcuts and use the golden rule: average speed = total distance ÷ total time.
Geometric mean, in plain words
The geometric mean is the right "average" for things that grow or shrink by percentages. Instead of adding the numbers, you multiply them and take a root.
Suppose a small business grows its sales by 20% in one year and 80% the next. As growth factors those are 1.2 and 1.8. The simple mean of 20% and 80% is 50%, but if you grew 50% twice you'd end up with 1.5 × 1.5 = 2.25 times your starting sales, and you actually reached 1.2 × 1.8 = 2.16. The geometric mean fixes this: the square root of 2.16 is about 1.4697, so the true average growth was about 47% a year.
It only works for positive numbers, because you can't take a sensible root of a product that includes zero or a negative. The calculator shows it when your list qualifies, and it's useful for investment returns, inflation and population growth.
Spread: range, variance and standard deviation, explained gently
An average tells you where the middle is. It doesn't tell you how spread out the numbers are, and that matters a lot. Two classes can both average 70 and still be very different.
Class X scored 70, 70, 70, 70, 70. Class Y scored 40, 60, 70, 80, 100. Same mean, very different stories. The simplest measure of spread is the range, biggest minus smallest: 0 for Class X and 60 for Class Y.
The standard deviation is a more careful version. You find how far each value is from the mean, square those distances, average the squares (that's the variance), and take the square root. For Class Y the distances are -30, -10, 0, 10 and 30. The squares are 900, 100, 0, 100 and 900, which add to 2,000. Divide by 5 and you get a variance of 400, so the standard deviation is 20. A small standard deviation means the numbers huddle close to the mean. A large one means they're scattered.
Use population (divide by n) when your list is the whole group, like every student in one class, and sample (divide by n - 1) when it is a small piece of a bigger group. The calculator has a switch.
Outliers and how they change your average
An outlier is a value that sits far away from the rest. One typing slip, one unusually big sale, one record-breaking day, and the mean can jump while the median hardly moves.
How do you decide what counts as an outlier? A common rule uses the quartiles. Find Q1 (a quarter of the way up the sorted list), Q3 (three quarters up) and the gap between them, the IQR. Anything below Q1 - 1.5 × IQR or above Q3 + 1.5 × IQR gets flagged. For 4, 5, 6, 7 and 100, Q1 is 5, Q3 is 7, the IQR is 2, and the upper fence is 7 + 3 = 10. So 100 is flagged, and nothing else is.
Flagged doesn't mean wrong. Sometimes an outlier is a mistake worth fixing. Sometimes it's the most interesting thing in your data. Look at it before you decide, and consider reporting the median alongside the mean.
Everyday uses
Exam results. A student can average her marks to see where she stands, and a teacher can find the class mean and median. If the median is well above the mean, a few very low scores are pulling the mean down.
Household bills. A family's electricity bills over six months were 4,200, 3,900, 4,800, 5,600, 4,500 and 4,300. Add them to get 27,300, divide by 6, and the monthly average is 4,550. That's a good number to budget with.
Shop sales. Comparing the mean and median of daily sales tells you whether one or two big days are hiding a slow normal week.
Cricket. A batting average is runs scored divided by the number of times you were out, not by innings played. A batter with 1,200 runs from 30 innings, 6 of them not out, was dismissed 24 times, so the average is 1,200 ÷ 24 = 50. It's a mean with a twist, which is a reminder to always check what the "n" really is.
Weather and trends. Daily temperatures bounce around. A 7-day moving average smooths them so you can see the real direction, and the Moving average tab does exactly that for any list in order.
Common mistakes
- Averaging averages when the groups are different sizes. Use the weighted or combined method instead.
- Using the mean on skewed data, such as incomes or house prices, where a few very large values pull it up.
- Averaging percentages that come from different bases. 80% of 30 people and 60% of 70 people is 66% overall, not 70%.
- Using the simple mean for speeds when the distances are equal. Use total distance divided by total time.
- Forgetting zeros. A day with no sales still counts as a day. Leaving it out makes the average look better than it was.
- Rounding too early. Keep full precision through the working and round only the final answer.
- Mixing units, like marks out of 50 and marks out of 100 in the same list, without converting them first.
Frequently asked questions
How do you calculate an average?
Add all the numbers, then divide by how many numbers there are. For 70, 80 and 90, the sum is 240 and the count is 3, so the average is 80. This is the arithmetic mean, the one most people mean by average.
What is the difference between mean, median and mode?
The mean is the sum divided by the count. The median is the middle value of the sorted list. The mode is the value that appears most often. They can differ a lot when a few numbers are unusually large or small.
How do I find the average of percentages?
If the percentages come from the same total, add them and divide by the count. If they come from different totals, work out each part, add the parts, and divide by the combined total. 80% of 30 and 60% of 70 is 66% overall.
What is a weighted average?
A weighted average gives some values more influence than others. Multiply each value by its weight, add the results, and divide by the total weight. It is how exam grades with different percentages and GPA with credit hours are worked out.
Why can you not just average two averages?
Because the groups may be different sizes. A group of 40 should count for more than a group of 10. Multiply each average by its group size, add those totals, then divide by the total number of values.
How do I calculate average speed?
Divide the total distance by the total time. If you drive two equal distances at 40 and 60 km/h, the average speed is 48 km/h, not 50, because you spend more time at the slower speed.
When should I use the median instead of the mean?
Use the median when a few extreme values would distort the mean, such as incomes, house prices or a single very bad day of sales. If the mean and median are close, either one describes the data well.
Can a list have no mode or more than one mode?
Yes. If every value appears the same number of times, there is no mode. If two or more values tie for the highest count, the list has several modes. This calculator shows all of them, or says there is none.
What is the difference between population and sample standard deviation?
Population standard deviation divides by n and is used when you have every value. Sample standard deviation divides by n minus 1 and is used when your numbers are a small sample from a larger group. The sample figure is slightly larger.
How do I find averages in Excel or Google Sheets?
Use AVERAGE for the mean, MEDIAN for the median and MODE.SNGL for the mode. For a weighted average, use SUMPRODUCT of the values and weights divided by SUM of the weights. You can paste a column straight into this page too.
Disclaimer and method
This page and calculator are for general education and give calculation results only. They are not professional, academic or financial advice. Always check important results, such as official grades, against your school's or employer's own rules, because they may use different weights, rounding or methods.
Method. Mean = sum ÷ count, added in a way that avoids rounding drift. Median = middle of the sorted list. Mode = most frequent value, with none reported when every value appears equally often. Quartiles use linear interpolation (the same as Excel\'s QUARTILE.INC) and outliers lie beyond 1.5 × IQR from the quartiles. Geometric and harmonic means need positive numbers.