Average Calculator: Find the Mean, Median, Mode, Range, and More
An average can help you summarize a list of numbers, compare results, or understand a set of values. But the arithmetic mean is not always the only useful answer. The median can show the middle value, the mode identifies the most frequent value, and the range shows how far the values spread.
This average calculator brings these common calculations together. You can enter a list of numbers, calculate a weighted average, find the value needed to reach a target average, combine group averages, or work out average speed for equal-distance and equal-time journeys. The explanations and examples below show how each method works.
The Average Calculator
Working
Using the Average Calculator
The average calculator below works in five modes. Choose the mode that matches your problem, enter your numbers, and check the working shown with each result.
Step-by-step instructions
- Select the calculation mode that matches your problem.
- Enter the required numbers, values, weights, counts, or speeds.
- For average speed, select whether the journey covers equal distances or equal periods of time.
- Review the result and the calculation details.
- Check your entries if the result is unexpected. A missing value, an incorrect weight, or a wrong group count can change the answer.
Example 1: Find the average of a list
Find the average of 15, 14, 21, and 30. This is the simplest way to calculate average of numbers: add them and divide by the count.
| Step | Calculation |
|---|---|
| Add the values | 15 + 14 + 21 + 30 = 80 |
| Count the values | 4 |
| Divide the sum by the count | 80 ÷ 4 |
| Mean | 20 |
The average is 20.
Example 2: Use the weighted average mode
Enter 90 with weight 5, 80 with weight 3, and 70 with weight 2.
| Value | Weight | Value x weight |
|---|---|---|
| 90 | 5 | 450 |
| 80 | 3 | 240 |
| 70 | 2 | 140 |
| Total | 10 | 830 |
Weighted mean = 830 ÷ 10 = 83.
The plain mean is 80 because it gives all three values equal importance. The weighted mean is 83 because the higher value of 90 has the greatest weight.
Example 3: Find the score needed
Suppose your current values are 72, 80, and 78. You want an average of 80 after four values.
Target total: 80 × 4 = 320
Current total: 72 + 80 + 78 = 230
Required next value: 320 − 230 = 90
You need a value of 90 to reach an average of 80.
Example 4: Combine two group averages
The first group contains 4 numbers with a mean of 21. The second group contains 6 numbers with a mean of 27.
| Group | Count | Mean | Group total |
|---|---|---|---|
| First | 4 | 21 | 84 |
| Second | 6 | 27 | 162 |
| Combined | 10 | 246 |
Combined mean = 246 ÷ 10 = 24.6.
The overall average is 24.6, not 24. The two group averages cannot simply be averaged because the groups contain different numbers of values.
Example 5: Calculate average speed
A car travels at 60 km/h in one direction and returns over the same distance at 40 km/h.
For equal distances, use the harmonic mean:
2 × 60 × 40 / (60 + 40) = 48
The average speed for the complete journey is 48 km/h.
About the Average Calculator
An average calculator, sometimes called a mean calculator, is a tool that calculates a central or overall value from a set of numbers. In everyday use, the word average usually refers to the arithmetic mean: add the values and divide by how many values are included.
However, the mean is not the only way to describe a set of numbers. The median identifies the middle of an ordered list, the mode identifies the most frequent value, and the range measures the difference between the largest and smallest values.
These measures answer different questions. For example, the mean can change substantially when a list contains an unusually large value. The median may better represent the middle of that list because it depends on the ordered position of the values rather than their size.
An average calculator can help you compare these results and choose the measure that makes sense for your data. That is why this average calculator shows all four measures together, so you can pick the one that fits your question.
Mean, median, mode, and range on one list
Consider these six values: 80, 90, 90, 100, 85, and 90.
| Measure | Result | What it tells you |
|---|---|---|
| Mean | 89.17 | The sum divided by the count |
| Median | 90 | The middle value after sorting |
| Mode | 90 | The value that appears most often |
| Range | 20 | The maximum minus the minimum |
The mean is 89.17, while the median and mode are both 90. The range is 20 because 100 − 80 = 20. Together, these four measures make this page a median mode range calculator as well.
A second list shows how the measures can differ:
| Measure | Result |
|---|---|
| Mean | 88.38 |
| Median | 87.5 |
| Mode | 100 |
| Range | 22 |
These results come from the list 100, 78, 93, 84, 91, 100, 82, and 79. A mean median mode comparison like this shows why one number rarely tells the whole story.
How to Calculate an Average
The standard formula for the arithmetic mean is:
Mean = Sum of all values / Number of values
The average calculator applies this formula to any list you enter, and the steps below show how to do it by hand.
To calculate an average by hand:
- Write down every value that belongs in the calculation.
- Add the values to find the sum.
- Count how many values are included.
- Divide the sum by the count.
- Round the result only after completing the calculation.
How to find the mean
For example, the numbers 4, 8, 15, 16, 23, and 42 have a sum of 108. There are 6 values, so 108 ÷ 6 = 18.
How to find the median
The median is the middle value after sorting the numbers from smallest to largest.
With an odd number of values, take the single middle value.
With an even number of values, calculate the mean of the two middle values.
For example, sort 1, 2, 3, 4, and 5. The middle value is 3, so the median is 3.
For 4, 7, 10, and 13, the two middle values are 7 and 10. Their average is 8.5, so the median is 8.5.
How to find the mode
The mode is the value that occurs most often.
A list can have one mode.
It can have multiple modes if several values tie for the highest frequency.
If every value appears once, there is no mode.
For example, 1, 2, 2, 3, 3, and 4 have two modes: 2 and 3. Both appear twice, more often than the other values.
How to calculate the range
Subtract the smallest value from the largest value:
Range = Maximum − Minimum
For 10, 20, 30, 40, and 1000, the range is 1000 − 10 = 990.
Average of decimals
Decimals follow the same formula as whole numbers. Add them without changing their place values, then divide by the count.
| Numbers | Calculation | Mean |
|---|---|---|
| 2.5, 3.5, 4.5 | 10.5 ÷ 3 | 3.5 |
| 0.1, 0.2 | 0.3 ÷ 2 | 0.15 |
| 63.3, 58.0, 64.6, 59.4, 62.2 | 307.5 ÷ 5 | 61.5 |
| 2.5, 3, 3, 4.1, 5, 7.4, 9 | 34 ÷ 7 | 4.86 |
Negative numbers and zero
Negative values and zero are included in the calculation just like positive numbers. Keep each sign when adding the values.
| Numbers | Sum | Count | Mean |
|---|---|---|---|
| −10, 0, 10 | 0 | 3 | 0 |
| −5, −10, −15 | −30 | 3 | −10 |
| −20, 10, 20, 30 | 40 | 4 | 10 |
| −3, 2, 5, −1 | 3 | 4 | 0.75 |
| −5, −2, 0, 3, 4 | 0 | 5 | 0 |
Zero counts as a value. It is not the same as a blank entry. For example, the average of 0, 10, and 20 is 10. The average of 5, 0, and 7 is 4.
Average of numbers divisible by 5
To find the average of all numbers between 9 and 32 that are divisible by 5, first list the qualifying values:
10, 15, 20, 25, and 30.
Their sum is 100. Divide by 5 values:
100 ÷ 5 = 20.
Rounding the result
Calculate using exact, unrounded values. Round only the displayed result, using two decimal places when necessary and removing unnecessary trailing zeros.
For example, display 18 instead of 18.00, 80.2 instead of 80.20, and 24.6 instead of 24.60. A result such as 4.86 keeps both decimal places.
Weighted Average
A weighted average gives some values more influence than others. Instead of treating every number equally, it uses a weight to show how much each value contributes to the result.
Use a weighted average when the values do not have equal importance. For example, a value with weight 5 contributes more than one with weight 2. This average calculator handles weights in its weighted mode, and the examples below show the working.
Weighted average formula
Weighted Mean = sum of (Value × Weight) / sum of Weights
Multiply each value by its weight, add those products, and divide by the sum of the weights.
Weighted mean examples
| Values and weights | Weighted mean | Plain mean |
|---|---|---|
| 90 at 5, 80 at 3, 70 at 2 | 83 | 80 |
| 90 at 40, 80 at 30, 70 at 30 | 81 | 80 |
| 85 at 25, 92 at 25, 78 at 50 | 83.25 | 85 |
| 3 at 1, 4 at 2, 5 at 3 | 4.33 | 4 |
| 60 at 10, 100 at 90 | 96 | 80 |
| 68 at 20, 72 at 30, 58 at 50 | 64.2 | 66 |
| 80 at 20%, 70 at 30%, 90 at 50% | 82 | 80 |
The weighted average calculator displays the weighted mean and plain mean side by side. This makes it easier to see how the weights affect the result.
When weights change the answer
Suppose three tests have scores of 70, 80, and 90. A final test counts three times as much as each earlier test, and the final score is 100.
The weighted calculation is:
(70 + 80 + 90 + (100 × 3)) / (1 + 1 + 1 + 3) = 540 / 6 = 90
The weighted mean is 90. The plain mean of the four scores would be 85, because it would treat the final test as equal to each earlier test.
Weights can also apply to quantities other than scores. For example, buying 10 items at $5 each and 90 items at $9 each gives an average price of:
((10 × 5) + (90 × 9)) / 100 = $8.60
The average price is $8.60 per item, not $7. The larger purchase of 90 items has more influence on the overall average.
Weighted average versus plain average
A plain average gives every value equal importance. A weighted average accounts for differences in importance or quantity.
Use the plain mean when each value should count once. Use the weighted mean when the problem gives different weights or group sizes. A calculation like this is called an average with weights. If you are working out average grades rather than general numbers, use the dedicated Average Grade Calculator instead.
Average of Averages
An average of averages can be misleading when the groups contain different numbers of values. To find the correct combined mean, use each group’s count as its weight. The average calculator does this weighting for you in its combined mode.
Combined Mean = ((n1 × m1) + (n2 × m2)) / (n1 + n2)
Here, n1 and n2 are the group counts, while m1 and m2 are their means.
Why group counts matter
Suppose one group has 4 numbers with an average of 21, and another has 6 numbers with an average of 27.
First group total: 4 × 21 = 84
Second group total: 6 × 27 = 162
Combined total: 84 + 162 = 246
Combined count: 4 + 6 = 10
Overall average: 246 ÷ 10 = 24.6
Simply calculating (21 + 27) ÷ 2 gives 24, which is incorrect because the groups are different sizes.
Combined average examples
| Group 1 | Group 2 | Correct combined mean | Plain mean of group means |
|---|---|---|---|
| 4 values averaging 21 | 6 averaging 27 | 24.6 | 24 |
| 10 values averaging 80 | 40 averaging 90 | 88 | 85 |
| 7 values averaging 17 | 4 averaging 19 | 17.73 | 18 |
| 4 exams averaging 80 | 2 averaging 100 | 86.67 | 90 |
| 4 values averaging 12 | 8 averaging 18 | 16 | 15 |
Rounding note: The third combined mean is 195 ÷ 11 = 17.7272…, which rounds to 17.73 under the two-decimal rounding rule. A value of 17.72 is truncated rather than rounded.
Combining an average when the group totals are known
You do not need to list every original value if you know each group’s average and count. Multiply each average by its count to recover the group total, then combine the totals and divide by the combined count.
For example, the average of 60 numbers is 50. The average of 45 of those numbers is 42. To find the average of the remaining 15:
Total of all 60 numbers: 60 × 50 = 3,000
Total of the 45 numbers: 45 × 42 = 1,890
Sum of the remaining 15: 3,000 − 1,890 = 1,110
Average of the remaining values: 1,110 ÷ 15 = 74
The average of the remaining numbers is 74.
Average of percentages
A similar issue occurs when combining percentages from groups with different totals. Do not simply average the percentages unless the groups have the same denominator.
Combined Percentage = Total parts / Total whole × 100
For example, 40 out of 50 is 80%, and 60 out of 100 is 60%. The combined result is:
(40 + 60) / (50 + 100) × 100 = 66.67%
The combined percentage is 66.67%, not 70%.
| Group results | Correct combined percentage | Plain mean of percentages |
|---|---|---|
| 40/50 and 60/100 | 66.67% | 70% |
| 50% of 10 and 5% of 1,000 | 5.45% | 27.5% |
| 9/10 and 30/50 | 65% | 75% |
| 50% of 10 and 90% of 40 | 82% | 70% |
| 8/10 and 90/100 | 89.09% | 85% |
| 85% of 20 and 90% of 100 | 89.17% | 87.5% |
The correct result depends on the number of items or total possible amount in each group.
For calculations involving percentage changes, discounts, or percentage differences, use a percentage calculator rather than treating percentages as ordinary values here.
Average Speed
Average speed is the total distance traveled divided by the total time taken. It is not always the simple mean of the speeds. The average calculator works out average speed from the two speeds and the journey type.
Average Speed = Total Distance / Total Time
The correct method depends on whether the journey covers equal distances or takes equal amounts of time at each speed.
Equal distances: use the harmonic mean
When two parts of a journey cover the same distance at speeds a and b, use:
Average Speed = 2ab / (a + b)
For a trip at 60 km/h in one direction and 40 km/h on the return over the same distance:
2 × 60 × 40 / (60 + 40) = 48
The average speed is 48 km/h, not 50 km/h. The slower part takes longer, so it has more influence on the average.
The same method applies to a 120-mile journey at 60 mph followed by a 120-mile return at 40 mph. The average speed is 48 mph.
Equal times: use the arithmetic mean
When each speed applies for the same amount of time, the arithmetic mean is correct.
For example, traveling at 60 mph for one hour and 40 mph for another hour gives:
(60 + 40) / 2 = 50
The average speed is 50 mph because both speeds apply for equal periods of time.
Average speed examples
| Journey | Average speed | Why |
|---|---|---|
| 60 km/h out and 40 km/h back over equal distances | 48 km/h | Harmonic mean |
| 60 km/h out and 30 km/h back over equal distances | 40 km/h | Harmonic mean |
| 30, 40, and 60 km/h over three equal-distance legs | 40 km/h | Harmonic mean |
| 60 mph for 1 hour and 40 mph for 1 hour | 50 mph | Arithmetic mean |
For multiple equal-distance legs, the harmonic mean is:
Harmonic Mean = n / (1/x1 + 1/x2 + … + 1/xn)
The average speed calculator asks you to choose equal distance or equal time, then identifies which mean it uses. This distinction prevents a common mistake: averaging two speeds without considering how long or how far each speed applies.
Common Average Calculation Mistakes
A calculation can be mathematically correct but still answer the wrong question if the wrong values or method are used. Check these common mistakes before accepting an average. The average calculator cannot tell you which measure fits your question, so check the method before you trust the result.
1. Averaging group averages without considering group size
A group with 40 values should have more influence on a combined mean than a group with 10 values. Use the combined mean formula and include each group’s count.
2. Averaging percentages with different totals
An 80% result from 10 items should not automatically count as much as a 60% result from 100 items. Combine the actual parts and totals when the groups have different sizes.
3. Leaving zero out of the list
Zero is a numerical value. If it belongs in the data, include it in both the sum and the count. Do not treat it as a blank entry.
4. Rounding before the final calculation
Keep the full values during the calculation. Round the displayed result at the end. Early rounding can cause a small difference in the final answer.
5. Treating the mean and median as interchangeable
The mean uses every value, so an unusually high or low value can pull it away from the center of most of the list. The median depends on the middle position after sorting and is less affected by an extreme value.
Outlier effect on mean, median, and mode
Consider this list:
12, 15, 18, 15, 22, 30, 15, 18, 25
Its mean is 18.89, median is 18, mode is 15, and range is 18. Now replace 30 with 300.
| Measure | Original list | After replacing 30 with 300 |
|---|---|---|
| Mean | 18.89 | 48.89 |
| Median | 18 | 18 |
| Mode | 15 | 15 |
| Range | 18 | 288 |
The mean rises from 18.89 to 48.89 because the value 300 increases the total. The median and mode stay the same because the middle position and most frequent value have not changed.
6. Dropping the lowest value when it should count
The drop-lowest option removes the smallest value and recalculates the results. Use it only when your calculation rules allow that value to be excluded. If the value is part of the actual data, removing it changes the question being answered.
7. Using a simple average for compound growth rates
Growth rates across multiple periods should not automatically be combined with an arithmetic mean. For compound growth, use the geometric mean.
The geometric mean is:
Geometric Mean = (x1 × x2 × … × xn)^(1/n)
For percentage growth, convert each rate into a growth factor first, calculate the geometric mean of those factors, and subtract 1.
| Growth over periods | Correct average growth per period | Simple arithmetic mean |
|---|---|---|
| +50%, then −50% | −13.4% | 0% |
| +10%, +20%, then −5% | 7.84% | 8.33% |
| +10%, then +50% | 28.45% | 30% |
For example, a 50% increase followed by a 50% decrease does not return the starting value. The combined growth factor is 1.5 × 0.5 = 0.75, which represents a 25% total decrease over two periods. The average compound growth rate is approximately −13.4% per period, not 0%.
The geometric mean is included here to explain compound growth. It is not a mode in this calculator.
Why Your Calculated Average May Differ
If your answer does not match another result, check the inputs, count, calculation method, and rounding. Different methods can produce different answers from the same data. If the average calculator gives a different answer from another source, the method or the inputs usually differ.
Incorrectly entered numbers
Suppose the average of 100 numbers is 45. Two entries were recorded incorrectly: 15 and 43 were entered as 61 and 34.
The original total was:
100 × 45 = 4500
Correct the total by removing the incorrect entries and adding the right ones:
4500 − 61 − 34 + 15 + 43 = 4463
Divide the corrected total by 100:
4463 ÷ 100 = 44.63
The correct average is 44.63.
Removing values from a list
The average of 50 numbers is 20. If 37 and 43 are discarded, find the average of the remaining 48 numbers.
| Step | Calculation |
|---|---|
| Original total | 50 × 20 = 1,000 |
| Sum of discarded values | 37 + 43 = 80 |
| Remaining total | 1,000 − 80 = 920 |
| Remaining count | 50 − 2 = 48 |
| New average | 920 ÷ 48 = 19.17 |
The correct average is 19.17. Subtracting 80 from the count instead of the total would produce an incorrect result.
Finding the value needed for a target average
The score-needed formula is:
Value Needed = (Target Average × Total Count) − Current Sum
For example, if your current values are 85, 92, and 78, and you want an average of 88 after four values:
Target total: 88 × 4 = 352
Current total: 85 + 92 + 78 = 255
Required next value: 352 − 255 = 97
You need 97 to reach an average of 88.
Score-needed examples
| Values or current average | Target average | Total count | Next value needed |
|---|---|---|---|
| 72, 80, 78 | 80 | 4 | 90 |
| 85, 92, 78 | 88 | 4 | 97 |
| 75, 80, 85 | 80 | 4 | 80 |
| 4 values averaging 85 | 87 | 5 | 95 |
| 4 values averaging 72 | 75 | 5 | 87 |
| 76, 80, 82 | 80 to 89 | 4 | 82 to 118 mathematically |
In the last example, the next value must be at least 82 to reach an average of 80. Reaching an average of 89 would require 118, which is not possible if the next value cannot exceed 100. With a maximum value of 100, the achievable next-value range is 82 to 100.
If the required value is higher than the maximum allowed in your situation, the target cannot be reached with the remaining value.
Mean versus median can explain different answers
A result based on the mean may differ from one based on the median, even when both calculations use the same list. For example, 1, 2, 3, 4, and 100 have a mean of 22 and a median of 3. The value 100 pulls the mean upward, while the median remains the middle value.
Check which measure the original question asks for before comparing results.
Frequently Asked Questions
Final Thought
The right average depends on the question and the data. Use the mean for an ordinary numerical average, the median when the middle position matters, the mode to identify the most frequent value, and weighted or combined calculations when values or groups have different importance. Check the inputs and method before relying on the result.
