%Compound Calculator

Guides

Average Calculator Guide: Mean, Median, Mode and Weighted Average

Short answer: Mean = sum / count. For [72, 85, 90, 64, 85, 100, 58] the mean is 79.14, the median 85 and the mode 85. Use the median when a few extreme values would distort the mean.

The four measures

The mean adds all values and divides by their count. The median is the middle value after sorting (or the average of the two middle values). The mode is the most frequent value. The range is the maximum minus the minimum.

Data setMeanMedianModeRange
72, 85, 90, 64, 85, 100, 5879.14858542
30, 32, 35, 31, 24073.632none210

When the mean misleads

In the second set, one outlier of 240 lifts the mean to 73.6 although four of five values sit between 30 and 35. The median of 32 describes the typical value better. Income and house prices are usually reported as medians for exactly this reason.

Weighted average

When items count unequally, multiply each value by its weight, add, and divide by total weight. A course with exams 40%, project 35% and homework 25%, scored 78, 90 and 96, gives (0.40 x 78 + 0.35 x 90 + 0.25 x 96) = 86.7. The plain average of the three scores would be 88, which ignores that exams weigh more.

ComponentWeightScoreContribution
Exams40%7831.2
Project35%9031.5
Homework25%9624
Total100%86.7

Averaging rates and prices

Averaging rates needs care. Driving 60 km at 30 km/h and 60 km at 60 km/h takes 2 h + 1 h = 3 h for 120 km, so the average speed is 40 km/h, not 45. The harmonic mean applies when the distance is equal. Likewise, investment returns compound, so multi-year averages should be geometric, as covered in our CAGR material.

Practical advice

Before relying on any average, ask what question it answers. A teacher wants the class mean to see overall performance, but a parent wants the median to know whether their child sits above or below the typical student. Report the sample size and the spread alongside the centre, for example the range or the standard deviation, so a reader can judge how representative it is. When combining group averages, never average the averages unless the groups are the same size: weight each group mean by its count. A store with 10 customers averaging $20 and another with 90 averaging $50 has a combined average of 47, not 35. Whatever the calculation, write the units beside every figure, keep full precision until the final line, and verify the result with a rough estimate done in your head. If the estimate and the answer disagree by more than a few percent, recheck the inputs before trusting either. A second pass using a different method, such as converting to a different unit and back, catches most slips, and saving your inputs makes it easy to repeat the calculation later if something changes.

Checking your data

Sort the values, scan for typos, and compare the mean with the median. A big gap signals skew or an outlier. State how many values you used, since an average of three numbers says little. Our average calculator handles lists and shows all four measures together.

Sources

Related

Educational estimate, not financial advice. Found an error? Tell us.