Home › Calculators › Average Calculator
∑

Average Calculator

Find the mean, median, mode and range of any list of numbers in seconds. Paste your numbers separated by commas, spaces or line breaks to see the summary instantly.

About this tool

What is the average of a set of numbers? It sounds like one question, but there are three common answers: the mean, the median and the mode, and they can tell very different stories. This free average calculator works out all three, plus the range and the count, from any list of numbers you paste in. It is useful for homework, for checking test scores, for averaging survey results, or for making sense of any set of measurements. There is nothing to install and no signup, and the maths runs entirely in your browser, so your numbers never leave your device.

By Azhar Hussain · Last updated: 7 November 2026

How to use

Paste or type your numbers into the box, separated by commas, spaces or line breaks, any mix works. For example, type 12, 15, 15, 18, 20, or put one number on each line. Press Calculate Average — or just keep typing, the results update as you type — to see the mean, median, mode, range, count, sum, minimum, maximum and both standard deviations in one summary. If some entries are not numbers, the calculator skips them and tells you how many it ignored. You can paste a whole column copied from a spreadsheet, which makes it quick for long lists.

For a weighted average, switch the mode to "Weighted average" and type one value and weight per line — for example "90 40" on the first line, "80 30" on the second. The calculator shows the weighted average next to the plain mean of the same values, so you can see what the weighting changed.

The math behind it

The mean is the sum of all the numbers divided by how many there are, so the mean of 1, 2, 3, 4, 5 is 15 divided by 5, which is 3. The median is the middle value when the numbers are sorted, or the average of the two middle values when there is an even count, so for 2, 2, 3, 4 the median is 2.5. The mode is the value that appears most often; a list can have one mode, several modes, or no mode at all. The range is the largest number minus the smallest, so the range of 1 to 5 is 4.

The standard deviation measures how spread out the numbers are: take each value's distance from the mean, square it, average those squares, then take the square root. The population standard deviation divides by n, the number of values; the sample standard deviation divides by n − 1 and is the one to use when your list is a sample of a larger group. A weighted average multiplies each value by its weight, adds those up, and divides by the total weight: Σ(value × weight) ÷ Σ(weight).

Worked examples: mean, median, mode and range

Each row below is the calculator's own answer for that list — including the sample standard deviation, so you can check the tool against the table.

NumbersCountSumMeanMedianModeRangeSample SD
2.5, 3, 3, 4.1, 5, 7.4, 97344.8571434.136.52.472419
10, 20, 30, 40, 100051,10022030No mode990436.17657
−5, −2, 0, 3, 45000No mode93.674235
0.1, 0.220.30.150.15No mode0.10.070711
1234, 5678, 9012315,9245,3085,678No mode7,7783,902.178366
82, 76, 90, 65, 88540180.282No mode2510.109402
4, 8, 15, 16, 23, 4261081815.5No mode3813.490738

Two rows deserve a second look. The outlier row (10, 20, 30, 40, 1000) has a mean of 220 but a median of only 30 — one huge value drags the mean far from the typical value. And the last row shows the even-count median rule: with six numbers the median is the average of the two middle values, (15 + 16) ÷ 2 = 15.5. Large numbers are typed without commas: in this tool a comma separates two numbers, so 1,234 would be read as 1 and 234.

Worked examples: weighted average

When some values count more than others, weight them. The weighted average is Σ(value × weight) ÷ Σ(weight) — the plain mean is shown next to it so the difference is visible.

Values and weightsWeighted averagePlain mean
90 × 40, 80 × 30, 70 × 308180
60 × 10, 100 × 909680
70 × 2, 90 × 38280
100 × 1, 50 × 362.575

The first row is a familiar case: exam scores of 90, 80 and 70 where the first exam counts for 40% of the grade give 81, not the plain mean of 80. The last row shows the opposite direction: a single 100 counts for almost nothing against three 50s, so the weighted average is 62.5 while the plain mean is 75.

Which average should you use?

Mean, median, mode, range and standard deviation all describe the same list — but they answer different questions. This table uses one list throughout: 2.5, 3, 3, 4.1, 5, 7.4, 9.

MeasureHow to find itBest whenExample
MeanAdd all the numbers and divide by how many there areThe values are roughly symmetric, with no extreme outliers≈ 4.86
MedianThe middle value of the sorted listExtreme values would drag the mean — incomes, house prices4.1
ModeThe value that appears most oftenCategories or repeated whole values, for example shoe sizes3
RangeLargest value minus smallest valueA quick sense of how spread out the numbers are6.5
Standard deviationHow far values typically sit from the meanComparing how spread out two lists are≈ 2.47 (sample)

When NOT to use the mean

The mean is pulled toward extreme values, so it can mislead when a list has outliers. Take five salaries: $40,000, $45,000, $50,000, $55,000 and one $400,000. The mean is $118,000 — a figure nobody in the group actually earns — while the median is $50,000, the middle salary, which describes the group far better. That is why incomes and house prices are usually reported as medians, not means.

ListMeanMedianMode
2, 4, 4, 6, 9544
2, 4, 4, 6, 9, 60≈ 14.1754

One extra value of 60 lifts the mean from 5 to about 14.17, while the median only moves from 4 to 5. If your data has outliers, report the median alongside the mean — and check the range and the standard deviation to see how spread out the values really are.

Averaging percentages and averaging averages

Averaging percentages. Scoring 85% on 20 questions and 90% on 100 questions is not 87.5% — the two tests do not carry equal weight. Count the correct answers instead: 17 out of 20 plus 90 out of 100 is 107 out of 120, which is 89.17%. Always weight percentages by the number of questions, marks or items behind them.

