← Average calculators

Mean & Median Calculator | Calculate Central Tendency

Calculate mean (average) and median (middle value) instantly. Understand your data with step-by-step solutions and smart outlier detection.

2

Enter data above to see instant results.

Note: Non-numeric characters are filtered out. Calculations treat all values with equal weight.

What is the Mean?

The mean (often called the arithmetic average) is the most common way to measure the "center" of a dataset. It is calculated by adding all the values together (the sum) and dividing by the total number of values (the count).

Formula: Mean = (x₁ + x₂ + ... + xₙ) ÷ n

The mean is highly useful for symmetric data where values are evenly distributed. However, it is sensitive to outliers—a single extremely high or low number can pull the mean away from the true "center."

What is the Median?

The median is the middle value of a dataset when it is sorted from smallest to largest. It represents the exact midpoint: half the data is smaller than the median, and half is larger.

  • Odd count: Pick the exact middle number. (e.g., in 1, 5, 9, the median is 5).
  • Even count: Find the two middle numbers and average them. (e.g., in 1, 5, 7, 9, the median is (5+7)÷2 = 6).

The median is "robust," meaning it is rarely affected by outliers. This makes it the preferred measure for skewed data like income or housing prices.

Mean vs. Median: When to Use Each

Use MEAN when... Use MEDIAN when...
Data is symmetric (bell curve) Data is skewed (long tail)
There are no extreme outliers Outliers are present
Precision is needed for all values Representative "typical" value is needed
Example: Height of students in a class Example: Household income, Home prices

Understanding Outliers and Their Impact

An outlier is a data point that differs significantly from other observations. Imagine five people in a room with yearly incomes of $35k, $40k, $45k, $38k, and $1,000,000 (a CEO).

Mean Income: $231,600

Misleading. Only the CEO earns this much or more. It does not represent the "typical" person in the room.

Median Income: $40,000

Accurate. This perfectly represents the typical salary of the group, ignoring the CEO's extreme outlier.

This is why economists and real estate agents almost always report median income and home prices—the mean is too easily distorted by the ultra-wealthy or luxury mansions.

Real-World Applications

  • Education: Teachers use the mean to grade class performance, but might check the median to see if a difficult test failed most students despite a few high scorers.
  • Real Estate: In a neighborhood with mostly modest homes and one multi-million dollar estate, the median price tells buyers what they can actually expect to pay.
  • Web Performance: Engineers look at median load times (or the 95th percentile) rather than the mean, because a few users with terrible connections can skew the average load time to look worse than it is for most people.

Frequently Asked Questions

What is the difference between mean, median, and mode?

Mean is the arithmetic average. Median is the middle value. Mode is the value that appears most frequently. They are all measures of "central tendency" but behave differently when data is skewed.

When should I use median instead of mean?

Use the median when your data contains outliers or is skewed (like income data). The median provides a better "typical" value in these cases because it resists extreme numbers.

How do I calculate the median manually?

First, sort your numbers from lowest to highest. If you have an odd amount of numbers, the median is the one exactly in the middle. If you have an even amount, take the two middle numbers, add them up, and divide by 2.

Can I have multiple modes?

Yes! A dataset is "bimodal" if two values appear with the same highest frequency, or "multimodal" if more than two do.

Average calculators ↗