ใ€ฐ Median Calculator

Median

What is Median?

The median is the middle value in a sorted dataset. It divides the data into two equal halves and is less affected by extreme values (outliers) than the mean.

For odd count: Median = middle value
For even count: Median = average of two middle values

Example

Dataset: 3, 7, 1, 9, 4 โ†’ Sorted: 1, 3, 4, 7, 9 โ†’ Median = 4 (middle value)

Dataset: 2, 4, 6, 8 โ†’ Median = (4 + 6) / 2 = 5 (average of two middles)

Frequently Asked Questions

What is the difference between mean and median? โ–ผ
Mean is the arithmetic average (sum รท count), while median is the middle value when data is sorted. Median is more robust to outliers. For example, in income data, median better represents typical income.
When should I use median instead of mean? โ–ผ
Use median when your data has outliers or skewed distribution. For example, house prices, salaries, or any dataset where extreme values could distort the average.
What if two numbers are in the middle? โ–ผ
When there is an even count of numbers, the median is the average (mean) of the two middle numbers.