Last updated:

Average Calculator

Creators

Saba ShaukatSaba 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 AliFaheem 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

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.

Separate numbers with commas, spaces or new lines. You can paste straight from a spreadsheet. Use a dot for decimals.
Examples
Mean (average) of 8 numbers
5
sum 40 ÷ count 8
Median4.5
Mode4
Range7
Std dev (sample)2.1381
All statistics
  • 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.

MeasureHow to find itBest when
MeanSum ÷ countThe data has no extreme values
MedianMiddle value of the sorted listThe data is skewed or has outliers
ModeMost frequent valueYou want the most common value or category

Worked example: 2, 4, 4, 4, 5, 5, 7, 9

  1. Sum = 40 and count = 8, so the mean = 40 ÷ 8 = 5.
  2. The list is already sorted. With 8 numbers the median is the average of the 4th and 5th: (4 + 5) ÷ 2 = 4.5.
  3. The value 4 appears 3 times, more than any other, so the mode is 4.
  4. Range = 9 − 2 = 7.

Which average should you use?

SituationUseWhy
House prices, salariesMedianA few very large values pull the mean up
Test scores with no outliersMeanEvery score counts equally
Most common shoe sizeModeYou want the most frequent value
Course grade with different weightingsWeighted averageA final exam counts more than a quiz
A price or sales trendMoving averageIt smooths short-term noise
Scores with an unusual high or lowTrimmed meanIt drops the extremes before averaging
Data in classes, not single valuesGrouped meanOnly class totals are known

The same measures on different data

DataMeanMedianMode
Symmetric: 2, 4, 6, 8, 1066None
Right-skewed: 2, 3, 4, 5, 5012.84None
Repeats: 3, 3, 5, 7, 9, 9, 96.4379
Two modes: 1, 2, 2, 3, 4, 4, 5332, 4
No mode: 1, 2, 3, 4, 5, 63.53.5None
Exam scores: 55, 70, 72, 78, 90, 9576.6775None

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

  1. Value × weight: 85 × 1 + 90 × 2 + 78 × 1 + 92 × 3 = 619.
  2. Total weight = 1 + 2 + 1 + 3 = 7.
  3. 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

  1. Mean = 5. Squared differences added up: 32.
  2. Population: variance = 32 ÷ 8 = 4, standard deviation = 2.
  3. 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?
Add the numbers and divide by how many there are. For 2, 4, 4, 4, 5, 5, 7, 9: the sum is 40, the count is 8, and the mean is 40 ÷ 8 = 5.
What is the difference between mean, median and mode?
The mean is the sum divided by the count. The median is the middle value once the numbers are sorted. The mode is the value that appears most often. For 2, 4, 4, 4, 5, 5, 7, 9, the mean is 5, the median is 4.5 and the mode is 4.
How do you find the median?
Sort the numbers. With an odd count, the median is the middle one. With an even count, it is the average of the two middle ones. For 2, 3, 5, 7, 9 the median is 5. For 2, 3, 5, 7 it is (3 + 5) ÷ 2 = 4.
Can a set of numbers have more than one mode, or none?
Yes. If two values tie for most frequent, there are two modes, and if every value appears once there is no mode. For 1, 2, 2, 3, 4, 4, 5 the modes are 2 and 4. The calculator lists all modes, or says None.
When should I use the median instead of the mean?
Use the median when a few extreme values would pull the mean away from what is typical, as with house prices or salaries. For 200, 210, 220, 230 and 2,000 the mean is 572 but the median is 220.
How do you calculate a weighted average?
Multiply each value by its weight, add the results and divide by the total weight. Two grades, 80 with weight 3 and 90 with weight 2, give (80 × 3 + 90 × 2) ÷ (3 + 2) = 420 ÷ 5 = 84. A simple mean would give 85.
What is the difference between sample and population standard deviation?
Both measure how spread out the numbers are. Population standard deviation divides the sum of squared differences by N and is used when you have every value. Sample standard deviation divides by N − 1 and is used when your numbers are a sample of a larger group. For 2, 4, 4, 4, 5, 5, 7, 9 they are 2.1381 (sample) and 2 (population).
What is a moving average?
A moving average averages a fixed number of consecutive values, then slides one place along. A 3-period moving average of 2, 4, 6, 8, 10 is (2 + 4 + 6) ÷ 3 = 4, then 6, then 8. It smooths short-term ups and downs so a trend is easier to see.
What is a trimmed mean?
A trimmed mean drops a share of the lowest and highest values before averaging, which limits the effect of outliers. A 10% trimmed mean of 10 numbers removes 1 from each end. For 2, 4, 6, 8, 10, 12, 14, 16, 18, 100 it is 11, against 19 for the ordinary mean.
How do I find the mean of grouped data?
Use the midpoint of each class as its value, multiply by the frequency, add the results and divide by the total frequency. The result is an estimate, because the exact values inside each class are not known.
How do I average percentages?
If every percentage is of the same base, take the ordinary mean. If the bases differ, such as conversion rates from groups of different sizes, use a weighted average with the group size as the weight. Averaging them as they stand can give a misleading answer.
Can I paste numbers from a spreadsheet?
Yes. Copy a column or row from Excel or Google Sheets and paste it into the box. Numbers separated by commas, spaces, tabs or new lines all work. Use a dot for decimals; thousands separators such as 1,000 are read as two numbers.

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).