Median Calculator

Enter values to calculate median with a clear result.

Calculate

Enter values and select Calculate.

How it works

Sort values from smallest to largest. With an odd count, take the middle number; with an even count, average the two middle numbers.

Worked examples

  1. 1, 3, 5: Median 3
  2. 1, 3, 5, 9: Median 4

Frequently asked questions

Is this calculator free?

Yes. You can use it without paying or creating an account.

Does it work on a phone?

Yes. The page adapts to small and large screens.

Can I enter zero?

Where zero is mathematically valid, the calculator accepts it.

What happens if I enter an invalid value?

You will see a clear message explaining what to correct.

Does the calculation run in my browser?

Yes. The calculator runs with JavaScript on your device.

Last updated: October 17, 2026