Przejdź do treści
Liczbnik
Current for 2026Methodology

Weighted Average Calculator

The weighted average (WA) is one of the most important mathematical formulas used in education, statistics, and finance. Unlike a simple arithmetic mean, each value is assigned a weight that reflects its relative importance. The formula is: WA = Σ(xᵢ × wᵢ) / Σwᵢ — the sum of the products of values and weights divided by the sum of weights. This calculator supports up to 5 value–weight pairs. Simply enter a value (grade or other number) and the corresponding weight for each entry. Pairs with a weight of 0 are automatically skipped, preventing division-by-zero errors. Results are rounded to 2 decimal places. The tool is ideal for students computing weighted grade averages (e.g. exam weight 3, quiz weight 1), for teachers calculating assessment results, and for anyone who needs a quick and reliable statistical computation.

Na tej stronie

How the weighted average calculator works

1. Enter the value (grade or number) in the "Grade" field for each entry. 2. Enter the corresponding weight in the "Weight" field. A weight of 0 means that entry is excluded. 3. Click "Calculate". The calculator returns: • Weighted average (main result) — rounded to 2 decimal places, • Sum of weights — total sum of all included weights, • Weighted sum — the numerator value Σ(x×w). Formula: WA = Σ(xᵢ × wᵢ) / Σwᵢ. Pairs with weight ≤ 0 are excluded. If all weights are 0, the result is 0.

Example: school grades with different weights

A student has: exam (grade 5, weight 3), quiz (grade 4, weight 1), oral answer (grade 3, weight 2). Calculation: numerator = 5×3 + 4×1 + 3×2 = 15 + 4 + 6 = 25. Denominator = 3 + 1 + 2 = 6. Weighted average = 25/6 ≈ 4.17. In comparison, the simple arithmetic mean would be (5+4+3)/3 = 4.0. The higher-weight exam raised the result.

Frequently asked questions

What is the weighted average formula?

The weighted average formula is WA = Σ(xᵢ × wᵢ) / Σwᵢ, where xᵢ is each value and wᵢ is the corresponding weight. It generalises the arithmetic mean by allowing each value to contribute differently based on its importance. When all weights are equal, the weighted average equals the arithmetic mean.

How is a weighted average different from a simple mean?

A simple arithmetic mean gives equal importance to every value: (x₁ + x₂ + … + xₙ) / n. A weighted average allows some values to count more than others. For example, an exam worth 60% of the grade counts three times more than a homework assignment worth 20%. The weighted average captures this importance correctly.

What happens when all weights are zero?

If all weights are zero, the denominator of the formula equals zero, which would cause a division-by-zero error. The calculator handles this edge case gracefully and returns 0 instead of an error. Always ensure at least one entry has a weight greater than zero to get a meaningful result.

Yes. The calculator accepts decimal weights such as 1.5 or 2.5. The weighted average formula works identically for integers and decimals. In practice, integer weights (1, 2, 3) are most common in schools, but decimal weights appear in university credit-hour systems and statistical analyses.

Assign numeric values to letter grades (e.g. A=4.0, B=3.0, C=2.0) and use the number of credit hours as the weight. For example: History (A=4.0, 3 credits) and Maths (B=3.0, 4 credits): WA = (4.0×3 + 3.0×4)/(3+4) = 24/7 ≈ 3.43. This is the standard credit-hour GPA calculation.

No. The weighted average is always within the range of the input values — it can never be higher than the highest value or lower than the lowest value in your dataset. It is simply a position between those extremes, weighted towards the values with higher weights.

The weighted sum Σ(x×w) and the sum of weights Σw are intermediate results that help you verify the calculation manually. Dividing the weighted sum by the sum of weights gives the final weighted average. Displaying them separately makes the calculation transparent and easier to audit.

Yes. Many European universities, especially those following the Bologna Process, calculate the Weighted Grade Point Average (wGPA) using ECTS credits as weights. Each module's grade is multiplied by its ECTS credits, and the total is divided by the sum of ECTS credits taken.

The online calculator supports up to 5 value–weight pairs. If you have more entries, you can aggregate them in multiple steps: calculate the weighted average of the first 5 entries, then treat that intermediate result as one value with the sum of its weights as the combined weight for the next step.

The calculator rounds the final result to 2 decimal places (e.g. 4.33 or 4.25). All intermediate computations are performed using full floating-point precision (IEEE 754 double). Rounding is applied only to the displayed output. Minor differences of ±0.01 can occur due to standard floating-point rounding.

Results are for informational and computational purposes only. The calculator applies the mathematical formula Σ(x×w)/Σw. The final grade depends on your school or university grading rules and may differ from the calculator's result. Do not treat the output as an official academic record.

  • Grade Average (GPA) Calculator

    Calculate your weighted and unweighted grade average instantly. Enter up to 5 grades and their weights to see your GPA or school grade average.

  • GCD and LCM Calculator

    Calculate GCD (greatest common divisor) and LCM (least common multiple) of two numbers. Free online calculator.

  • Average Calculator

    Calculate arithmetic mean, median, minimum and maximum from numbers. Free online average calculator.