Median Calculator

Enter your values to find the median - the middle value in a sorted dataset.

Value

Result

-.---

Batch Import - You can paste multiple values separated by spaces. They will be automatically distributed across the input fields.

When to use median - The median is particularly useful when your data contains outliers, as it is less affected by extreme values than the mean.

Formula

Median Formula

To calculate the median manually, follow these steps:

Median = middle value (odd count) or (middle₁ + middle₂) / 2 (even count)
Example Calculation
For [3, 7, 9, 12, 15], the median is 9. For [3, 7, 9, 12, 15, 18], the median is (9 + 12) / 2 = 10.5

Sort all values from smallest to largest. If there's an odd number of values, the median is the middle value. If there's an even number of values, the median is the average of the two middle values.

What is median

What is Median?

The median is a measure of central tendency that represents the middle value in a sorted dataset.

Unlike the arithmetic mean (average), the median is not affected by extreme values or outliers. This makes it a more robust measure of central tendency when your data contains unusually high or low values that could skew the average.

The median is widely used in statistics, economics, and data analysis. Common applications include reporting median household income (which better represents typical earnings than the mean), real estate prices, and any dataset where outliers could distort the average.

Examples

When to Use Median

The median is the preferred measure of central tendency in many real-world scenarios:

  • Income Statistics: Median household income is more representative than mean income because a few extremely wealthy individuals can dramatically inflate the average, while the median shows what a typical household earns.
  • Real Estate Prices: Median home prices are often reported instead of averages because luxury properties can skew the mean upward, making the median a better indicator of typical market prices.
  • Test Scores Analysis: When analyzing test scores with potential outliers (students who scored exceptionally high or low), the median provides a better sense of how most students performed.
FAQ

Frequently Asked Questions

What is the difference between mean and median?
The mean is the sum of all values divided by the count. The median is the middle value when data is sorted. The median is less affected by outliers.
When should I use median instead of mean?
Use median when your data has outliers or is skewed. For example, median income is more representative than mean income because a few billionaires can skew the average.
Can the median be a decimal?
Yes, when you have an even number of values, the median is the average of the two middle values, which can result in a decimal.
How does median handle negative numbers?
The median calculation works the same way with negative numbers. Just sort them from smallest to largest and find the middle value.
More tools

More Calculators

Explore our collection of free calculators for students, teachers, and professionals.