Average Calculator
: Find the mean, median, mode, range, sum and count of a list of numbers, or a weighted average of values and weights, with the working shownAverage Calculator
An average calculator for any list of numbers: paste a column from a spreadsheet or type the numbers with commas or spaces, and it gives the mean, median, mode and range, plus the sum, count, smallest and largest value and the geometric mean, with the working for each. Switch to Weighted average when the values count for different amounts, such as marks that make up different shares of a final grade. Decimals and fractions are kept exact, so the mean of 0.1 and 0.2 comes out as 0.15.
How to use the average calculator
- Pick a calculation:
Mean, median, modefor a plain list, orWeighted averagefor values with weights. - For a plain list, type or paste the numbers separated by commas, spaces, tabs, semicolons or new lines. A column copied from a spreadsheet works, heading and all.
- For a weighted average, put one value and its weight on each line, such as
90 30, separated by a space, comma, tab orx. Two columns pasted from a spreadsheet work the same way. - Read the mean (or the weighted average) at the top and the working under it;
Copy allorDownloadtakes the figures and the table.
Example
The mean, median, mode and range of five test scores.
85, 90, 78, 92, 85Mean: 86
Median: 85
Mode: 85 (appears 2 times)
Range: 14
Sum ÷ count = 430 ÷ 5 = 86
Sorted: 78, 85, 85, 90, 92
The middle value is the 3rd of 5: 85Details
- The mean is what most people mean by the average: add the numbers and divide by how many there are. For 85, 90, 78, 92, 85 that is 430 ÷ 5 = 86. This mean calculator keeps decimals exact, so 0.1 and 0.2 average to 0.15, and a mean that does not end is shown to 6 decimals with its exact fraction: 1, 2 and 2 give ≈ 1.666667 (5/3).
- The median is the middle value once the numbers are sorted. With an even count there is no single middle value, so the median is the mean of the two in the middle: 78, 85, 90, 92 has a median of (85 + 90) ÷ 2 = 87.5.
- The mode is the value that appears most often. A list can have several modes when values tie, such as 2, 3, 3, 5, 7, 7, whose modes are 3 and 7, or none at all when every value appears the same number of times, such as 4, 8, 15 (every value appears once). When some value repeats, a frequency table under the figures shows how many times each value appears and its share of the list.
- The range is the largest value minus the smallest, a quick measure of spread: 92 − 78 = 14 for the test scores. That makes this a mean, median, mode and range calculator in one, with the sum, count, minimum and maximum alongside.
- Mean or median: one very large or very small value pulls the mean but barely moves the median. For house prices of 320, 345, 350, 360 and 1,200 (in thousands), the mean is 515 while the median is 350, which is closer to a typical house. That is why incomes and prices are usually reported as medians.
- A weighted average (or weighted mean) counts some values more than others: multiply each value by its weight, add those up and divide by the sum of the weights. For grades with weights, use the mark as the value and its share of the final grade as the weight. Marks of 90, 80 and 70 worth 30%, 50% and 20% give (90×30 + 80×50 + 70×20) ÷ (30 + 50 + 20) = 8,100 ÷ 100 = 81, not the plain mean of 80.
- The same weighted average calculator gives the average price of shares bought at different prices: use the price as the value and the number of shares as the weight. 100 shares at 25.50, 50 at 27.00 and 150 at 24.10 cost 25.05 each on average, against a plain mean of the three prices of ≈ 25.533333.
- The geometric mean multiplies the values and takes the nth root, which suits growth rates and ratios. Growth of 10%, 50% and −10% in three years is growth factors of 1.1, 1.5 and 0.9, whose geometric mean is ≈ 1.140886: the same total growth as about 14.1% a year. It is shown only when every value is more than 0, and it is worked out with floating point to 6 decimals, not exactly.
Limits
- Any length of list: a file of up to 50 MB (millions of numbers, or a hundred thousand weighted lines) is worked out in the background with a progress line and a Cancel button, and over 2 million characters it waits for
Run. Each number can have up to 30 digits; a list with numbers of more than 15 digits, or fractions that never end such as1/3, is limited to 1,000,000 numbers. The frequency table and the weighted table list their first 20,000 rows; every value counts in the figures. - Numbers can be whole, decimal, negative, fractions (
3/4) or in scientific notation (2.5e-3). Commas always separate numbers, so type 1,250 as1250; mixed numbers such as1 1/2are read as two numbers (type3/2or1.5). - A
$,€or£in front of a number and a%after it are ignored, with a note. Other units or words make an error that names the value; a heading on the first line of a pasted column is skipped. - Weights must be 0 or more and not all 0; a line with only one number gets a weight of 1.
- Exact arithmetic for everything except the geometric mean, which is rounded to 6 decimal places.
FAQ
How do you calculate an average?
To find the average of numbers, add them all up, then divide by how many numbers there are. For 85, 90, 78, 92 and 85 the sum is 430 and there are 5 numbers, so the average is 430 ÷ 5 = 86.
What is the difference between mean, median and mode?
The mean is the sum divided by the count, the median is the middle value when the numbers are sorted, and the mode is the most common value. For 85, 90, 78, 92, 85 they are 86, 85 and 85.
How do you calculate a weighted average?
Multiply each value by its weight, add the results, and divide by the total of the weights. Marks of 90, 80 and 70 weighted 30, 50 and 20 give 8,100 ÷ 100 = 81.
Can you average percentages?
A plain average of percentages is right only when each percentage is out of the same size of group. If 80% of a class of 10 passed and 60% of a class of 30 passed, the plain mean of 70% is wrong; weight each percentage by its group size and the true pass rate is 65%, which is 26 passes out of 40 students.
Is the average the same as the mean?
In everyday use, yes: "the average" means the arithmetic mean, the sum divided by the count. Strictly, the median and the mode are averages too, since each describes a typical value, so it is worth saying which one you mean when the numbers are skewed.
Runs entirely in your browser. Nothing is uploaded.