The mean is the sum of all values divided by the count of values; the median is the middle value once the data is sorted, or the average of the two middle values when the count is even. For the data set 4, 7, 9, 12, 15, the mean is 9.4 and the median is 9. The number that decides which statistic tells the truth is the outlier β€” one extreme value drags the mean and barely touches the median, which is why income reports and housing data lean on the median while grades and quality-control charts lean on the mean.

The Mean Comes From Division: One Formula, Three Notation Variants

Every mean you'll meet in a spreadsheet or a textbook is the same arithmetic wearing different clothes. Add up the observations, divide by how many there are. In notation, the sample mean is written xΜ„ (x-bar), calculated as Ξ£x Γ· n, where Ξ£x is the sum of every value and n is the count. The population mean uses ΞΌ (mu) and capital N; the difference between the two is notation, not arithmetic.

Work it once by hand to see where errors creep in. For 4, 7, 9, 12, 15: the sum is 47, the count is 5, so the mean is 47 Γ· 5 = 9.4. For 3, 8, 11, 20, 22, 27: the sum is 91 and the count is 6, giving 15.166…, which typically rounds to 15.17. That second example matters because the division doesn't land cleanly β€” a class of students once confidently reported a mean of 15.1 for that exact set, having dropped a digit mid-division.

Three phrases describe the same calculation and confuse people constantly: "arithmetic mean," "average," and "expected value." They're identical when the values are equally weighted. They diverge the moment someone truncates a decimal, weights the observations, or computes a mean of means from groups of different sizes β€” a trap covered later.

One more boundary: the mean requires interval or ratio data to be meaningful. The average of jersey numbers 3, 7, and 11 tells you nothing about basketball, because jersey numbers are labels, not quantities. If you can't sensibly add the values, don't average them.

The Median Is a Position, Not a Value You Compute From the Raw Numbers

The median answers a different question: what number sits at the center when everything is lined up in order? Sort the data first, then count. An odd count gives you one exact middle entry. An even count gives you two middle entries, and the median is their average.

Take 11, 3, 8, 22, 7. Sorted: 3, 7, 8, 11, 22. With five values, position (5 + 1) Γ· 2 = 3, so the third value, 8, is the median. Now take six values: 2, 5, 9, 14, 21, 30. Positions 3 and 4 hold 9 and 14, and the median is (9 + 14) Γ· 2 = 11.5. Notice that 11.5 isn't one of the original data points β€” a median doesn't have to be.

Counting positions beats guessing once the data set grows. For n values sorted ascending, the median sits at position (n + 1) Γ· 2. With 51 values that's position 26; with 50 values you average positions 25 and 26. Write that fraction down before you start counting, and a 40-value set stops being intimidating.

Forgetting to sort is the single most common error. Consider 100, 2, 3: the unsorted middle entry is 2, so an unsorted "median" reads 2. Sorted, the data is 2, 3, 100, and the true median is 3. Same three numbers, two different answers, one of them wrong.

Sorting First Changes the Answer: A Side-by-Side Demonstration

Run the two statistics through the same messy data and the differences become concrete. The table below uses a small class quiz, where most students did well and two did poorly β€” a shape that appears constantly in exam data and complaint surveys.

Data set (unsorted) Sum Count Mean Sorted order Median
4, 7, 9, 12, 15 47 5 9.4 4, 7, 9, 12, 15 9
55, 62, 58, 61, 99 335 5 67 55, 58, 61, 62, 99 61
2, 5, 9, 14, 21, 30 81 6 13.5 2, 5, 9, 14, 21, 30 11.5
10, 10, 10, 80, 90 200 5 40 10, 10, 10, 80, 90 10

The third row shows the even-count split: the mean of 13.5 sits above the median of 11.5 because 21 and 30 pull the total up. The fourth row is the outlier lesson in miniature β€” four numbers near 10 plus one at 90 lift the mean to 40, a number no student in that set actually resembles.

In the second row, the quiz average of 67 looks respectable until you notice the median of 61. Half the class scored 62 or below. When a distribution has a long tail in one direction, report both and say which one describes the typical case.

When One Value Wrecks the Average: The Outlier Rule

A single extreme observation can move the mean arbitrarily far while leaving the median anchored in place. The textbook demonstration rephrases Bill Gates walking into a bar: before he enters, the patrons' average net worth might read $35,000; after, it reads into the billions, and not one patron's actual situation changed. The median barely flinches.

