What this answers
The median answers "what is the middle value of this data, once sorted?" Unlike the mean, it does not care how far above or below the center an extreme value sits, only that it is above or below. This makes the median a more reliable summary than the mean whenever your data is skewed or contains a handful of extreme values.
How it is calculated
Values are sorted, and the median is the middle value for an odd count, or the average of the two middle values for an even count. This calculator also reports the first and third quartiles using the same Hyndman-Fan Type 7 interpolation convention used throughout this site (R's and most spreadsheets' default), so the median and quartiles here always agree with the quartiles shown by the Quartile and IQR engine on the same data.
Worked example
For the values 1, 2, and 100: sorted, the middle value is 2, so the median is exactly 2, completely unaffected by how large 100 is. Compare this with the mean of the same three values, about 34.3, and the difference shows exactly why the median is the safer choice when a dataset has an extreme value like this one.
Assumption audit
Common mistakes
Assuming the median and mean will be close is only safe for roughly symmetric data. Reporting only the median can also hide real variability; pairing it with Q1 and Q3, or checking the full spread with the Standard Deviation Calculator, gives a fuller picture.
Limitations
The median discards information about exactly how far values sit from the center, only their relative order. Two very differently shaped datasets can share the same median.