Average Calculator
Fast, accurate and free online average calculator tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
- Arithmetic mean – The sum of all values divided by their number. The most popular measure of average.
- Median – The middle value in the sorted data set. Divides the set into two equal parts, resistant to extreme values (so-called outliers).
- Geometric mean – The square root of degree N of the product of N numbers. Mainly used in finance (e.g. rates of return) and population growth statistics.
- Harmonic mean – The ratio of the number of data to the sum of the reciprocals of this data. Useful for calculating average speeds, efficiency or ratios.
Rate this tool:
Related tools
Other tools you may find usefulPass it on
Will someone else find this useful?
Send a friend the link. It opens right away, with no account and no fees.
Online average calculator – arithmetic mean, weighted mean, median and mode
Wondering how to calculate the average of a set of numbers, grades or measurements and judge whether the result is reliable? Our online average calculator is a comprehensive statistical tool: in one place you can calculate the arithmetic mean, weighted mean, median, mode and measures of dispersion such as the standard deviation and quartiles.
Wondering how to calculate the average of hundreds of numbers, grades or measurements, and at the same time judge whether the result is reliable? Our online average calculator is much more than simple adding and dividing — in one place you can calculate the arithmetic mean, weighted mean, median, mode, standard deviation, quartiles and standard error. Just paste your data from Excel and you will immediately see a full statistical report that will help you make better decisions — at school, at work, in the lab and on the stock market.
What is an average and why can a single number be misleading?
The arithmetic mean is the sum of all values divided by their count. It is the most popular measure of central tendency, but — surprisingly to many — often the least reliable. A single extreme result (a so-called outlier) can completely distort the picture.
A classic example: a company employs 10 people earning PLN 6,000 and a CEO earning PLN 60,000. The arithmetic mean is (10 × 6,000 + 60,000) / 11 ≈ PLN 10,909 — an amount that nobody except the boss earns. The median — the middle value — is PLN 6,000 and describes the typical salary much better. That is why our calculator computes all measures at once, so you can compare them and choose the one that really answers your question.
How to calculate the arithmetic mean — formula and example
The formula for the arithmetic mean is simple:
x̄ = (x₁ + x₂ + ... + xₙ) / n
Example: a student received the grades 5, 4, 3, 5, 5. The sum is 22 and the number of grades is 5, so the mean = 22 / 5 = 4.4. In the calculator, just paste: 5, 4, 3, 5, 5 — we accept data separated by commas, spaces, semicolons or new lines, so you can copy it straight from a spreadsheet.
Weighted mean — when results do not carry equal weight
The formula for the weighted mean:
x̄w = Σ(wᵢ × xᵢ) / Σwᵢ
This measure is key in education and finance. Example: exam (weight 3) — grade 4, test (weight 2) — grade 5, homework (weight 1) — grade 6. Weighted mean = (4×3 + 5×2 + 6×1) / (3+2+1) = 28 / 6 ≈ 4.67. A simple mean would give 5.0 and overstate the result. The interactive weighted mode in our tool lets you dynamically add “value–weight” pairs and immediately see how the result changes.
Geometric and harmonic means — for advanced users
- The geometric mean (√(x₁ × x₂ × ... × xₙ)) is used to average rates of return. Shares that rise by +50% and then fall by −50% have an arithmetic mean of 0%, but in reality you lose 25% of your capital. Geometric mean = √(1.5 × 0.5) − 1 ≈ −13.4% per year — an honest picture.
- The harmonic mean is used for speeds and rates. If you drive 100 km at 100 km/h and come back at 50 km/h, the average speed is not 75 km/h but 66.7 km/h (2 × 100 × 50 / 150).
Median, mode and quartiles — measures resistant to extreme values
Median is the middle value of an ordered set. For the data 1, 3, 5, 7, 9 the median = 5. When there is an even number of values, the median is the average of the two middle values: for 2, 4, 6, 8 it is (4+6)/2 = 5.
Mode is the value that occurs most often. In the set 5, 4, 3, 5, 5 the mode is 5. There may be no mode (all values different) or several.
Quartiles divide the data into four parts. Q1 is the 25th percentile, Q3 is the 75th percentile, and the interquartile range IQR = Q3 − Q1 describes the spread of the “middle” of the data, ignoring extreme observations. IQR is the basis of one of the most popular methods of detecting outliers: points below Q1 − 1.5·IQR or above Q3 + 1.5·IQR are considered outliers.
Standard deviation, variance and other statistics
The mean tells you “how much”, the standard deviation tells you “how spread out”. The formulas:
- Population variance: σ² = Σ(xᵢ − μ)² / N
- Sample variance: s² = Σ(xᵢ − x̄)² / (n − 1)
- Standard deviation: the square root of the variance
- Standard error of the mean (SEM): s / √n
- Coefficient of variation (CV): (deviation / mean) × 100%
Example: the data 2, 4, 4, 4, 5, 5, 7, 9 have a mean of 5 and a population standard deviation of ≈ 2. If the CV is low (usually below 10–15%), the data are consistent; a high CV warns that the mean represents the set poorly.
Formulas at a glance
| Measure | Formula | When to use |
|---|---|---|
| Arithmetic mean | Σxᵢ / n | General data without extreme values |
| Weighted mean | Σ(wᵢ·xᵢ) / Σwᵢ | Grades, portfolios, results of different importance |
| Geometric mean | (∏xᵢ)^(1/n) | Rates of return, percentage growth |
| Harmonic mean | n / Σ(1/xᵢ) | Speeds, rates, unit prices |
| Median | Middle value | Salaries, property prices, data with outliers |
| Mode | Most frequent value | Nominal data, most popular variants |
| Standard deviation | √(Σ(xᵢ−x̄)²/(n−1)) | Spread, risk, measurement quality |
| IQR | Q3 − Q1 | Robust spread analysis, outlier detection |
Ready-made presets — learning from practical examples
The tool includes ready-made data sets that help you understand the differences between the measures in seconds:
- School grades — comparing the simple mean with the weighted mean for different subject weights.
- Salaries with an outlier — a demonstration of how one high salary skews the mean while the median stays stable.
- Lab measurements — analyzing the repeatability of measurements using the standard deviation and SEM.
- Weighted mean of grades and a stock portfolio — a real-life use of weights in personal finance.
Why use our average calculator?
- Two modes of operation — pasting raw data or interactively building a weighted mean with dynamic weights.
- A full report in one second — means (arithmetic, weighted, geometric, harmonic), median, mode, standard deviations, variance, range, quartiles, IQR, SEM and CV.
- Data security — all calculations are performed in your browser; nothing is sent to the server.
- Spreadsheet compatibility — paste a column from Excel or Google Sheets without any preparation.
Frequently asked questions (FAQ)
What is the difference between the median and the arithmetic mean?
The arithmetic mean is the sum of the values divided by their count, while the median is the middle value of an ordered set. The median is resistant to extreme values, so for salaries or property prices it describes the “typical” case better than a mean distorted by outliers.
How do you calculate a weighted mean step by step?
Multiply each value by its weight, add up the products and then divide by the sum of the weights. Example: grades 4 (weight 3) and 5 (weight 2) give (4×3 + 5×2) / 5 = 22/5 = 4.4. The weighted calculator automates these calculations for any number of value–weight pairs.
When should you use the geometric mean instead of the arithmetic mean?
Use the geometric mean to average percentage changes and rates of return over time. The arithmetic mean overstates results because it ignores the effect of compounding — for example, a 50% fall and a 50% rise give an arithmetic mean of 0%, but a real loss of 25% of the capital.
What is the mode in statistics?
The mode is the value that occurs most often in a data set. The set 2, 3, 3, 5, 7 has a mode of 3. There may be several modes or none when all values are different. It is the only measure of central tendency that can be used for qualitative data, e.g. the most popular color.
Which standard deviation should I choose — sample or population?
If the data make up the entire population you are interested in, use the formula with the denominator N. When you analyze a sample and want to draw conclusions about the whole population, use the denominator (n − 1) — Bessel's correction — because it gives an unbiased estimate of the spread. The calculator displays both values.
What is the interquartile range (IQR) and why calculate it?
IQR is the difference between the third and first quartiles (Q3 − Q1), describing the spread of the middle 50% of the data. It is resistant to outliers and is used to detect them: values outside the range Q1 − 1.5·IQR to Q3 + 1.5·IQR are considered outliers.
Related tools
- Percentage calculator — fast and accurate online calculations.
- Margin and markup calculator — fast and accurate online calculations.
- Age and date calculator — fast and accurate online calculations.