Real data behaves the same way. The U.S. Census Bureau's income reports lead with median household income precisely because a small number of very high earners inflate the mean β€” the mean sits noticeably above the median in every published year. Any percentage you compute from the mean overstates what a typical household receives.

Here's the arithmetic that settles arguments. Data set A is 46, 48, 52, 55, 999. The sum is 1,200, so the mean is 240; the sorted middle value is 52. Data set B is 46, 48, 52, 55, 65. The sum is 266, so the mean is 53.2 and the median 52. Same median, wildly different means β€” the outlier dragged one statistic 187 points and the other not at all.

The headline number in this comparison is the inflation gap: swapping 999 for 65 moved the mean by 186.8, about 351%, while the median stayed at 52. State the outlier rule plainly to whoever reads your summary: with skewed data, the median describes the typical case, and the mean describes the total spread across everyone.

How Skew Decides Which Statistic to Report

Skew has a direction, and the direction tells you how the two statistics relate. In a right-skewed distribution β€” incomes, house prices, hospital wait times β€” the tail stretches toward high values and pulls the mean above the median. In a left-skewed distribution, the tail runs toward low values and pulls the mean below the median. In a symmetric distribution, the two roughly coincide.

Sort your own data by eye before doing any arithmetic. Open your spreadsheet, select the values, and glance at the shape: a long run of similar values with one enormous end is a right skew. If the mean comes out well above the median, check whether the top value is a genuine observation or a data-entry slip β€” a salary entered as 900,000 instead of 90,000 flips a distribution's story in one keystroke.

There's a rough rule of thumb you'll see in statistics courses: in a moderately right-skewed distribution, mean minus median is often about three times (mean minus the mode) Γ· the standard deviation, expressed as a standardized measure. Treat it as a diagnostic hint, never a licence to infer the mean from the median alone. Two data sets can share a median of 50 while their means differ by hundreds.

Reporting discipline follows from this. A household-income briefing that gives only the mean hides how most households live; one that gives only the median hides the aggregate size of the top tail. Give both, then say which one answers the reader's question. For "what does a typical family earn," median. For "how much do all families earn combined, spread across all families," mean.

Trimmed Means and Winsorised Means for Data You Suspect

When you want protection from outliers without giving up the arithmetic mean, two adjusted measures exist, and they show up in competition judging and public-sector pay analysis. A trimmed mean drops a fixed percentage of values from each end before averaging. A winsorised mean replaces the most extreme values with the nearest surviving value instead of deleting them.

The 10% trimmed mean is the most common form. With 20 observations, a 10% trim removes the two largest and two smallest, then averages the remaining 16. If your 20 values range from 5 to 900 with a cluster between 40 and 60, that trim discards the distortion and lands far closer to the typical observation than the raw mean does.

Winsorising at 5% works differently. You find the 5th and 95th percentile values and replace anything beyond them with those boundaries β€” the count stays the same, only the extremes move. Olympic scoring tradition uses the trimmed-mean idea in figure-skating panels, dropping high and low marks so one judge's outlier score doesn't decide a medal.

Neither adjustment is free. Trimming removes information, and a trim that deletes real data needs disclosure in the report β€” state the percentage and which end you trimmed. Winsorising leaves a modified value in the data that no longer represents any observation, which matters if someone audits the file later. Both are defensible only when you say what you did.

Automated Routes: Spreadsheet Functions, Grouping, and Mean-of-Means Errors

The manual arithmetic is a teaching tool; the spreadsheet is what you'll use at work. In Excel, =AVERAGE(range) returns the mean and =MEDIAN(range) returns the median. In Google Sheets the same formulas work, and the MEDIAN function sorts internally β€” you don't need to pre-sort the column, which trips people who read the textbook method and assume the software wants sorted input.

Follow this sequence to avoid the two classic spreadsheet mistakes.

1: Paste or type your values into a single column, one value per cell, with no totals or labels mixed in. 2: Verify the count with =COUNT(range) and confirm it matches your records β€” dropped rows silently change both statistics. 3: Enter =AVERAGE(range) and =MEDIAN(range) in two separate cells and record both before interpreting either. 4: Check for blanks and text entries that AVERAGE skips β€” a hidden empty cell lowers n without telling you. 5: Compare the two results: a large gap signals skew or an outlier, and you should find it before publishing.

