Median Calculator

Find the median (middle value) of a set of numbers.

Median
Sorted Values
Mean
Minimum
Maximum
Recent Calculations

What Is Median?

The median is the middle value in a sorted dataset. For an even number of values, it's the average of the two middle values.

Formula

For odd n: median = x₍₍ₙ₊₁₎/₂₎. For even n: median = (x₍ₙ/₂₎ + x₍ₙ/₂₊₁₎) / 2

Example

For {3, 7, 1, 9, 5}: sorted = {1, 3, 5, 7, 9}, median = 5.

Frequently Asked Questions

When is median better than mean?

Median resists outliers. For income data ($30k, $35k, $40k, $45k, $1M), median ($40k) is more representative than mean ($230k).

How to find median of even-count data?

Average the two middle values. For {2, 4, 6, 8}: median = (4+6)/2 = 5.

Related Topics