Average Calculator
The mean is the sum of the values divided by how many there are: 85, 92, 78, 92, 88, 95, 70 and 80 total 680, so the mean is 680 ÷ 8 = 85, the median 86.5 and the mode 92. Switch to a weighted average for grades with different weights or shares bought at different prices.
By the Calculators With Steps team · Updated November 10, 2026 · How we check our math
- Median
- 86.5
- Mode
- 92appears 2 times
- Range
- 25min 70, max 95
- Count
- 8
- Sum
- 680
- Geometric mean
- 84.612677
- Harmonic mean
- 84.210513
Step-by-step working
- Add the values: 85 + 92 + 78 + 92 + 88 + 95 + 70 + 80 = 680
- Mean = sum ÷ count = 680 ÷ 8 = 85
- Sort the values: 70, 78, 80, 85, 88, 92, 92, 95
- Median: with 8 values (even), average the middle two, values 4 and 5: (85 + 88) ÷ 2 = 86.5
- Mode: 92 appears 2 times, more than any other value
- Range = largest − smallest = 95 − 70 = 25
- Geometric mean = (product of the values)^(1/8) = 84.612677
- Harmonic mean = 8 ÷ (sum of 1/x) = 8 ÷ 0.09500002 = 84.210513
How to use the average calculator
Choose Mean, median, mode and paste or type your numbers, separated by commas, spaces or new lines. The calculator sorts them, finds every common type of average and shows the working. Choose Weighted average when some values count more than others: enter one value and its weight per line, such as 90, 30. Weights can be percentages, credit hours, quantities or any positive numbers, and they don’t have to add up to 100.
Average formulas
- Mean (arithmetic average) = sum of values ÷ number of values
- Median = the middle value of the sorted list. With an even count, it is the average of the two middle values.
- Mode = the value that occurs most often. A list can have one mode, several, or none.
- Range = largest value − smallest value
- Weighted average = Σ(value × weight) ÷ Σ(weight)
- Geometric mean = the nth root of the product of n values (all must be positive)
- Harmonic mean = n ÷ (sum of the reciprocals 1/x)
Worked example: test scores
Eight test scores: 85, 92, 78, 92, 88, 95, 70 and 80.
- Mean: the sum is 680, and 680 ÷ 8 = 85.
- Median: sorted, the scores are 70, 78, 80, 85, 88, 92, 92, 95. The middle two are 85 and 88, so the median is 86.5.
- Mode: 92 appears twice and every other score once, so the mode is 92.
- Range: 95 − 70 = 25.
- Geometric mean: 84.61, and harmonic mean: 84.21. Both sit slightly below the arithmetic mean, as they always do when the values differ.
The median is a little above the mean here because one low score, 70, pulls the mean down more than it moves the middle of the list.
Weighted average for grades
When parts of a course count differently, a plain average gives the wrong grade. Suppose homework is worth 30%, tests 50% and the final exam 20%, and you scored 90, 82 and 75:
| Part | Score | Weight | Score × weight |
|---|---|---|---|
| Homework | 90 | 30 | 2,700 |
| Tests | 82 | 50 | 4,100 |
| Final exam | 75 | 20 | 1,500 |
| Total | 100 | 8,300 |
The weighted average is 8,300 ÷ 100 = 83. A simple average of the three scores would be 82.33, which undercounts the heavily weighted tests. The same method works for GPA with credit hours as weights; the GPA calculator handles letter grades for you, and the grade calculator works out what you need on the final.
Average price of shares (stock averaging)
Investors often buy the same stock at different prices and need the average cost. This is a weighted average, with the number of shares as the weight. Buy 100 shares at 250 and another 50 at 220 and you have paid 25,000 + 11,000 = 36,000 for 150 shares. The average price is 36,000 ÷ 150 = 240. The simple average of 250 and 220 is 235, which is wrong because you bought twice as many shares at the higher price. Enter 250, 100 and 220, 50 on two lines in weighted mode to check your own trades.
Which average should you use?
- Mean works well for symmetric data without extreme values, such as test scores or daily temperatures.
- Median is better for skewed data. Five salaries of 30, 32, 35, 38 and 200 thousand have a mean of 67 thousand but a median of 35 thousand, which describes a typical person far better.
- Mode is the only average for categories, such as the most common shoe size sold.
- Geometric mean is right for growth rates. An investment that gains 50% one year and loses 50% the next turns 100 into 150 and then 75. The arithmetic mean of the returns is 0%, but the geometric mean of the growth factors 1.5 and 0.5 is 0.866, a loss of about 13.4% a year. The CAGR calculator applies this to investments.
- Harmonic mean is right for averaging rates over the same distance, such as speeds. Driving one way at 60 km/h and back at 40 km/h averages 48 km/h.
Tips for accurate averages
- Check for typing errors first. A misplaced decimal point (8.5 instead of 85) drags the mean far more than the median.
- Use a dot for decimals. A comma separates values, so 2,5 is read as two numbers.
- Report the median alongside the mean when the data are skewed or contain outliers.
- To see how spread out the values are, not just their center, use the standard deviation calculator.
Average Calculator: frequently asked questions
How do you calculate the average of a set of numbers?
Add the numbers together and divide by how many there are. For 85, 92 and 78 the sum is 255, and 255 ÷ 3 = 85. This is the arithmetic mean, which is what 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 once the numbers are sorted. The mode is the value that appears most often. For 70, 78, 80, 85, 88, 92, 92, 95 the mean is 85, the median is 86.5 and the mode is 92.
How do I calculate my average marks?
Add up the marks for each subject and divide by the number of subjects. Scores of 72, 85, 90, 64 and 79 add up to 390, and 390 ÷ 5 = 78. If every paper is out of 100, that is also your average percentage.
How do I calculate a weighted average?
Multiply each value by its weight, add the products, and divide by the total of the weights. Homework 90 (30%), tests 82 (50%) and a final exam of 75 (20%) give (2,700 + 4,100 + 1,500) ÷ 100 = 83.
How do I calculate the average price of shares I bought at different prices?
Use a weighted average with the number of shares as the weight. Buying 100 shares at 250 and 50 shares at 220 costs 36,000 for 150 shares, an average price of 240. The simple average of the two prices, 235, would understate it.
What if two numbers appear equally often?
Then the data have two modes and are called bimodal. In 2, 3, 3, 5, 5, 7 both 3 and 5 appear twice, so the modes are 3 and 5. If every value appears only once, there is no mode.
How do I find the median of an even number of values?
Sort the values and average the two in the middle. With eight test scores sorted as 70, 78, 80, 85, 88, 92, 92, 95, the middle pair is 85 and 88, so the median is (85 + 88) ÷ 2 = 86.5.
What is my average speed if I drive there at 60 km/h and back at 40 km/h?
It is 48 km/h, not 50. You spend more time at the slower speed, so the right average is the harmonic mean: 2 ÷ (1/60 + 1/40) = 48.
How we checked this page: every figure in the examples and FAQs above is produced by this calculator and verified by automated tests against known answers, and the rules and rates come from the sources below. Last updated . Spotted a problem? Tell us.