Mean & Median: formula
The mean is sensitive to outliers, and the median ignores the size of extreme values entirely. Neither shows spread, so pair them with the standard deviation or the range. Small samples can mislead.
The mode, the most frequent value, is a third measure of center that this tool does not compute.
Mean & Median: worked example
| Number of observations to include | 6 |
|---|---|
| Value 1 | 12 |
| Value 2 | 18 |
| Value 3 | 9 |
| Value 4 | 22 |
| Value 5 | 15 |
| Value 6 | 20 |
| Mean | 16 |
| Median | 16.5 |
Use observations measured in a common unit and over comparable periods. Mixing annual salaries with hourly rates produces a mean with no consistent meaning. Decide whether each entry represents a person, transaction or another observation before interpreting the middle value.
Mean & Median: changing Value 1
| Value 1 | Mean | Median |
|---|---|---|
| 10 | 15.7 | 16.5 |
| 11 | 15.8 | 16.5 |
| 12 (example) | 16 | 16.5 |
| 13 | 16.2 | 16.5 |
| 14 | 16.3 | 16.5 |
Mean & Median: compare input ranges
| Input | Tested from | To | Mean: low input | Mean: high input | Swing |
|---|---|---|---|---|---|
| Number of observations to include | 1 | 6 | 12 | 16 | 4 (25%) |
| Value 2 | 16 | 20 | 15.7 | 16.3 | 0.667 (4.2%) |
| Value 4 | 20 | 24 | 15.7 | 16.3 | 0.667 (4.2%) |
| Value 6 | 18 | 22 | 15.7 | 16.3 | 0.667 (4.2%) |
| Value 5 | 14 | 17 | 15.8 | 16.3 | 0.5 (3.1%) |
| Value 1 | 11 | 13 | 15.8 | 16.2 | 0.333 (2.1%) |
| Value 3 | 8 | 10 | 15.8 | 16.2 | 0.333 (2.1%) |
Mean & Median: individual input comparisons
| Input | Value | Mean | Median |
|---|---|---|---|
| Number of observations to include | 1 | 12 | 12 |
| 2 | 15 | 15 | |
| 3 | 13 | 12 | |
| 4 | 15.3 | 15 | |
| 5 | 15.2 | 15 | |
| 6 | 16 | 16.5 | |
| Value 1 | 10 | 15.7 | 16.5 |
| 11 | 15.8 | 16.5 | |
| 12 | 16 | 16.5 | |
| 13 | 16.2 | 16.5 | |
| 14 | 16.3 | 16.5 | |
| Value 2 | 14 | 15.3 | 14.5 |
| 16 | 15.7 | 15.5 | |
| 18 | 16 | 16.5 | |
| 20 | 16.3 | 17.5 | |
| 22 | 16.7 | 17.5 | |
| Value 3 | 7 | 15.7 | 16.5 |
| 8 | 15.8 | 16.5 | |
| 9 | 16 | 16.5 | |
| 10 | 16.2 | 16.5 | |
| 11 | 16.3 | 16.5 | |
| Value 4 | 18 | 15.3 | 16.5 |
| 20 | 15.7 | 16.5 | |
| 22 | 16 | 16.5 | |
| 24 | 16.3 | 16.5 | |
| 26 | 16.7 | 16.5 | |
| Value 5 | 12 | 15.5 | 15 |
| 14 | 15.8 | 16 | |
| 15 | 16 | 16.5 | |
| 17 | 16.3 | 17.5 | |
| 18 | 16.5 | 18 | |
| Value 6 | 16 | 15.3 | 15.5 |
| 18 | 15.7 | 16.5 | |
| 20 | 16 | 16.5 | |
| 22 | 16.3 | 16.5 | |
| 24 | 16.7 | 16.5 |
Mean & Median: combined input changes
| Value 1 / Value 2 | 14 | 18 | 22 |
|---|---|---|---|
| 10 | 15 | 15.7 | 16.3 |
| 11 | 15.2 | 15.8 | 16.5 |
| 12 | 15.3 | 16 | 16.7 |
| 13 | 15.5 | 16.2 | 16.8 |
| 14 | 15.7 | 16.3 | 17 |
Mean & Median: which assumptions move the result?
Mean & Median: values and definitions
| Quantity and definition | Value used |
|---|---|
| Number of observations to include — Uses the first 1–6 value slots; an included zero is data, not a missing-value marker. | 6 |
| Value 1 | 12 |
| Value 2 | 18 |
| Value 3 | 9 |
| Value 4 | 22 |
| Value 5 | 15 |
| Value 6 | 20 |
| Mean | 16 |
| Median | 16.5 |
Common error: Reporting the mean as the typical value in a skewed dataset. Median is the one built to resist outliers, and in a skewed set it's usually the closer answer to what a typical case looks like.
Equal centers do not establish symmetry
Mean and median can coincide in a distribution that is not symmetric. As an assumed five-observation example, take 0, 2, 3, 3 and 7: both centers are 3. Moving the last observation to 17 lifts the mean to 5 while the median remains 3.
Sorting identifies rank; summing preserves the magnitude of every observation. An included zero participates in both operations. An empty slot should be excluded by changing the observation count rather than replaced by an artificial zero.
These distinctions matter before interpreting the calculated center. Neither summary establishes how the sample was selected or whether a population inference is justified.
Statistics & Probability calculators: Standard Deviation Calculator, Range & Midrange Calculator, Permutation & Combination Calculator, Simple Probability Calculator, Z-Score Calculator, Confidence Interval Calculator.
Mean uses the magnitude of every included observation; median locates the middle rank after sorting. A large upper observation can pull the mean upward while leaving the median unchanged. That difference is useful to inspect, but agreement between the two centers does not prove symmetry or rule out extreme values.
Inspect the individual observations and their distribution. Equal mean and median can occur in an asymmetric set, so neither their agreement nor their separation alone establishes its shape.
Measure spread on the standard deviation and range calculators, compute weighted averages on the weighted average page, and find how far a value sits from the mean on the z-score calculator. The confidence interval page uses the mean to estimate a population. The percentage calculator helps with shares.
How do I find the median of an even number of values?
Sort the values from smallest to largest and take the average of the two middle values, since an even count has no single middle number.
What is the difference between mean and median?
The mean is the arithmetic average. Add the values and divide by their count. The median uses the sorted order and its middle position.
Extreme observations can move the mean substantially while leaving the middle position unchanged.
When should I use the median instead of the mean?
A skewed list can pull the mean toward an extreme. Incomes and house prices are familiar examples. The median describes the center of the sorted list instead, so compare it with the mean when a few unusually large or small values dominate the average.