The median is the value that divides a set of data exactly in half. It is the middle value when the values in a set of data are arranged in order. If there is no middle value (i.e. there are an even number of values) then the median is calculated by determining the mean of the two middle values. Thus: median = the middle value of a set of data.