Median Calculator

Find the median (middle value) of any set of numbers. Works for both odd and even sized data sets.

How to Find the Median

  1. Sort the numbers in ascending order.
  2. If n is odd: median = the middle value at position (n+1)/2.
  3. If n is even: median = average of the two middle values.
Data: 3, 1, 4, 5, 2 → Sorted: 1, 2, 3, 4, 5 → Median = 3
Data: 1, 2, 3, 4 → Median = (2+3)/2 = 2.5

Last updated: 2026-08-08