Statistics & Probability

Average Calculator

This average calculator finds the mean of any list of numbers: add the numbers, then divide by how many there are.

Try
Find

Separate numbers with commas, spaces or new lines, or paste a column from Excel or Google Sheets. Percentages (85%) and fractions (3/4) work too.

Result

Average (mean): 85.50

Average (mean)

85.50

684 ÷ 8 values

Sum (Σx)
684
Count (n)
8
MedianAverage of the two middle values of the sorted list
87.00
Mode
92 (appears 2 times)
Range (max − min)
19 (from 73 to 92)
Geometric meanThe nth root of the product, used for growth rates
85.25
Sorted values
73, 78, 85, 86, 88, 90, 92, 92

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.

Dot plot of the values with the average marked
75808590ValueValuesAverage 85.5
Step-by-step working (5 steps)
  1. Add the values

    ∑x=85+92+78+90+88+92+73+86=684\sum x = 85 + 92 + 78 + 90 + 88 + 92 + 73 + 86 = 684
  2. Count the values

    There are 8 values, so n = 8.

  3. Divide the sum by the count

    Rounded to 2 decimal places: 85.50.

    x¯=∑xn=6848=85.5\bar{x} = \frac{\sum x}{n} = \frac{684}{8} = 85.5
  4. 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.

    median=86+882=87\text{median} = \frac{86 + 88}{2} = 87
  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.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Type or paste your numbers into Numbers. Commas, spaces, tabs and new lines all separate values, so a column copied from Excel or Google Sheets works as is. Values written as percentages (85%) are averaged as percentages.
  2. Read the average at the top. Below it are the sum and count it came from, the median, mode, range and a dot plot with the average marked. Open the steps to see the working with your numbers.
  3. For grades, GPA or prices bought at different quantities, choose Weighted and enter one value and its weight per line, such as "85 30%" or "3.7 4".
  4. To find what you need on the next test, choose Score needed, enter your scores so far, the average you want and how many scores are still to come. For a final exam worth a set share of the grade, fill in Weight of what is left instead.
  5. Pick the Decimal places, then use Copy or Share to keep the result.

Formulas

Average (arithmetic mean) formula

x¯=x1+x2+⋯+xnn=∑xn\bar{x} = \frac{x_1 + x_2 + \cdots + x_n}{n} = \frac{\sum x}{n}

Plain-text formula: x̄ = (x_1 + x_2 + ⋯ + x_n)/n = (∑x)/n

∑x\sum x
the sum of all the values
nn
how many values there are (the count)

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

x¯w=w1x1+w2x2+⋯+wnxnw1+w2+⋯+wn=∑wx∑w\bar{x}_w = \frac{w_1 x_1 + w_2 x_2 + \cdots + w_n x_n}{w_1 + w_2 + \cdots + w_n} = \frac{\sum w x}{\sum w}

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

xneeded=target×(n+k)−∑xkx_{\text{needed}} = \frac{\text{target} \times (n + k) - \sum x}{k}

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 kk scores still to come.

Reading the result

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.

How to calculate the average of numbers

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: 684÷8=85.5684 \div 8 = 85.5. 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.

Average examples

Each row uses the same three steps. The last column opens the calculator with that list filled in.

Worked average examples
SituationNumbersWorkingAverageCheck
Test scores85, 92, 78, 90345 ÷ 486.25open
Daily steps for a week6,200 7,800 5,400 9,100 8,000 4,300 7,90048,700 ÷ 76,957.14open
Temperatures below zero−3, 2, −5, 0, 1−5 ÷ 5−1open
Percentages72%, 85%, 91%, 64%312 ÷ 478%open
Salaries with an outlier42k, 45k, 47k, 51k, 250k435,000 ÷ 587,000 (median 47,000)open

Mean, median, mode and other averages

In everyday use, "average" means the arithmetic mean. Statistics has several measures of the center, and each answers a slightly different question.

Types of average for the data 2, 3, 3, 5, 7, 10
AverageHow to find itResultBest for
Mean (arithmetic)Sum ÷ count: 30 ÷ 65Data without extreme values: scores, heights, daily totals
MedianMiddle of the sorted list: (3 + 5) ÷ 24Skewed data: incomes, house prices, waiting times
ModeMost frequent value3Categories and repeated values: shoe sizes, survey answers
Weighted meanΣwx ÷ Σw, values counted by importanceDepends on weightsGrades with weighted parts, GPA, average cost per unit
Geometric meannth root of the product: (2 × 3 × 3 × 5 × 7 × 10)^(1/6)4.30Growth rates, returns and ratios
Midrange(min + max) ÷ 2: (2 + 10) ÷ 26A quick estimate; very sensitive to extremes

How to calculate a weighted average

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 85×0.30+92×0.30+78×0.40=25.5+27.6+31.2=84.385 \times 0.30 + 92 \times 0.30 + 78 \times 0.40 = 25.5 + 27.6 + 31.2 = 84.3. 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 (12+14.8+9+6.6)÷12=42.4÷12≈3.53(12 + 14.8 + 9 + 6.6) \div 12 = 42.4 \div 12 \approx 3.53. The same method gives the average price paid when you buy at different prices and quantities: weight each price by the number of units.

How to average percentages

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 (72+85+91+64)÷4=78%(72 + 85 + 91 + 64) \div 4 = 78\%.

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.

When the average misleads: outliers

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, mileage and cricket averages

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.

Average in Excel and Google Sheets

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.

Worked example

Average of eight test scores

Find the average of the scores 85, 92, 78, 90, 88, 92, 73 and 86.

  1. Add the scores: 85 + 92 + 78 + 90 + 88 + 92 + 73 + 86 = 684.
  2. Count them: there are 8 scores.
  3. Divide the sum by the count: 684÷8=85.5684 \div 8 = 85.5.
  4. Sorted, the scores are 73, 78, 85, 86, 88, 90, 92, 92. The median is the average of the 4th and 5th values, (86 + 88) ÷ 2 = 87, the mode is 92 (twice) and the range is 92 − 73 = 19.

Answer: Average = 85.5, sum 684, count 8, median 87, mode 92, range 19.

Frequently asked questions

How do you calculate the average?

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.

Is the average the same as the mean?

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.

What is the difference between the mean and the median?

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.

How do I calculate a weighted average?

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.

Can I take the average of averages?

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.

How do I find the average percentage?

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.

What score do I need to get a certain average?

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.

What do I need on my final exam to get a certain grade?

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.

Do zeros count in an average?

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.

How do I find the average in Excel?

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).

Statistics Calculator

Mean, median, mode, five-number summary, IQR, outliers and SD with steps, a histogram and a box plot.

Statistics & Probability

Standard Deviation Calculator

Sample or population standard deviation and variance, with grouped data and a step-by-step deviation table.

Statistics & Probability

Percentage Calculator

Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.

Arithmetic & Numbers

Percent Change Calculator

Percent change from an old value to a new one, signed as an increase or decrease, with the working shown.

Arithmetic & Numbers

Rounding Calculator

Round to any decimal place, place value, sig fig or multiple, with 7 rules and the working shown.

Arithmetic & Numbers

Fraction Calculator

Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.

Arithmetic & Numbers

Sources and further reading

  1. Introductory Statistics 2e, Section 2.5: Measures of the Center of the Data (opens in a new tab), OpenStax, Rice University
  2. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.1: Measures of Location (opens in a new tab), National Institute of Standards and Technology
  3. AVERAGE function (opens in a new tab), Microsoft Support

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?