Skip to content

Odd and Even Data Sets

All Calculators

Whether the count of your values is odd or even changes how the median and the quartiles are found, and nothing else. The mean is unaffected.

The median

  • Odd count: there is a single middle value. For 1, 2, 3 the median is 2.
  • Even count: there are two middle values, and their average is the median. For 1, 2, 3, 4 the median is (2 + 3) ÷ 2 = 2.5.

Why an even count can give a value that was never entered

For 1, 2, 3, 4 every value is a whole number, and yet the median is 2.5. That is not a rounding error: the median of an even dataset is defined as the midpoint between the two middle values, so it can sit between them.

The quartiles

The calculator uses the median-of-halves method, which splits the sorted data at the median and treats each half as its own dataset. With an odd count the median belongs to both halves, following Tukey’s hinges, so for 12, 15, 15, 18, 20 the lower half is 12, 15, 15 and the upper half is 15, 18, 20. That gives Q1 = 15, Q3 = 18 and an interquartile range of 3. With an even count the split is clean: for 1, 2, 3, 4 the halves are 1, 2 and 3, 4, so Q1 = 1.5 and Q3 = 3.5.

One value, two values

A single value is its own mean, median and mode. With two values the median is their average, and the sample standard deviation cannot be worked out at all, because it divides by n − 1, which would be one. The calculator reports that honestly rather than showing a misleading number.

Common mistakes

  • Using the odd rule on an even dataset and taking one of the middle values.
  • Rounding the median of an even dataset to a whole number before checking what the question expects.
  • Forgetting to sort, which matters even more when the count is even.
Scroll to Top