Numbers & everyday maths
How to calculate average: formula and examples
Add all the numbers, count how many numbers there are, then divide the total by that count. This gives the arithmetic mean, the average used when every value has equal weight.
Open the average calculatorAverage = sum of values ÷ number of values
For 4, 6 and 8: the sum is 18, the count is 3, and the average is 18 ÷ 3 = 6.
Calculate an average in three steps
Suppose four reading sessions last 20, 25, 30 and 45 minutes. To find the average time per session:
- Add the values. 20 + 25 + 30 + 45 = 120 minutes.
- Count the values. There are four sessions. Count every observation, including repeated numbers.
- Divide the total by the count. 120 ÷ 4 = 30 minutes per session.
- 120 minTotal reading time
- ÷ 4Number of sessions
- 30 minAverage per session
Keep units consistent before adding. Convert an hour to 60 minutes if the other values are in minutes. The average then uses the same unit as the input values.
Quick check: an arithmetic mean must fall between the smallest and largest input. Here, 30 sits between 20 and 45. It need not match any individual value: the average of 2 and 3 is 2.5.
Include zeros, decimals and negative numbers
The formula does not change for these values. A zero adds nothing to the sum, but it still adds one to the count.
| Values | Sum ÷ count | Average |
|---|---|---|
| 0, 6, 12 | 18 ÷ 3 | 6 |
| 1.5, 2.5, 5 | 9 ÷ 3 | 3 |
| −6, −2, 5 | −3 ÷ 3 | −1 |
Zero is not the same as missing data
If a shop recorded 0, 6 and 12 orders over three days, its daily average is 6. Leaving out the zero gives 9, which answers a different question: the average for days with orders.
If the first day's record is missing, do not silently replace it with zero. You can report an average of 9 for the two recorded days, but you do not yet know the three-day average.
Round only the final result
For 2, 2 and 3, the average is 7 ÷ 3 = 2.333…, or 2.33 to two decimal places. Keep the original values during the calculation and round at the end to avoid unnecessary error.
When you need a weighted average
A simple mean gives each entered number equal importance. A weighted average is needed when numbers represent different quantities or have different assigned weights.
Do not simply average unequal groups
Suppose 10 quiz scores have an average of 80, while another 30 scores average 60. The overall average is not (80 + 60) ÷ 2 = 70, because the groups are different sizes.
- Recover each group's total: 10 × 80 = 800 and 30 × 60 = 1800.
- Add the totals and counts: 800 + 1800 = 2600 points across 40 scores.
- Divide: 2600 ÷ 40 = 65.
The general rule is sum of (value × weight) ÷ sum of weights. If the two groups had equal counts, averaging their means directly would work. If group means are rounded, the combined result is only approximate.
Percentages need the same care
A result of 9 out of 10 is 90%; 50 out of 100 is 50%. The combined success rate is 59 ÷ 110 × 100 ≈ 53.64%, not 70%. Add the successes and the totals before calculating the percentage.
The ToolPixels Average Calculator treats every input equally. It does not accept a separate weight for each value. Use the original individual observations for an overall mean, or calculate the weighted totals as above.
Mean, median and mode are different
People sometimes use “average” loosely. This guide and the calculator use the arithmetic mean. The median is the middle value after sorting; with an even count, it is the mean of the two middle values. The mode is the most frequent value.
For 2, 3, 3, 4 and 28:
- Mean: 40 ÷ 5 = 8.
- Median: 3, the middle value.
- Mode: 3, which appears twice.
The large value, 28, pulls the mean upward. If you want to describe a typical observation in a list with extreme values, compare the mean with the median. Do not delete a real value just because it makes the average less convenient.
Check your numbers with ToolPixels
Use the free Average Calculator for a list of equally weighted numbers. It returns the mean, count, sum, smallest value and largest value.
- Enter your values in Numbers, separated by commas, spaces, semicolons or new lines.
- Use a period for decimals. Enter one thousand as 1000, not 1,000: commas separate values. Leave out unit labels and percent signs.
- Select Calculate average. Check the count against your original list to catch a missing value or a misplaced separator.
- Read the sum and average. Use Copy results to keep the summary, or Reset to start again.
Try 20, 25, 30, 45. You should see an average of 30, a count of 4 and a sum of 120. The calculator displays up to 12 significant digits, so long decimal results may be rounded.
Common questions
Do repeated values count more than once?
Yes. For 4, 4 and 10, the count is 3 and the average is 18 ÷ 3 = 6. Removing one 4 changes the data and gives 7 instead.
Can an average be zero or negative?
Yes. The average of −5 and 5 is zero. The average of −8 and −4 is −6. Keep negative signs when adding the values.
What if there is only one number, or none?
One number has itself as its average: 7 ÷ 1 = 7. An empty list has no arithmetic mean because dividing by a count of zero is undefined. Enter at least one number.