Mean & Median Calculator

Enter your numbers to find the mean (average) and the median, along with the count, sum, maximum, minimum and range.

Separate numbers with a comma, space or line break. Do not use commas as thousands separators: "1,000" would be read as the two numbers 1 and 000, so enter it as 1000.
Mean —
Results
Mean—
Median—
Count—
Sum—
Maximum—
Minimum—
Range (maximum − minimum)—
The copied value is the mean (without commas). The median, sum and other values are shown exactly up to 6 decimal places (trailing zeros are not shown).

How the mean and median are calculated

Calculations are exact (no floating-point errors), and only the mean is rounded to the number of decimal places you choose. Negative values are rounded by their absolute value and the sign is restored.

Mean versus median

The mean is pulled toward extreme values; the median is not. The mean of 1, 2, 3 and 100 is 26.5, but the median is 2.5. For data with a few extreme values, such as incomes or prices, the median is often closer to a typical value.

Examples

Frequently asked questions

Is "average" the same as the mean?

In everyday use, "average" usually means the mean. Strictly, the median and the mode are also kinds of average. This calculator shows the mean and the median; it does not calculate the mode.

How do I find the median of an even number of values?

Sort the values, then average the two middle ones. For 1, 2, 3, 4 the middle values are 2 and 3, so the median is 2.5.

How many numbers can I enter?

Up to 1,000 numbers, each with up to 12 digits before the decimal point and up to 6 decimal places.