Enter numbers to see mean, median, mode, and full statistical breakdown.
How to Calculate an Average
The average, or arithmetic mean, is the sum of the numbers divided by how many there are: for 4, 8, 15, 16, 23 and 42 it is 108 ÷ 6 = 18. Paste your numbers above to get the mean along with the median, mode, range, standard deviation and geometric mean, so you can see whether an outlier is pulling the average.
- Add all the numbers together. For 4, 8, 15, 16, 23 and 42 the sum is 108.
- Count how many numbers there are: 6.
- Divide the sum by the count: 108 ÷ 6 = 18.
The median of the same list is 15.5, the average of the two middle values (15 and 16), because the list has an even number of values. When the mean and the median are far apart, one or two large or small values are pulling the mean.
Mean, Median and Mode Side by Side
Six small data sets and what each measure says about them. SD is the population standard deviation, the main figure the calculator shows.
| Numbers | Mean | Median | Mode | SD |
|---|---|---|---|---|
| 4, 8, 15, 16, 23, 42 | 18 | 15.5 | None | 12.32 |
| 1, 2, 2, 3, 100 | 21.6 | 2 | 2 | 39.21 |
| 10, 20, 30, 40 | 25 | 25 | None | 11.18 |
| −5, 0, 5, 10 | 2.5 | 2.5 | None | 5.59 |
| 3, 3, 3, 3 | 3 | 3 | 3 | 0 |
| 12, 7, 3, 14, 6, 11, 5, 4, 12, 14 | 8.8 | 9 | 12 and 14 | 4.02 |
The second row shows why the median matters: one value of 100 lifts the mean to 21.6 while four of the five numbers are 3 or less. The last row is the Sample button's data, which has two modes.
Weighted Average: Worked Examples
The calculator above treats every number equally. When some values count more than others, multiply each value by its weight, add the results and divide by the total weight.
A course grade
Homework counts 20% (you scored 92), quizzes 30% (85) and the final exam 50% (78). The weighted average is 0.2 × 92 + 0.3 × 85 + 0.5 × 78 = 18.4 + 25.5 + 39 = 82.9. The plain average of the three scores would be 85, which overstates the grade because the lowest score carries the most weight.
An average purchase price
You buy 100 shares at $20 and later 300 shares at $24. The average cost is (100 × 20 + 300 × 24) ÷ 400 = 9,200 ÷ 400 = $23 a share, not the $22 you get by averaging the two prices, because more shares were bought at the higher price.
A grade point average works the same way, with credit hours as the weights; the GPA calculator handles that for you.
Which Average Should You Use?
- Mean: for data without extreme values, such as daily temperatures or repeated measurements.
- Median: for skewed data with outliers, such as incomes, home prices or response times.
- Mode: for the most common choice or size, including non-numeric categories like shoe sizes sold.
- Geometric mean: for growth rates and ratios that multiply. It needs every value above zero, so the calculator shows N/A if any value is 0 or negative.
- Harmonic mean: for averaging rates over equal distances, such as speeds on two legs of the same length. It also needs positive values.
Edge cases the calculator handles
Negative numbers and zero are fine for the mean, median, mode, range and standard deviation. With a single number, the standard deviation is 0 and the sample standard deviation is not defined, because it divides by n − 1. If every value appears the same number of times, there is no mode. Do not type commas inside numbers: 1,000 is read as two numbers, 1 and 0. For a deeper look at spread, use the standard deviation calculator.