Mean, Median, Mode and Range: How to Find Them (With Examples)
Solver AI TeamPublished Updated 9 min read
Mean, median, mode, and range are the building blocks of statistics. Learn how to calculate each one, when to use which measure, and how outliers affect your results.
Frequently asked questions
How do you find the mean, median, mode and range of a data set?
Mean: add all the values and divide by how many there are. Median: sort the values and take the middle one. Mode: the value that appears most often. Range: the largest value minus the smallest. For 2, 4, 4, 6, 9: mean 5, median 4, mode 4, range 7.
How do you find the median when there is an even number of values?
Sort the data, then average the two middle values. For 3, 5, 8, 10, the middle two are 5 and 8, so the median is (5 + 8) / 2 = 6.5. With an odd count, the median is just the single middle value.
Can a data set have more than one mode, or no mode?
Yes. If two values tie for most frequent, the set is bimodal, and with more ties it is multimodal. If every value appears only once, there is no mode. For example, 1, 2, 2, 3, 3 has two modes, 2 and 3.
When should you use the median instead of the mean?
Use the median when the data has outliers or is skewed, because extreme values pull the mean but barely move the median. House prices and incomes are common examples. For roughly symmetric data without outliers, the mean works well too.
How does an outlier affect the mean, median and range?
An outlier can shift the mean and range a lot, but the median usually stays about the same. In 3, 4, 5, 6, 100, the mean is 23.6, the median is 5, and the range is 97. One extreme value distorts the mean and range.
When you look at a data set — test scores, daily temperatures, salaries at a company — the raw numbers can be overwhelming. Measures of central tendency summarize an entire data set with a single representative value that describes where the "center" of the data lies.
The Key Insight
The three most common measures are the mean (arithmetic average), the median (middle value), and the mode (most frequent value). Each captures a different aspect of the data's center, and choosing the right one depends on the shape of your data and the question you are trying to answer.
Where you see them in everyday life
In everyday life, these measures are everywhere. Your GPA is a weighted mean. When the news reports "median household income," they are choosing the median over the mean because income data is heavily skewed. Product ratings on an e-commerce site often highlight the mode — the most commonly given star rating.
The Takeaway
Understanding what each measure tells you, and more importantly what it does not tell you, is a foundational skill for statistics, data science, economics, and any field that involves interpreting numbers.
How to Find the Mean (Average)
The mean is the most widely used measure of central tendency.
The Rule — Mean Formula
The formula is straightforward: mean = (sum of all values) ÷ (number of values).
Example 1 — Mean of eight quiz scores
Let us work through an example with this data set of eight quiz scores: 72, 85, 90, 68, 95, 88, 76, 90.
The mean has a nice property: it uses every data point in its calculation, so it reflects the entire data set. However, this also means it is sensitive to extreme values (outliers). If one student scored 20 instead of 72, the sum drops to 612 and the mean falls to 76.5 — a single low score dragged the average down noticeably.
The weighted mean
It is also worth mentioning the weighted mean, where each value has a different importance. Your GPA is a weighted mean because a 4-credit course counts more than a 1-credit course.
Definition — Weighted Mean
The formula becomes weighted mean = Σ(value × weight) ÷ Σ(weights).
How to Find the Median
The median is the middle value when all data points are arranged in order from smallest to largest. It splits the data set into two equal halves.
To find it, follow two steps.
Sort the data in ascending order
Arrange every value from smallest to largest.
Pick the middle value (or average the two middle values)
If there is an odd number of values, the median is the single middle value. If there is an even number, the median is the average of the two middle values.
Example 1 — Even count (quiz scores)
Using our quiz scores: sorted data is 68, 72, 76, 85, 88, 90, 90, 95.
There are 8 values (even), so the median is the average of the 4th and 5th values: (85 + 88) ÷ 2 = 86.5.
Answermedian = 86.5
Example 2 — Odd count
Now consider an odd-count example: 3, 7, 9, 12, 15.
The middle value (3rd out of 5) is 9.
Answermedian = 9
The Key Insight
The median is especially useful because it is resistant to outliers. Even if the highest score in our quiz data were 950 instead of 95, the median would still be 86.5. This robustness makes the median the preferred measure for skewed data like household incomes, home prices, and hospital wait times, where a few extreme values can distort the mean.
How to Find the Mode
Definition — Mode
The mode is the value that appears most frequently in a data set. Unlike the mean and median, the mode does not require any arithmetic — you simply count how often each value occurs and identify the one with the highest frequency.
Example 1 — Mode of quiz scores
In our quiz scores 68, 72, 76, 85, 88, 90, 90, 95, the value 90 appears twice while every other value appears once.
Answermode = 90
No mode, bimodal, and multimodal data sets
Case
Condition
Example
Result
No mode
All values occur with equal frequency
2, 4, 6, 8
No mode
Bimodal
Two values tied for highest frequency
3, 3, 5, 7, 7, 9
Modes 3 and 7
Multimodal
More than two modes
Several values tied
All tied values are modes
The Key Insight
The mode is the only measure of central tendency that works with categorical (non-numerical) data. If you survey 100 people about their favorite color and 35 say blue, 28 say red, and 20 say green, the mode is "blue." You cannot compute a mean or median of colors, but the mode tells you the most popular category.
The mode is also useful for understanding purchasing patterns, voting preferences, and the most common defect type in manufacturing.
Range and How Outliers Affect Everything
The Rule — Range
The range is the simplest measure of spread: range = maximum value − minimum value.
Example 1 — Range of quiz scores
For our quiz scores, range = 95 − 68 = 27.
Answerrange = 27
Common Mistake
While the range is easy to compute, it only considers the two most extreme data points and tells you nothing about how the rest of the data is distributed. A single outlier can inflate the range dramatically.
How outliers distort the mean
Example 2 — Salaries at a small company
Outliers also have a major impact on the mean. Consider annual salaries at a small company: $40K, $42K, $45K, $48K, $50K, $500K.
The mean is $120.8K, but five of the six employees earn less than $50K — the CEO's $500K salary pulls the mean far above what is typical.
The median, however, is ($45K + $48K) ÷ 2 = $46.5K, which much better represents the typical employee's salary.
Answermean = $120.8K, median = $46.5K
The Takeaway
This is exactly why government agencies report median household income rather than mean income. When analyzing any data set, always check for outliers before deciding which measure to report. A quick comparison of mean and median can reveal skewness: if the mean is significantly higher than the median, the data is right-skewed (pulled by high outliers), and vice versa.
When to Use Mean vs Median vs Mode
Choosing the right measure depends on the nature of your data.
Measure
When to use
Example data
Why
Mean
Data is roughly symmetric with no extreme outliers
Heights of adult men, standardized test scores in a large population, daily temperatures over a month
The mean incorporates every data point and works well with further statistical calculations like standard deviation.
Median
Data is skewed or contains outliers
Incomes, home prices, hospital bills, or any distribution with a long tail
The median gives a better sense of the "typical" value because it is not dragged toward extremes.
Mode
Working with categorical data, or you want to know the single most likely outcome
Favorite colors, most-purchased product, most common shoe size
The mode identifies the most frequent category or value, which the mean and median cannot describe for non-numerical data.
The Key Insight
In some cases, reporting all three gives the fullest picture. For example, a teacher might report the mean test score for grading purposes, the median to show the typical student's performance, and the mode to identify the most common score.
The Takeaway
When you need to verify calculations across all three measures, Solver AI can compute mean, median, mode, and range instantly — just type or snap a photo of your data set and get step-by-step results.