In This Article
Key Takeaways
- Mean = sum of all values ÷ count of values.
- Median = middle value when data is sorted in order.
- Mode = the value that appears most frequently.
- Mean is most useful for symmetric, normally distributed data.
- Median is better than mean when data contains outliers or is skewed.
- Mode is best for categorical data or finding the most common value.
What are Mean, Median, and Mode?
Mean, median, and mode are the three main measures of central tendency — statistical tools that describe where the "center" of a data set lies. Each answers the question "What is a typical value?" but in different ways. The choice of which to use depends on the nature of your data and what you want to communicate.
A data set is a collection of numbers. For example: {3, 7, 7, 9, 12, 14, 14, 14, 21}. We'll use this throughout the article to show all three calculations side by side.
How to Calculate the Mean (Average)
The mean (also called the arithmetic mean or average) is calculated by adding all values in the data set and dividing by the number of values.
Example: Data set: {3, 7, 7, 9, 12, 14, 14, 14, 21}
Sum = 3 + 7 + 7 + 9 + 12 + 14 + 14 + 14 + 21 = 101
Count = 9
Mean = 101 ÷ 9 = 11.22
Step-by-step process:
- List all values in your data set.
- Add them all together to get the sum.
- Count how many values there are.
- Divide the sum by the count.
The mean works best with data that is symmetrically distributed — where values cluster evenly around the center. When data is skewed or contains outliers, the mean can be misleading.
Mean, Median, Mode Calculator
Enter your data set and get mean, median, mode, and more instantly.
How to Find the Median
The median is the middle value of a data set when the values are arranged in order from smallest to largest. Half the values are below the median, and half are above.
Step 2: If odd count → median = middle value.
Step 3: If even count → median = average of two middle values.
Example (odd count): Data set sorted: {3, 7, 7, 9, 12, 14, 14, 14, 21}
9 values → middle is the 5th value → Median = 12
Example (even count): Data set: {3, 7, 7, 9, 12, 14}
6 values → two middle values are 3rd (7) and 4th (9) → Median = (7 + 9) ÷ 2 = 8
To find the position of the middle value for an odd-count data set: position = (n + 1) ÷ 2. For 9 values: (9+1) ÷ 2 = 5th position.
How to Find the Mode
The mode is the value that appears most frequently in a data set. Unlike mean and median, mode can be used with non-numeric (categorical) data.
Example: Data set: {3, 7, 7, 9, 12, 14, 14, 14, 21}
Frequency count: 3→1, 7→2, 9→1, 12→1, 14→3, 21→1
14 appears 3 times (more than any other) → Mode = 14
Bimodal example: {2, 3, 3, 5, 7, 7} — both 3 and 7 appear twice → Two modes: 3 and 7
No mode: {1, 2, 4, 8, 16} — all values appear exactly once → No mode
Comparing All Three: Side-by-Side Example
| Measure | Data Set: {3, 7, 7, 9, 12, 14, 14, 14, 21} | Result |
|---|---|---|
| Mean | 101 ÷ 9 | 11.22 |
| Median | 5th value in sorted set | 12 |
| Mode | Most frequent value (14 appears 3×) | 14 |
Notice that all three give different values for the same data set. There is no single "right" answer — the appropriate measure depends on what you're trying to communicate.
When to Use Each Measure
Use the Mean When:
- Data is roughly symmetric with no extreme outliers.
- You need to calculate further statistics (standard deviation uses the mean).
- Data is on an interval or ratio scale (temperature, weight, height).
- Examples: average test score in a class, average daily temperature, average production rate.
Use the Median When:
- Data is skewed (stretched more to one side).
- There are significant outliers that would distort the mean.
- You want the "typical" value for an unequal distribution.
- Examples: median household income, median home price, median response time.
Use the Mode When:
- Data is categorical (colors, names, labels).
- You want to know the most popular or most common value.
- Examples: most common shoe size, most popular product color, most frequent survey response.
Skewed Data and Outliers
The most important reason to understand all three measures is to recognize when the mean is misleading. Consider income data: most people earn moderate incomes, but a few billionaires earn astronomical amounts. This pulls the mean far above what most people actually earn.
Example: Five people earn: {$35,000, $42,000, $48,000, $51,000, $2,400,000}
- Mean = $515,200 — misleadingly high, no one earns close to this.
- Median = $48,000 — describes the "typical" person accurately.
- Mode = no mode (all unique values).
This is why economists and government agencies report median household income rather than mean. The median is resistant to outliers — adding one billionaire to the data set barely changes the median but dramatically inflates the mean.
In a perfectly symmetric, normally distributed data set, mean = median = mode. When these three values are different, it tells you the data is skewed or has outliers.