Last updated:
Average Calculator
Creators
Saba Shaukat
Saba ShaukatEducational Content Writer & Technical Conversion WriterSaba Shaukat is an educational content writer with an MSc in Media Studies and more than 14 years of teaching experience. She specialises in explaining information clearly, developing educational materials and making complex topics easier for everyday readers to understand. At EverydayCalcPro, she contributes practical calculator guides, tool explanations and user-friendly educational content. See full profileCheck our editorial policy
Reviewers
Faheem Ali
Faheem AliSoftware Developer, Digital Marketing Specialist & Technical WriterLinkedInWebsiteFaheem Ali is a software developer, digital marketing specialist and technical writer with over 12 years of experience in programming, digital marketing and content development. He holds two master’s degrees in Management Sciences and has professional certifications in programming and digital marketing. Based in Finland, Faheem focuses on developing reliable calculators, verifying mathematical formulas and calculation logic, and making technical and financial information accessible through clear, practical guides. See full profileCheck our editorial policy
1 people find this calculator helpful
Copy the code below to add this free calculator to your website. Please keep the credit link.
Paste a list of numbers to get the mean, median, mode, range and standard deviation, or switch to a weighted, moving, grouped or trimmed average. Results update as you type.
- Count8
- Sum40
- Minimum2
- Maximum9
- Variance (sample)4.5714
- Std dev (sample)2.1381
- Variance (population)4
- Std dev (population)2
- Mode appears3 times
Did we solve your problem today?
Mean, median and mode
The mean, median and mode are three ways to describe the centre of a set of numbers. They give the same answer for a symmetric set and different answers when the data is skewed.
| Measure | How to find it | Best when |
|---|---|---|
| Mean | Sum ÷ count | The data has no extreme values |
| Median | Middle value of the sorted list | The data is skewed or has outliers |
| Mode | Most frequent value | You want the most common value or category |
Worked example: 2, 4, 4, 4, 5, 5, 7, 9
- Sum = 40 and count = 8, so the mean = 40 ÷ 8 = 5.
- The list is already sorted. With 8 numbers the median is the average of the 4th and 5th: (4 + 5) ÷ 2 = 4.5.
- The value 4 appears 3 times, more than any other, so the mode is 4.
- Range = 9 − 2 = 7.
Which average should you use?
| Situation | Use | Why |
|---|---|---|
| House prices, salaries | Median | A few very large values pull the mean up |
| Test scores with no outliers | Mean | Every score counts equally |
| Most common shoe size | Mode | You want the most frequent value |
| Course grade with different weightings | Weighted average | A final exam counts more than a quiz |
| A price or sales trend | Moving average | It smooths short-term noise |
| Scores with an unusual high or low | Trimmed mean | It drops the extremes before averaging |
| Data in classes, not single values | Grouped mean | Only class totals are known |
The same measures on different data
| Data | Mean | Median | Mode |
|---|---|---|---|
| Symmetric: 2, 4, 6, 8, 10 | 6 | 6 | None |
| Right-skewed: 2, 3, 4, 5, 50 | 12.8 | 4 | None |
| Repeats: 3, 3, 5, 7, 9, 9, 9 | 6.43 | 7 | 9 |
| Two modes: 1, 2, 2, 3, 4, 4, 5 | 3 | 3 | 2, 4 |
| No mode: 1, 2, 3, 4, 5, 6 | 3.5 | 3.5 | None |
| Exam scores: 55, 70, 72, 78, 90, 95 | 76.67 | 75 | None |
When the mean misleads: house prices
Five homes sell for $200k, $210k, $220k, $230k and $2,000k. The mean is $572k, which is higher than four of the five homes. The median is $220k, which describes the typical home much better.
Weighted average
In a weighted average some values count more than others. Weighted mean = Σ(value × weight) ÷ Σ(weights). It is the right way to average grades by credit hours, returns by amount invested, or percentages with different bases.
Worked example: grades 85, 90, 78 and 92 with weights 1, 2, 1 and 3
- Value × weight: 85 × 1 + 90 × 2 + 78 × 1 + 92 × 3 = 619.
- Total weight = 1 + 2 + 1 + 3 = 7.
- Weighted average = 619 ÷ 7 = 88.4286. The simple mean of the four grades is 86.25.
Standard deviation: sample or population?
Standard deviation measures how far the numbers typically fall from the mean. Add up the squared differences from the mean, divide, and take the square root. The only choice is the divisor: N when your numbers are the whole population, and N − 1 when they are a sample from a larger group (this is called Bessel correction). If you are unsure, your numbers are probably a sample.
Worked example: 2, 4, 4, 4, 5, 5, 7, 9
- Mean = 5. Squared differences added up: 32.
- Population: variance = 32 ÷ 8 = 4, standard deviation = 2.
- Sample: variance = 32 ÷ 7 = 4.5714, standard deviation = 2.1381.
Moving, grouped and trimmed averages
Moving average
A simple moving average averages a window of consecutive values. For 2, 4, 6, 8, 10 with a 3-period window: (2 + 4 + 6) ÷ 3 = 4, (4 + 6 + 8) ÷ 3 = 6 and (6 + 8 + 10) ÷ 3 = 8. Longer windows smooth more but react more slowly.
Grouped data
When you only have class counts, use each class midpoint. For the age classes 0–20 (5 people), 20–40 (15), 40–60 (20), 60–80 (8) and 80–100 (2), the midpoints are 10, 30, 50, 70 and 90, and the estimated mean age is 2,240 ÷ 50 = 44.8.
Trimmed mean
A trimmed mean removes a share of values from each end. For 2, 4, 6, 8, 10, 12, 14, 16, 18, 100, a 10% trim removes 1 value from each end (floor of 10% × 10), leaving 4 to 18. Their mean is 88 ÷ 8 = 11, while the ordinary mean is 19 because of the 100. Judged competitions often drop the highest and lowest score for the same reason.
Average calculator FAQ
How do you calculate the average (mean) of a set of numbers?
What is the difference between mean, median and mode?
How do you find the median?
Can a set of numbers have more than one mode, or none?
When should I use the median instead of the mean?
How do you calculate a weighted average?
What is the difference between sample and population standard deviation?
What is a moving average?
What is a trimmed mean?
How do I find the mean of grouped data?
How do I average percentages?
Can I paste numbers from a spreadsheet?
About this calculator
Method: Mean = sum ÷ count. Median = middle value of the sorted list. Weighted mean = Σ(value × weight) ÷ Σ(weights). Standard deviation = √(Σ(x − mean)² ÷ N) for a population or ÷ (N − 1) for a sample. Moving average = mean of each window of consecutive values. Grouped mean uses class midpoints. Trimmed mean removes floor(N × trim%) values from each end. The maths runs in your browser, so nothing you enter is sent to our servers. Results are exact for the numbers you enter and are shown to up to four decimal places. Last reviewed November 24, 2026. Spotted a mistake? Tell us and we will correct it.
Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Measures of location; NIST/SEMATECH e-Handbook of Statistical Methods (standard deviation and variance).