Median or Mean: Which Average Better Describes Your Data?

By Prince Yadav, Founder & Lead Developer.

Find the middle after sorting

Arrange the values from smallest to largest. For an odd number of values, the median is the centre value; for an even number, it is commonly the mean of the two centre values.

See why outliers matter

For incomes of 20, 22, 23, 25, and 100, the median is 23 while the mean is 38. The unusually high value pulls the mean upward.

Choose based on the question

The mean uses every value and is useful for totals and many statistical models. The median describes the central ranked value and is often helpful for skewed data.

Check the data preparation

Missing values, duplicated records, and mixed units can change the median. Decide which observations belong in the dataset before calculating.

Explain the sample size

A median from a small group can change sharply when one observation changes. Report the number of observations and relevant context when presenting results.

Avoid calling one measure universally best

Mean and median answer different questions. For a balanced view, report both when their difference reveals something important about the distribution.

Use median and mean to describe a skewed set

Consider five daily order values: ₹200, ₹220, ₹230, ₹250, and ₹1,100. The median is ₹230, the middle value after sorting. The mean is ₹2,000 ÷ 5 = ₹400. The unusually large order pulls the mean upward, while the median still describes the middle observation.

Neither statistic is automatically “correct.” The mean is useful when total value per observation matters, such as estimating average revenue across all orders. The median can better represent a typical transaction when a few large values dominate. Report the sample size and, where it helps, show both statistics or a range.

Do not remove an outlier merely because it changes the result. First determine whether it is a data-entry error, a valid rare event, or evidence that the data contain different groups. The right summary depends on the question being asked.

Try the Calculator

Test the worked-example inputs in Median Calculator, then change one input to see how the result responds.

Open Median Calculator