Mean, median, and mode are three ways to find the “center” of a dataset. The mean is the classic average (add everything up, divide by how many numbers you have). The median is the middle value when you line up your numbers in order. The mode is whichever value appears most often. Each one tells you something slightly different about your data, and knowing when to use which one is just as important as knowing how to calculate them.
How to Calculate the Mean
The mean is the most common type of average. You calculate it by adding up all the values in your dataset, then dividing by the total number of values. If your dataset is {10, 20, 30, 40}, the mean is (10 + 20 + 30 + 40) ÷ 4 = 25.
Here’s another quick example: the first six odd numbers are 1, 3, 5, 7, 9, and 11. Add them up to get 36, divide by 6, and the mean is 6. Simple enough. The mean works well when your data points are fairly evenly spread out, but it has a significant weakness: it gets pulled toward extreme values. If one number in your set is way higher or lower than the rest, the mean shifts toward that outlier and may no longer represent a typical value in your data.
Weighted Mean
Sometimes not every value counts equally. A weighted mean lets you assign more importance to certain values. The most familiar example is your college GPA. A four-credit course matters more than a one-credit course, so instead of simply averaging your grades, you multiply each grade by its credit hours, add those products together, then divide by the total number of credits. A student earning a 4.0 in a four-credit class and a 3.0 in a one-credit class doesn’t have a GPA of 3.5. The heavier course pulls the result closer to 4.0.
How to Find the Median
The median is the middle value once you sort your data from smallest to largest (or largest to smallest). Exactly half the values fall above it and half fall below it.
How you find it depends on whether your dataset has an odd or even number of values. With an odd number, the median is straightforward: sort the numbers and pick the one in the middle. In the set {3, 7, 9}, the median is 7. Mathematically, you’re looking at the position (n + 1) ÷ 2, where n is the number of values. With three values, that’s position 2, which gives you 7.
With an even number of values, there’s no single middle number, so you take the two values closest to the center and average them. In the set {3, 7, 9, 15}, the two middle values are 7 and 9. Their average is (7 + 9) ÷ 2 = 8. The median is 8, even though 8 doesn’t actually appear in the dataset.
How to Identify the Mode
The mode is the value that shows up most frequently. In the set {2, 3, 3, 5, 7}, the mode is 3 because it appears twice while every other value appears once. Unlike the mean and median, the mode doesn’t require any arithmetic. You just count.
A dataset can have more than one mode. If two values tie for the highest frequency, the data is called bimodal. If three or more values tie, it’s multimodal. And if no value repeats at all, the dataset has no mode. This makes the mode most useful for categorical data, like survey responses or product sizes, where you want to know which option is most popular rather than calculating an average.
Why Outliers Change Everything
The most important practical difference between these three measures is how they respond to outliers, which are values that sit far away from the rest of your data. The mean is highly sensitive to them. The median barely moves. The mode isn’t affected at all.
Picture a set of golf scores: 80, 90, 92, 94, 96. The mean is 90.4 and the median is 92. Now remove that lowest score of 80. The mean jumps 2.6 points to 93, while the median only shifts up by 1 point to 93. The mean reacted more dramatically because it factors in every single value. The median, by design, only cares about positional order.
This isn’t just a math problem. It plays out in real life every time you see statistics about income. If nine people in a neighborhood earn $50,000 and one earns $5,000,000, the mean income is roughly $545,000, a number that describes nobody in the group. The median income is $50,000, which actually reflects the typical person. That’s why economists and government agencies almost always report median household income rather than mean income. When data is lopsided, the median gives you a more honest picture.
How They Behave in Skewed Data
When data is perfectly symmetrical, like a textbook bell curve, the mean, median, and mode all land at the same point. Real-world data is rarely that tidy.
In a right-skewed distribution (where the tail stretches toward higher values, like income data), the mode sits at the peak, the median falls in the middle, and the mean gets pulled furthest toward the tail. The mean always chases the direction of the skew. In a left-skewed distribution (where the tail stretches toward lower values), the order reverses: the mean is the lowest, the median is in the middle, and the mode is the highest.
Recognizing this pattern helps you interpret statistics you encounter in the wild. Whenever someone reports an “average” without specifying mean or median, and you suspect the data could be skewed, the number they’re giving you may be misleading. A general rule: always prefer the median when the distribution is skewed.
When to Use Each One
The mean works best when your data is roughly symmetrical and free of extreme outliers. It’s the most mathematically useful average because it incorporates every data point, which makes it the default in most scientific and statistical formulas. If you’re comparing test scores in a class where everyone scored between 70 and 95, the mean gives you a reliable summary.
The median is the better choice when your data is skewed or contains outliers. Home prices in a city, income levels in a population, hospital wait times: these tend to have a long tail on one side, and the median keeps your “typical” value grounded in reality.
The mode is most helpful with categorical data or when you need to know the most common value. A shoe retailer deciding how much inventory to stock cares most about which size sells the most, not the average shoe size. The same logic applies to survey responses, voting patterns, or any situation where you’re asking “which option is most popular?” rather than “what’s the central tendency?”
All three measures describe the center of your data, but they answer slightly different questions. The mean tells you the mathematical balance point. The median tells you where the true midpoint falls. The mode tells you what’s most common. Choosing the right one depends on the shape of your data and what you’re actually trying to learn from it.

