← All guides
VARYVIA GUIDE

Weighted average explained with a simple example

See how weights change an average and how to calculate a weighted result correctly.

Last reviewed: 8 November 2026 · How we check our calculations

How it works

Multiply each value by its weight, add those products, then divide by the total weight. If weights are percentages that total 100%, the final division is effectively by 100.

Example

An 80 worth 40% and a 90 worth 60% gives (80×40 + 90×60) ÷ 100 = 86. The value with the larger weight has more influence on the result.

Check your weights

Weights do not always need to total 100 if you divide by their total, but they must use a consistent scale.

Ordinary versus weighted average

The ordinary average of 80 and 90 is 85 because both values are equally important. A weighted average using 40 and 60 makes the result 86 because 90 contributes more.

Zero and invalid weights

A zero-weight entry does not change the result. But the combined weight must be positive. Check that grades, hours or units represent the intended importance before entering them.

Where weighted averages hide

Many everyday figures are weighted averages: a GPA weights grades by credit hours, a consumer price index weights prices by how much households spend on each item, and the average cost of stock weights each purchase price by the quantity bought. Recognising this helps you check whether a figure was calculated fairly.

Averaging rates the right way

Rates need the right weights. If you drive one half of a journey at 60 km/h and the other half, of equal distance, at 90 km/h, your average speed is 72 km/h, not 75, because you spent longer at the slower speed. Weight speeds by time, not by distance.

Average purchase price

Buying 10 units at 50 and 30 units at 40 gives an average cost of (500 + 1,200) ÷ 40 = 42.5, not the simple average of 45. The larger purchase pulls the average towards its price, which is exactly what you want when valuing stock or investments.

Group sizes change the overall result

If 60% of 200 people in one region are satisfied and 80% of 800 people in another, the overall figure is (120 + 640) ÷ 1,000 = 76%, not the 70% you get by averaging the two percentages. Whenever groups differ in size, weight by the number of people.

Weighted average or median?

A weighted average uses every value, so one extreme value can pull it a long way. The median, the middle value, ignores how extreme the outliers are. Salaries and house prices are often reported as medians for this reason; grades and costs, where every unit counts, suit a weighted average.

Try the related calculator →

Spotted a mistake? Report an error.