Sort the dataset in ascending order
Find the median (Q2)
Split the data into lower half and upper half (exclude the median if the dataset size is odd)
Find Q1 as the median of the lower half
Find Q3 as the median of the upper half
Compute the interquartile range: IQR = Q3 − Q1
