The interquartile range (IQR) measures the spread of the middle 50% of a dataset, providing a robust indicator of variability that is less influenced by outliers. It is calculated by subtracting the first quartile (Q1) from the third quartile (Q3), offering insight into the distribution's central tendency and dispersion.