Type or paste your numbers and this average calculator returns the arithmetic mean, the median and, if you add weights, the weighted average. It also shows the count, sum, minimum and maximum, so you can check the data at a glance.
Formula
Mean = (x₁ + x₂ + ... + xₙ) ÷ n. Weighted average = Σ(xᵢ × wᵢ) ÷ Σwᵢ. Median = middle value of the sorted list (average of the two middle values when n is even).
How it works
Type the numbers separated by commas or spaces (7, 8.5, 9). If you use a decimal comma, separate the values with semicolons (7,5; 8; 9,5) or with spaces (7,5 8 9,5). For a weighted average, type one weight per number in the same order; if the weights field is empty, the weighted average equals the simple mean. The median sorts the list and takes the middle value, so it is not pulled by one very high or very low number.
How to calculate an average step by step
The simple average (arithmetic mean) is the sum of the values divided by how many there are. For 7, 8.5 and 9 the sum is 24.5 and there are 3 values, so the mean is 24.5 ÷ 3 = 8.1667. The median is found by sorting the list and taking the middle value: 8.5 here.
A weighted average gives some values more importance. Multiply each value by its weight, add those products and divide by the sum of the weights. Type the weights in the second field in the same order as the numbers; if you leave it empty, the weighted average equals the simple mean.
Worked example: weighted average of grades
A student scored 7 on homework (weight 2), 8.5 on a project (weight 3) and 9 on the exam (weight 5). The products are 7 × 2 = 14, 8.5 × 3 = 25.5 and 9 × 5 = 45, which add up to 84.5. The weights add up to 10, so the weighted average is 84.5 ÷ 10 = 8.45.
The simple mean of the same grades is 8.17, lower because the strong exam grade counts the same as the homework. That is exactly what the default example in the calculator shows. To find what you still need on a final exam, use the final grade calculator.
Accepted input formats
You can separate numbers with commas or spaces and use a dot for decimals: 7, 8.5, 9 or 7 8.5 9. If you write decimals with a comma, as in most of Europe and Latin America, separate the values with semicolons (7,5; 8; 9,5) or spaces only (7,5 8 9,5). Line breaks also work, so you can paste a column straight from a spreadsheet.
Anything that is not a number is ignored. A list of 4 values such as 6; 7,5; 8; 10 gives a mean of 7.875 and a median of 7.75, the average of the two middle values 7.5 and 8.
Mean, median or weighted average: which one to use
Use the mean for values of similar importance without extreme outliers, like daily temperatures. Use the median for skewed data such as home prices or salaries, where one very large value would drag the mean up. Use the weighted average when items count differently: grades with different weights, prices bought in different quantities or a stock portfolio.
A common mistake is averaging percentages or averages directly. The average of two class averages is only right if the classes have the same size; otherwise weight each average by its number of students. To measure how spread out the values are, run the same list through the standard deviation calculator.
Frequently Asked Questions
- What is the difference between mean and median?
- The mean adds everything and divides by the count; the median is the middle value. For 2, 3, 4 and 50 the mean is 14.75 but the median is 3.5, which better describes a typical value when there is an outlier.
- How do I calculate a weighted average?
- Multiply each value by its weight, add the results and divide by the total of the weights. For 7, 8.5 and 9 with weights 2, 3 and 5: (14 + 25.5 + 45) ÷ 10 = 8.45.
- Do the weights need to add up to 100?
- No. Any positive numbers work because the calculator divides by their sum. Weights 2, 3, 5 give the same result as 20%, 30%, 50%.
- How do I find the median of an even number of values?
- Sort the list and average the two values in the middle. For 6, 7.5, 8 and 10 the middle values are 7.5 and 8, so the median is 7.75.
- What is the difference between average and mean?
- In everyday use they are the same thing: the arithmetic mean. In statistics, average can also refer to the median or mode, so the calculator shows the mean and the median separately.