If both functions return a number wildly off your expectation, look for a sum row or a header accidentally inside the range β€” AVERAGE will happily treat a text header as skippable but a numeric total as another observation. The failure case that bites hardest is grouping: computing a mean of group means gives equal weight to each group regardless of size. Two warehouses with 10 and 10,000 orders average to a meaningless midpoint, and the correct overall mean is the total of all orders divided by 10,010. Always compute from raw records when group sizes differ, and if you must combine, weight each group mean by its count.

Reporting Both Without Lying to the Reader

Put the mean and median in the same sentence, name the unit, and give the count. "Median household income across the 240 surveyed households was $52,400, and the mean was $61,800" tells a reader more in one line than a paragraph of method notes. The 18% gap between those two figures signals right skew without any extra analysis.

Use the median when the distribution is skewed and the reader wants the typical case, which covers most income, property, and wait-time reporting. Use the mean when every unit carries equal weight, such as quality-control measurements, exam scores with no re-tests, or rainfall totals where you genuinely want the aggregate divided evenly. When both appear, put the median first if the audience is the general public and the mean first if the audience is technical.

Rounding deserves a rule. Match the precision of the raw data: whole-number measurements get a whole-number mean, and the mean of values recorded to two decimals stays at two decimals unless you state otherwise. State that 15.166… was rounded to 15.17, and don't average a rounded value back into another calculation.

One honest limitation: neither statistic captures the spread. Two classes with identical means can have utterly different score distributions. Pair the pair you report with a range or standard deviation, and if a stakeholder asks whether the average is "safe to quote," the answer is conditional β€” safe for symmetric data, misleading without the median for skewed data.

FAQ

What is the fastest way to find both statistics for 9 or 10 numbers?

Enter the values in one spreadsheet column and read =AVERAGE and =MEDIAN side by side β€” for a 10-value set you never need to identify the two middle numbers by hand. Doing it manually is still fine: sum and divide by 10 for the mean, then average the 5th and 6th sorted values for the median. For 100, 2, 3, 5, 7, 9, 11, 13, 60, 90, the sorted middle pair is 7 and 9, making the median 8.

Should I use mean or median when one data point is dramatically higher than the rest?

Use the median for describing the typical value and disclose the mean separately for the total picture. Data set 46, 48, 52, 55, 999 has a mean of 240 and a median of 52, so quoting 240 as the "average" misleads anyone asking about the norm. If the extreme value is a suspected data-entry error, verify it before either statistic goes into a report.

Does the median change if I add a duplicate value?

Yes, because a duplicate adds an observation and shifts the middle position. The set 2, 4, 4, 6, 9 has a median of 4, while 2, 4, 4, 4, 6, 9 makes the median 4 again only because both middle entries happen to be 4; try 2, 3, 8, 9 instead β€” median 5.5 β€” and add a four to get 2, 3, 4, 8, 9 with a median of 4. Duplicates don't hide, they reorder the count.

Can the mean and median ever be exactly equal?

Yes, in symmetric data sets. The set 10, 20, 30, 40, 50 has a mean of 30 and a median of 30, and so does 1, 2, 3, 2, 1 when expanded with repeats. Equality doesn't guarantee symmetry, but symmetry practically guarantees it. Data set 6, 10, 14 has a mean of 10 and a median of 10, and shifting every value up by the same amount keeps them equal.

Why does the trimmed mean give a different answer from the standard mean?

The trimmed mean deletes the most extreme values before averaging, which removes their pull on the total. With 20 observations, a 10% trim cuts the largest and smallest two, then divides by the remaining 16 β€” the denominator changes, so the result differs from the raw average. It's standard practice in Olympic judging panels, and it should be disclosed alongside the trim percentage whenever you report it.

If both average functions produce strange numbers, what's the most common culprit?

An unexpected header, a total row, or blank cells sitting inside the selected range. Check =COUNT against your actual number of records, then widen the selection to see what the software swallowed. A common failure is a column containing one cell with "n/a" typed as text: it's skipped by AVERAGE, so the count drops without an error appearing.

What's the difference between a median and a mode?

The median is the positional middle of sorted data; the mode is the value that appears most often, and it can be absent entirely when every value is unique. Data set 1, 2, 2, 9, 14 has a mode of 2 and a median of 2, while 1, 2, 3, 4 has no mode at all. In symmetric data all three roughly align; in skewed data the mode often sits farthest from the mean.