How this calculator works

The mean adds every value and divides by how many there are. The median is the middle value after sorting; with an even count, it is the average of the two middle values. The mean is sensitive to outliers, while the median is more resistant.

This calculator accepts numbers separated by commas, spaces or new lines. It ignores blank entries and non-numeric text, so clean the list if you need a precise result.

The formula

mean = sum ÷ count median = middle value of the sorted list (average of the two middle values if count is even)

Min, max and sum are shown for a quick check of the list.

A worked example

For 10, 20, 30 and 40: the mean is 25, the median is 25, the sum is 100 and the count is 4.

Assumptions and limits

  • The list contains numeric values only; other text is ignored.
  • The mean is the arithmetic mean, not a weighted average.
  • The median is calculated from the sorted values.
  • Extreme outliers can pull the mean away from the typical value.

Frequently asked questions

What is the difference between mean and median?

The mean is the arithmetic average. The median is the middle value after sorting, so a single very large number affects it less.

Can I paste numbers with commas?

Yes. Commas, spaces and new lines are treated as separators. A decimal point is preserved as part of the number.

What about negative numbers?

They are included in the calculation. Make sure the minus sign stays attached to the number when pasting.

This page is an educational estimate, not professional advice. Read the full disclaimer and our editorial policy.

Last updated 4 December 2026 · Reviewed in-house