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.

Wooden solids, ruler and a notebook with geometric shapes and a solved equation.
Illustrative image

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

Your calculation, illustrated

Where your values sit around the average

2 · weight 14 · weight 14 · weight 16 · weight 124 · weight 1224
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.

All values and weights
  1. 2 (weight: 1)
  2. 4 (weight: 1)
  3. 4 (weight: 1)
  4. 6 (weight: 1)
  5. 24 (weight: 1)
Your numbers2; 4; 4; 6; 24
WeightingEqual weights
Arithmetic mean8 unitless

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

Sensitivity check · only one input changedYour numbers → Arithmetic mean

Direct comparison

Data points for the two calculated scenarios: Your numbers and Arithmetic mean
ScenarioYour numbersArithmetic mean
Scenario 12; 4; 4; 6; 248
Scenario 22; 4; 4; 6; 95
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?

When every observation counts equally

Calculate the ordinary mean and compare it with the median. A substantial difference can indicate a skewed distribution.

When values represent groups of different sizes

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

Expecting the mean to be an observed value

The mean need not appear in the list. For 2 and 8 it is 5, although neither observation equals 5.

Ignoring group sizes when averaging group means

Groups of 2 and 20 people should not carry equal weight when calculating an overall per-person mean.

Using commas to separate the list

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.
Open the matching calculator

How the calculation works

Calculation

Calculation method and model limits

Find two different kinds of center.

1
Arrange the numerical list

Check the separators and consider the values in order from smallest to largest.

2
Combine weighted contributions

Multiply each value by its share of the total weight and add those contributions to obtain the mean.

3
Locate the middle position

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.

Transparency

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.

Continue calculating

Related calculations

Grades add scale restrictions and target calculations. Percentages and proportions address shares and proportional relationships separately from averages.

Editorial method

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.