Averaging averages. A class of 10 students averaging 80 and a class of 40 averaging 90 do not average 85 together. Weight by group size: (80 × 10 + 90 × 40) ÷ 50 = 88 — the bigger class pulls the combined average toward 90. Averaging averages without weighting is the most common mistake in this whole topic.

Common mistakes when computing an average

  1. Averaging averages without weighting. Two group averages can only be combined by weighting each by its group size — see the example above (88, not 85).
  2. Dividing by the wrong count. Blank or missing entries are not zeros. If one score is missing from a list of five, divide by 4, not 5 — and never turn a blank into a zero.
  3. Rounding too early. Keep full precision through the working and round only the final result. Rounding each step first can move the answer by more than the rounding itself.

Average in Excel, Google Sheets and Python

In Excel or Google Sheets, with the numbers in A1:A10:

=AVERAGE(A1:A10) — mean
=MEDIAN(A1:A10) — median
=MODE(A1:A10) — mode
=STDEV.S(A1:A10) — sample standard deviation
=STDEV.P(A1:A10) — population standard deviation
=SUMPRODUCT(A1:A3,B1:B3)/SUM(B1:B3) — weighted average, with values in A and weights in B

In Python:

import statistics
statistics.mean([82, 76, 90, 65, 88]) — 80.2
statistics.median([82, 76, 90, 65, 88]) — 82
statistics.stdev([82, 76, 90, 65, 88]) — sample SD, about 10.11
statistics.pstdev([82, 76, 90, 65, 88]) — population SD, about 9.04

How it works

Mean = sum ÷ count. Median = the middle value of the sorted list, or the mean of the two middle values when the count is even. Mode = every value with the highest frequency; if every value appears exactly once, the list has no mode. Range = maximum − minimum. Sample standard deviation divides the sum of squared differences from the mean by n − 1; population standard deviation divides by n. Results are shown rounded to two decimals in the summary (four for the standard deviations); the working underneath shows up to six decimals. Non-numbers are skipped and counted, and commas, spaces, semicolons, tabs and line breaks all separate numbers.

Sources: the definitions used here are the standard ones from statistics — the arithmetic mean, the median, the mode, and the sample and population standard deviations. Every calculation runs in your browser on this page; no numbers are sent anywhere.

Frequently asked questions

What is the difference between mean, median and mode?
The mean is the plain average: add all the numbers and divide by how many there are. The median is the middle value when the numbers are sorted. The mode is the value that appears most often. For most everyday lists the three are close, but a few very large or very small numbers pull the mean away while the median stays put.
How do I find the average of a list of numbers?
Add all the numbers together, then divide by how many numbers there are. For 1, 2, 3, 4, 5 the sum is 15 and there are 5 numbers, so the average is 3. This calculator does the addition and division for you, and also shows the median, mode and range.
What if my numbers have more than one mode?
A list can have two or more modes when several values tie for the most appearances. For example, 1, 1, 2, 2, 3 has two modes: 1 and 2. This calculator lists every mode. If every value appears exactly once, the list has no mode.
What is the range of a set of numbers?
The range is the largest number minus the smallest number. For 1, 2, 3, 4, 5 the range is 5 minus 1, which is 4. The range is a quick way to see how spread out your numbers are.
Can I paste numbers from a spreadsheet?
Yes. Copy a column of numbers from Excel or Google Sheets and paste it straight into the box. Numbers separated by commas, spaces, semicolons or line breaks all work, and the calculator skips anything that is not a number.
How do I find the median when there is an even count of numbers?
Take the two middle values and average them. For 4, 8, 15, 16, 23, 42 the two middle values are 15 and 16, so the median is (15 + 16) ÷ 2 = 15.5. With an odd count the median is simply the single middle value.
What is the difference between sample and population standard deviation?
Both measure how spread out the numbers are. The population standard deviation divides by n, the number of values, and is the right choice when your list is the whole group. The sample standard deviation divides by n − 1 and is the right choice when your list is a sample of a larger group. For 2.5, 3, 3, 4.1, 5, 7.4, 9 the sample standard deviation is about 2.47 and the population standard deviation is about 2.29.
How does the weighted average work?
Give each value a weight, multiply each value by its weight, add those up, and divide by the total weight. For example, 90 with weight 40, 80 with weight 30 and 70 with weight 30 gives (90 × 40 + 80 × 30 + 70 × 30) ÷ 100 = 81 — while the plain mean of 90, 80 and 70 is 80. Switch this calculator to "Weighted average" and type one value and weight per line.
How are commas treated — is 1,234 one number or two?
In this calculator a comma separates two numbers, so 1,234 counts as 1 and 234. Type large numbers without commas — 1234 — or put one number on each line. Spaces, tabs, semicolons and line breaks also separate numbers.
What happens to entries that are not numbers?
The calculator skips them and tells you how many it ignored. For example, 12, 15, n/a, 18, abc averages 12, 15 and 18, and reports that 2 entries were not numbers.
How do I find a missing number from a known average?
Multiply the average by the count to get the total, then subtract the numbers you know. If the average of 5 numbers is 20, the total is 100; if four of them are 15, 18, 22 and 25 (total 80), the missing number is 100 − 80 = 20.
Why does 0.1 + 0.2 show 0.3?
Computers store decimals in binary, so inside the machine 0.1 + 0.2 is actually 0.30000000000000004. This calculator rounds results for display, so you see 0.3 — and the mean of 0.1 and 0.2 shows as 0.15. The rounding only affects what is shown, not the underlying maths.

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.