Skip to content

Odd and Even Data Sets

All Calculators Practice Questions

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.

The median depends on the number of observations

An odd count has one middle position after sorting. An even count has two middle positions. For an even count, find the arithmetic mean of those two middle values. This rule concerns the number of observations, not whether the observations themselves are odd or even numbers. Sorting is essential before choosing the middle.

Worked example: five values and six values

For 3, 5, 8, 10, and 14, there are five values. The third value is 8, so the median is 8. For 3, 5, 8, 10, 14, and 20, there are six values. The third and fourth values are 8 and 10. Their average is 9, so the median is 9. Notice that 9 is not an item in the second list; that is perfectly valid.

Labelling the positions

Repeated numbers count as separate observations. In 2, 2, 4, and 8, the middle pair is 2 and 4, giving a median of 3. The mode is 2 because it appears twice. To avoid mistakes, label the positions after sorting and check the count before doing any arithmetic.

Frequently asked questions

What is the median of five sorted values?

It is the third value.

What is the median of six sorted values?

It is the average of the third and fourth values.

Must the middle pair be different?

No. They can be equal, giving that same number as the median.

Practise with the even and odd numbers calculator and watch how the count changes the median.

Scroll to Top