The mean is calculated by adding all values and dividing by the number of values. The median is the middle value after the data is arranged in order. The mean uses the size of every observation, while the median depends mainly on position. This makes the mean more sensitive to extreme values.
Enter a list of numbers to calculate the mean, sum, count, median, mode, range, minimum, and maximum.
An extreme value can pull the arithmetic mean toward it while the middle position changes much less.
What Is the Mean?
The mean is the arithmetic average of a set of values.
Add every value and divide the sum by the number of observations.
The Average Calculator calculates the mean and median from the same list.
What Is the Median?
The median is the central value after arranging the observations from lowest to highest.
When the set has an odd number of observations, select the single middle value.
When it has an even number, calculate the mean of the two middle values.
Worked Example without an Outlier
Consider 10, 11, 12, 13, and 14.
The sum is 60, so the mean is 12. The middle value is also 12.
In this balanced set, the mean and median are equal.
Worked Example with an Outlier
Replace 14 with 100, creating 10, 11, 12, 13, and 100.
The sum becomes 146, and the mean becomes 29.2.
The median remains 12 because it is still the middle observation.
Mean vs Median Comparison
The two measures answer related but different questions.
The mean represents equal sharing of the complete total. The median identifies the central position.
Neither measure is automatically better in every situation.
| Feature | Mean | Median |
|---|---|---|
| Calculation | Add and divide | Find the middle position |
| Uses every value | Yes | Uses order and position |
| Affected by outliers | Often strongly | Usually less strongly |
| Requires sorting | No | Yes |
When the Mean Is More Useful
The mean is useful when all values should contribute according to their size.
It works well for relatively balanced data without unusually extreme observations.
It is also required by many later calculations involving variance and standard deviation.
When the Median Is More Useful
The median can be more representative when a few unusually high or low values distort the mean.
Examples may include property prices, salaries, waiting times, and other skewed distributions.
The median describes the central ordered observation rather than equal sharing.
Mean and Median with an Even Number of Values
For 4, 8, 12, and 20, the two middle values are eight and 12.
Their average is 10, so the median is 10.
The arithmetic mean of all four observations is 11.
Can the Mean and Median Be Equal?
Yes. They are often equal in symmetric or evenly balanced data.
The values 2, 4, 6, 8, and 10 have both a mean and median of six.
Equality does not mean the two measures were calculated in the same way.
What Does a Large Difference Suggest?
A large difference between the mean and median may indicate an outlier or a skewed distribution.
When the mean is higher, large values may be stretching the upper side.
When the mean is lower, unusually small values may be pulling it downward.
Common Mistakes
Do not calculate the median before sorting the values.
Do not describe the median as the most frequent value; that is the mode.
Do not automatically use the mean when extreme values make it unrepresentative.
Conclusion
The mean uses the magnitude of every observation, while the median identifies the middle ordered position.
The mean is more sensitive to extreme values, while the median is usually more resistant.
Use the Average Calculator to compare both measures for your data.
FAQs
What is the main difference between mean and median?
The mean uses the total of all values, while the median uses the middle position.
Which is more affected by outliers?
The arithmetic mean is generally affected more strongly.
Do I need to sort numbers to find the mean?
No, but the values must be sorted to find the median.
Can mean and median be equal?
Yes. They are often equal in balanced or symmetric sets.
Which should I use for skewed data?
The median is often more representative, although the correct choice depends on the purpose.