The calculation of median age involves arranging all ages in a population in ascending order and identifying the middle value. If the number of observations is odd, the median is the middle number. If even, it is the average of the two middle numbers. This can be done using statistical software or manually for smaller datasets.