Guide
Mean or median: which center represents your numbers?
One high observation can move an average substantially even when most values sit close together. The median therefore answers a different question from the mean. Weighting adds another distinction when observations do not count equally. A shared distribution chart makes those differences visible.

Quick answer
The calculation at a glance
The mean spreads the total across the observations. The median describes the central position in a sorted list. Here, weights change only the mean; the other measures continue to use the complete list.
What matters
The median uses positions in the sorted list
For five observations, the third sorted value is the median. For six observations, the center lies between the third and fourth values; their mean is used. Original input order does not matter. Repeated values remain separate observations and are not discarded.
A zero weight does not delete an observation
A weight of zero excludes a value from the weighted mean but retains it in the overview as an entered observation. Median, minimum, maximum and count therefore still use all values. This distinction matters when exploring how an outlier influences the mean.
Examples and comparisons
One high observation moves the mean
Where your values sit around the average
- Mean
- 8
- Median · unweighted
- 4
Each dot marks an entered value. Dots at the same position stack upward. Hollow dots have zero weight in the mean; the median still includes them.
- 2 (weight: 1)
- 4 (weight: 1)
- 4 (weight: 1)
- 6 (weight: 1)
- 24 (weight: 1)
Load this example’s inputs in the calculator. Review them, calculate the result, then adapt the values to your own case.
Change one input
A smaller outlier with the same median
Direct comparison
| Scenario | Your numbers | Arithmetic mean |
|---|---|---|
| Scenario 1 | 2; 4; 4; 6; 24 | 8 |
| Scenario 2 | 2; 4; 4; 6; 9 | 5 |
| Change from scenario 1 to scenario 2 | -3 · -37.5% relative | |
Also verify before making a decisionUp to 100 values with absolute value at most 1 trillion. Weights range from zero to 1 million, with at least one positive weight. The median is unweighted. Standard deviation and probabilities are not calculated.
Assess your case
Which approach fits your question?
Calculate the ordinary mean and compare it with the median. A substantial difference can indicate a skewed distribution.
Use suitable weights, such as each group’s size. An unweighted average of group averages can otherwise mislead.
Checklist
Before applying the answer
- All values measure the same quantity in the same unit.
- Weights have a valid meaning and at least one is positive.
- Median and weighted mean are interpreted as different measures.
Common mistakes
Three common mistakes
The mean need not appear in the list. For 2 and 8 it is 5, although neither observation equals 5.
Groups of 2 and 20 people should not carry equal weight when calculating an overall per-person mean.
Separate values with semicolons or line breaks. In English, use a decimal point within each number.
A smaller outlier with the same median
The values 2, 4, 4, 6 and 24 have a mean of 8 and a median of 4. Replacing only 24 with 9 reduces the mean to 5. The median stays at 4 because the middle position in the sorted list is unchanged. This comparison is not a reason to alter real observations.
- How does the largest value affect the mean and the median?
- Why does a zero weight exclude a value from the weighted mean but leave it in this calculator’s median list?
- Which of the two measures answers your actual question?
Calculator for this guide
Interpret outliers and weights
If the mean and median differ substantially, inspect the extreme values. Remove a value only for a sound reason; an unusual observation is not automatically an error.How the calculation works
Calculation
Calculation method and model limits
Find two different kinds of center.
Check the separators and consider the values in order from smallest to largest.
Multiply each value by its share of the total weight and add those contributions to obtain the mean.
For the unweighted median, take the middle observation or average the two observations on either side of the center.
A visible gap between the markers invites a closer look at the distribution. It does not by itself establish an input error or a particular distribution shape.
Simplified formula
Mean = sum of values ÷ count. Weighted mean = Σ(value × weight) ÷ Σweights. Median: the middle sorted value, or the mean of the two middle values for an even count.
Scope and assumptions
The calculation itself is country-independent. Language and display choices do not change its mathematical logic.
- Calculation
- Country-independent calculation
- Applies to
- International
- Currency
- No monetary calculation
- Units
- No unit conversion needed
Questions about the mean, median and weights
When is the median more useful than the mean?
For strongly skewed data, the median can better describe a typical central value. It is less sensitive to individual very high or low observations. The two measures answer different questions.
Must weights add up to 100?
No. Their relative size matters. Weights of 1 and 3 give the same mean as 25 and 75. At least one weight must be positive.
How do I separate decimal values?
In English, use decimal points and separate values with semicolons or line breaks, for example 1.5; 2.5. Thousands separators are not allowed in this list.
We test the worked example automatically with the same logic used by the calculator. Sources, inputs, rounding and model limits are listed separately. This does not replace case-specific professional advice.
Responsible editor: Jens Marx
Formulas, input formats, examples and model limits are checked internally. No external professional review has been carried out.