Formula Calculate Average? Mean, Median & Mode
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the average of a set of numbers you enter, and it gives you the three most common kinds of average: the mean, the median, and the mode. You type or paste your numbers into the list, and the calculator returns all three values instantly, so you can see which average best suits your data.
Formula
The word “average” is ambiguous: in everyday speech it usually means the mean, but statisticians use three distinct formulas depending on what they want to measure.
- Mean (arithmetic mean): \[ \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i \] where \(x_i\) is each value and \(n\) is the count of values. You add every number and divide by how many there are.
- Median: Sort the numbers from smallest to largest. If \(n\) is odd, the median is the middle value; if \(n\) is even, it is the mean of the two middle values.
- Mode: The value that appears most often. If no value repeats, there is no mode; if two or more tie, the data has multiple modes.
Worked Example
Using the default list 4, 8, 15, 16, 23, 42:
- Mean: Add them: 4 + 8 + 15 + 16 + 23 + 42 = 108. Divide by 6 (the count): 108 ÷ 6 = 18.
- Median: The list is already sorted. With 6 values (even), take the 3rd and 4th values: 15 and 16. Their mean is (15 + 16) ÷ 2 = 15.5.
- Mode: Each number appears exactly once, so there is no mode for this list.
The calculator shows the same results: mean 18, median 15.5, and mode “none” (or blank).
When to Use Which Average
Choosing the right average depends on your data’s shape and what question you are asking.
- Use the mean when the data is roughly symmetric and you want the “typical” value that balances all numbers. It is the standard for test scores, temperatures, and most scientific measurements.
- Use the median when you have outliers or a skewed distribution. For example, house prices: a few mansions inflate the mean, but the median tells you what a typical house costs.
- Use the mode for categorical data or when you care about the most common occurrence, such as the most frequent shoe size sold in a store.
A quick rule: if the mean and median differ a lot, the data is skewed and the median is often more representative.
Common Mistakes and Misconceptions
Several errors trip people up when calculating averages:
- Forgetting to sort for the median. The median is not the middle value of the unsorted list; you must sort first.
- Confusing mean with weighted mean. If some values occur more than once, the simple mean treats each occurrence separately. A weighted mean multiplies each value by its weight, which is different.
- Rounding too early. Rounding each intermediate step can change the final result. Keep full precision until the end, then round to your desired decimal places.
- Assuming the mode always exists. A dataset with all unique values has no mode, and that is a valid answer, not an error.
A common misconception is that the mean is always the “middle” of the data. It is not; the mean is the balance point, which can be pulled far from the center by extreme values.
How to Read the Results
When you get three different numbers (mean, median, mode), they each tell you something about your data:
- If mean ≈ median ≈ mode, the data is roughly symmetric and bell-shaped.
- If mean > median, the data is right-skewed (a few high outliers pull the mean up).
- If mean < median, the data is left-skewed (a few low outliers pull the mean down).
- The mode tells you the most frequent value, which can be very different from the mean in bimodal distributions (two peaks).
For example, in income data, the mean is always higher than the median because of a small number of very high earners. Reporting only the mean would mislead; reporting both gives a fuller picture.
Limits of the Formula
These formulas are simple, but they have limitations:
- Outliers distort the mean. A single extreme value can change the mean dramatically, making it unrepresentative.
- Median ignores the magnitude of most values. It only cares about the middle, so it discards information about how spread out the data is.
- Mode is unstable for continuous data. If you measure heights to the nearest millimeter, every value may be unique; you need to bin the data into intervals first.
- None of these measure variability. Two datasets can have the same mean but very different spreads. For that, you need standard deviation or range.
Always pair an average with a measure of spread (like standard deviation) to avoid drawing misleading conclusions.
Alternatives to the Simple Average
Depending on your context, other types of averages may be more appropriate:
- Weighted mean: Used when some values contribute more than others (e.g., final grade where homework counts 20% and exam 80%).
- Geometric mean: Used for rates of growth or ratios (e.g., average investment return over multiple years). It is the nth root of the product of n values.
- Harmonic mean: Used for rates and speeds (e.g., average speed when distances are equal). It is the reciprocal of the mean of reciprocals.
- Trimmed mean: Removes a percentage of the highest and lowest values before averaging, reducing the effect of outliers.
Each of these answers a different question. The simple mean is the best starting point, but for specialized data, consider these alternatives.
Frequently Asked Questions
What is the difference between mean, median, and mode?
The mean is the sum of all values divided by the count. The median is the middle value when sorted. The mode is the most frequent value. They all describe “central tendency” but react differently to outliers and data shape.
How do I calculate the average in Excel?
Use the AVERAGE function for the mean: =AVERAGE(A1:A10). For the median, use =MEDIAN(A1:A10). For the mode, use =MODE.SNGL(A1:A10) (or =MODE for older versions). The calculator on this page does the same thing without needing to write formulas.
Why is the mean higher than the median in income data?
Because income distributions are right-skewed: a small number of very high earners pull the mean upward, while the median, being the middle value, stays lower and better represents a typical person’s income.
Can there be more than one mode?
Yes. If two or more values appear with the same highest frequency, the data is bimodal or multimodal. For example, in the list 1, 2, 2, 3, 3, the modes are 2 and 3.
What does it mean if the mean and median are equal?
It suggests the data is symmetric around the center, like a normal distribution. However, it does not guarantee normality; some skewed distributions can also have equal mean and median by coincidence.
Should I use the mean or median for my data?
Use the median if your data has outliers or is skewed, because it is robust to extreme values. Use the mean if your data is symmetric and you want a value that incorporates every number. For most everyday purposes, the mean is what people expect when they say “average.”
Related
Formula used
list nums | Numbers | 4, 8, 15, 16, 23, 42 out mean | Mean | - | mean(nums) | 2 out median | Median | - | median(nums) | 2 out mode | Mode | - | mode(nums) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.