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.
| Numbers | Count | Sum | Mean | Median | Mode | Range | Sample SD |
|---|---|---|---|---|---|---|---|
| 2.5, 3, 3, 4.1, 5, 7.4, 9 | 7 | 34 | 4.857143 | 4.1 | 3 | 6.5 | 2.472419 |
| 10, 20, 30, 40, 1000 | 5 | 1,100 | 220 | 30 | No mode | 990 | 436.17657 |
| −5, −2, 0, 3, 4 | 5 | 0 | 0 | 0 | No mode | 9 | 3.674235 |
| 0.1, 0.2 | 2 | 0.3 | 0.15 | 0.15 | No mode | 0.1 | 0.070711 |
| 1234, 5678, 9012 | 3 | 15,924 | 5,308 | 5,678 | No mode | 7,778 | 3,902.178366 |
| 82, 76, 90, 65, 88 | 5 | 401 | 80.2 | 82 | No mode | 25 | 10.109402 |
| 4, 8, 15, 16, 23, 42 | 6 | 108 | 18 | 15.5 | No mode | 38 | 13.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 weights | Weighted average | Plain mean |
|---|---|---|
| 90 × 40, 80 × 30, 70 × 30 | 81 | 80 |
| 60 × 10, 100 × 90 | 96 | 80 |
| 70 × 2, 90 × 3 | 82 | 80 |
| 100 × 1, 50 × 3 | 62.5 | 75 |
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.
| Measure | How to find it | Best when | Example |
|---|---|---|---|
| Mean | Add all the numbers and divide by how many there are | The values are roughly symmetric, with no extreme outliers | ≈ 4.86 |
| Median | The middle value of the sorted list | Extreme values would drag the mean — incomes, house prices | 4.1 |
| Mode | The value that appears most often | Categories or repeated whole values, for example shoe sizes | 3 |
| Range | Largest value minus smallest value | A quick sense of how spread out the numbers are | 6.5 |
| Standard deviation | How far values typically sit from the mean | Comparing 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.
| List | Mean | Median | Mode |
|---|---|---|---|
| 2, 4, 4, 6, 9 | 5 | 4 | 4 |
| 2, 4, 4, 6, 9, 60 | ≈ 14.17 | 5 | 4 |
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
- 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).
- 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.
- 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 statisticsstatistics.mean([82, 76, 90, 65, 88]) — 80.2statistics.median([82, 76, 90, 65, 88]) — 82statistics.stdev([82, 76, 90, 65, 88]) — sample SD, about 10.11statistics.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?
How do I find the average of a list of numbers?
What if my numbers have more than one mode?
What is the range of a set of numbers?
Can I paste numbers from a spreadsheet?
How do I find the median when there is an even count of numbers?
What is the difference between sample and population standard deviation?
How does the weighted average work?
How are commas treated — is 1,234 one number or two?
What happens to entries that are not numbers?
How do I find a missing number from a known average?
Why does 0.1 + 0.2 show 0.3?
Related tools
Standard Deviation Calculator
Fraction Calculator
Math Calculator
BMI Calculator
Age Calculator
Percentage Calculator
💬 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.