Median Calculator

Find the median of a list of numbers

Paste your numbers (commas, spaces, or new lines). This calculator returns the median and a small set of helpful summary stats.

Advanced (optional)

Median calculator for a pasted list of numbers

This Median Calculator is built for one common job: you already have a list of values (test scores, prices, response times, weights, delivery days, survey ratings, or any other numeric set) and you want the median quickly. The median is the “middle” value after sorting the numbers from smallest to largest. It is especially useful when your data includes outliers, because the median is much harder to distort than the average.

To use it, paste your numbers into the box and click “Calculate median.” You can separate values with commas, spaces, or new lines. The tool will clean the input, sort the values, and then identify the middle point. Along with the median, it also shows the count of values used and a few summary stats that help you sanity-check the data you pasted, including minimum, maximum, and mean (average).

The main result is the median. If you have an odd number of values, the median is the single value that sits in the middle after sorting. If you have an even number of values, there is no single middle value, so the median is defined as the average of the two middle values. This calculator uses that standard definition. If you enable the optional sorted preview, you can also see the first part of the ordered list (useful for spotting mistakes like an extra zero or a missing decimal).

Assumptions and how to use this calculator

  • The median is calculated from the standard definition: sort the list; take the middle value (odd count) or average the two middle values (even count).
  • Only numeric entries are used. If your pasted text includes words or symbols that cannot be read as numbers, the calculator will stop and tell you to fix the input.
  • Commas used as thousand separators are allowed (for example, 1,200). If you use commas as decimal separators (for example, 1,5 meaning 1.5), convert them to decimal points first.
  • The calculator treats each value equally (no weighting). If you need a weighted median, this tool is not intended for that use case.
  • The “sorted preview limit” only affects what is displayed, not the calculation. The median always uses the full list.

Common questions

What is the difference between the median and the average?

The average (mean) adds all values and divides by how many there are, so a single extreme value can pull the result up or down. The median depends only on order, so it is usually a better “typical value” when your data includes outliers (for example, income, property prices, or delivery times with rare delays).

How does the calculator handle an even number of values?

If there are two middle values, the median is the average of those two numbers. For example, the median of 2, 5, 9, 20 is (5 + 9) ÷ 2 = 7. This is the most common practical definition used in basic statistics and everyday reporting.

Can I paste values from Excel or Google Sheets?

Yes. Copy a column or row and paste it into the input box. Tabs and new lines are treated as separators. If you copied values with thousand separators (like 3,500) that is fine. If you copied values with currency symbols (like $3,500), remove the symbols first to avoid parsing errors.

Why is the tool saying one of my entries is invalid?

The calculator expects each entry to be a number. Common issues include currency symbols, units (like “kg”), stray characters, or mixed formatting such as “1,2” to mean 1.2. Clean the list so each item is purely numeric (digits, optional leading minus sign, optional decimal point, optional thousand commas).

How can I improve accuracy and avoid mistakes?

Use the sorted preview option and scan for obvious outliers that are actually input errors (extra zeros, wrong decimal placement, duplicates from copy-paste, or blank lines). If your list is large, set a reasonable preview limit and check the minimum and maximum values shown in the results to confirm the paste looks correct.

Last updated: 2025-12-22