Statistics Calculator
Mean, median, mode, five-number summary, IQR, outliers and SD with steps, a histogram and a box plot.
This average calculator finds the mean of any list of numbers: add the numbers, then divide by how many there are.
Average (mean)
85.50
684 ÷ 8 values
The average (arithmetic mean) of these 8 numbers is 85.50: their sum, 684, divided by 8. The median, 87, is close to the mean, so the values are spread fairly evenly around the average.
Add the values
Count the values
There are 8 values, so n = 8.
Divide the sum by the count
Rounded to 2 decimal places: 85.50.
Median (the middle value)
Sort the values: 73, 78, 85, 86, 88, 90, 92, 92. With 8 values, the median is the average of values number 4 and 5.
Mode and range
Mode: 92 (appears 2 times). Range: 92 − 73 = 19.
The average of 85, 92, 78 and 90 is 345 ÷ 4 = 86.25. It also gives the sum, count, median, mode and range with steps, a weighted average, and the score you need to reach a target average.
Average (arithmetic mean) formula
Plain-text formula: x̄ = (x_1 + x_2 + ⋯ + x_n)/n = (∑x)/n
Add every value and divide by how many values there are. The calculator adds with compensated summation, so long lists of decimals keep their accuracy.
Weighted average formula
Plain-text formula: x̄_w = (w_1x_1 + w_2x_2 + ⋯ + w_nx_n)/(w_1 + w_2 + ⋯ + w_n) = (∑wx)/(∑w)
Multiply each value by its weight, add the products, and divide by the sum of the weights. When the weights are percentages that add up to 100%, the bottom line is 100, and the weighted average equals the sum of value × weight ÷ 100.
Score needed for a target average
Plain-text formula: x_needed = (target × (n + k) − ∑x)/k
The target average times the total number of scores is the total you must reach. Subtract what you already have and share the rest over the scores still to come.
The average is the balance point of the data: the value every number would have if the total were shared out equally. It uses every value, so a single very large or very small number moves it.
Compare the average with the median. When the two are close, the data are spread evenly and the average is a fair summary. When the average sits well above the median, a few large values (such as one high salary) pull it up, and the median describes a typical value better.
A weighted average lands closer to the values with larger weights. If it differs a lot from the simple average, check that each weight is attached to the right value.
1. Add all the numbers. For 85, 92, 78, 90, 88, 92, 73 and 86 the sum is 684.
2. Count how many numbers there are: 8.
3. Divide the sum by the count: . The average is 85.5.
Check the answer: the average must lie between the smallest value (73) and the largest (92). If it does not, a number was missed or added twice.
Each row uses the same three steps. The last column opens the calculator with that list filled in.
| Situation | Numbers | Working | Average | Check |
|---|---|---|---|---|
| Test scores | 85, 92, 78, 90 | 345 ÷ 4 | 86.25 | open |
| Daily steps for a week | 6,200 7,800 5,400 9,100 8,000 4,300 7,900 | 48,700 ÷ 7 | 6,957.14 | open |
| Temperatures below zero | −3, 2, −5, 0, 1 | −5 ÷ 5 | −1 | open |
| Percentages | 72%, 85%, 91%, 64% | 312 ÷ 4 | 78% | open |
| Salaries with an outlier | 42k, 45k, 47k, 51k, 250k | 435,000 ÷ 5 | 87,000 (median 47,000) | open |
In everyday use, "average" means the arithmetic mean. Statistics has several measures of the center, and each answers a slightly different question.
| Average | How to find it | Result | Best for |
|---|---|---|---|
| Mean (arithmetic) | Sum ÷ count: 30 ÷ 6 | 5 | Data without extreme values: scores, heights, daily totals |
| Median | Middle of the sorted list: (3 + 5) ÷ 2 | 4 | Skewed data: incomes, house prices, waiting times |
| Mode | Most frequent value | 3 | Categories and repeated values: shoe sizes, survey answers |
| Weighted mean | Σwx ÷ Σw, values counted by importance | Depends on weights | Grades with weighted parts, GPA, average cost per unit |
| Geometric mean | nth root of the product: (2 × 3 × 3 × 5 × 7 × 10)^(1/6) | 4.30 | Growth rates, returns and ratios |
| Midrange | (min + max) ÷ 2: (2 + 10) ÷ 2 | 6 | A quick estimate; very sensitive to extremes |
Use a weighted average when some values count more than others. A course grade with homework worth 30%, a midterm worth 30% and a final worth 40%, with scores of 85, 92 and 78, is . The simple average of the three scores, 85, is too high because the lowest score carries the most weight.
The weights do not have to add up to 100. For a GPA, use credit hours as weights: grades 4.0, 3.7, 3.0 and 3.3 for courses of 3, 4, 3 and 2 credits give . The same method gives the average price paid when you buy at different prices and quantities: weight each price by the number of units.
Percentages can be averaged directly only when each one is out of the same total. Scores of 72%, 85%, 91% and 64% on four tests marked out of 100 average to .
When the totals differ, weight each percentage by its total, or go back to the counts. Getting 5 of 10 right (50%) and 36 of 40 right (90%) is 41 of 50, which is 82%, not the 70% that a simple average of 50% and 90% gives. Enter "50% 10" and "90% 40" in Weighted to get the same 82%. For working out a single percentage, use the percentage calculator.
Because the mean uses every value, one extreme number can drag it far from the rest. Five salaries of 42,000, 45,000, 47,000, 51,000 and 250,000 average 87,000, more than four of the five people earn. The median, 47,000, is a far better picture of a typical salary.
Report the median alongside the mean for incomes, house prices and anything else with a long tail. To check data for outliers with the 1.5 × IQR rule and see quartiles, the standard deviation and a box plot, use the statistics calculator.
Stock average price. When you buy the same share at different prices, the average price is a weighted average with the number of shares as weights. Buying 10 shares at 150, 20 at 120 and 15 at 135 costs 1,500 + 2,400 + 2,025 = 5,925 for 45 shares, an average of 5,925 ÷ 45 ≈ 131.67 per share. Open this example.
Car or petrol average (mileage). Divide the total distance by the total fuel used: 450 km on 30 liters is 450 ÷ 30 = 15 km per liter. Do not average the mileage of separate trips unless each used the same amount of fuel. To change km/L into mpg or L/100 km, use the fuel economy converter.
Cricket batting average. Divide the runs scored by the number of times the batter was out, not by the innings played: 540 runs in 12 innings with 3 not outs is 540 ÷ 9 = 60. A bowling average is runs conceded ÷ wickets taken.
In Excel or Google Sheets, type =AVERAGE(A1:A10) for the mean of a range. =MEDIAN(A1:A10) and =MODE.SNGL(A1:A10) give the median and mode, and =SUMPRODUCT(A1:A10, B1:B10)/SUM(B1:B10) gives a weighted average with values in column A and weights in column B. AVERAGE skips empty cells and text but counts zeros, so a blank and a 0 give different answers.
To check a spreadsheet, copy the column and paste it into this calculator: it reads one value per line and shows the sum and count, so a cell that was skipped or counted twice is easy to spot.
Find the average of the scores 85, 92, 78, 90, 88, 92, 73 and 86.
Answer: Average = 85.5, sum 684, count 8, median 87, mode 92, range 19.
Add all the numbers together, then divide the total by how many numbers there are. For 4, 8 and 9, the sum is 21 and there are 3 numbers, so the average is 21 ÷ 3 = 7.
Usually, yes. "Average" in everyday use means the arithmetic mean: the sum divided by the count. In statistics, the median and the mode are also called averages (measures of center), so a question that asks for "the average" normally wants the mean unless it says otherwise.
The mean is the sum divided by the count, so every value, including an extreme one, moves it. The median is the middle value of the sorted list and ignores how far the extremes are. For 2, 3, 4 and 100 the mean is 27.25 but the median is 3.5.
Multiply each value by its weight, add up the products, and divide by the sum of the weights. Scores of 85, 92 and 78 weighted 30%, 30% and 40% give (85 × 30 + 92 × 30 + 78 × 40) ÷ (30 + 30 + 40) = 8,430 ÷ 100 = 84.3.
Only when every group has the same size. Otherwise weight each group average by its size. A class of 10 averaging 80 and a class of 30 averaging 70 have a combined average of (10 × 80 + 30 × 70) ÷ 40 = 72.5, not 75.
If every percentage is out of the same total, add them and divide by how many there are: 72%, 85% and 91% average 82.67%. If the totals differ, weight each percentage by its total, or add up the raw counts and divide by the combined total.
Multiply the target average by the total number of scores, subtract the sum of the scores you already have, and divide by the number still to come. With 85, 92 and 78 and a target of 88 over four tests, you need 88 × 4 − 255 = 97.
Subtract your current average times the share it counts for from the grade you want, then divide by the share the final counts for. With an 82 average worth 60% and a final worth 40%, a grade of 85 needs (85 − 82 × 0.6) ÷ 0.4 = 89.5 on the final.
Yes. A zero is a value, so it adds nothing to the sum but adds one to the count, which pulls the average down. Leave a value out only if it is missing, not if it is a real zero. Spreadsheet AVERAGE functions skip blank cells but count cells containing 0.
Use =AVERAGE(A1:A10) for the mean of cells A1 to A10. For a weighted average with values in column A and weights in column B, use =SUMPRODUCT(A1:A10, B1:B10)/SUM(B1:B10).
Mean, median, mode, five-number summary, IQR, outliers and SD with steps, a histogram and a box plot.
Sample or population standard deviation and variance, with grouped data and a step-by-step deviation table.
Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.
Percent change from an old value to a new one, signed as an increase or decrease, with the working shown.
Round to any decimal place, place value, sig fig or multiple, with 7 rules and the working shown.
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?