We can illustrate the calculation using the same data we used for illustrating the quartiles.
i x[i]
1 102
2 105
----------- the first quartile, Q[1] = (105+106)/2 = 105.5
3 106
4 109
------------ the second quartile, Q[2] or median = 109.5
5 110
6 112
------------ the third quartile, Q[3] = (112+115)/2 = 113.5
7 115
8 118
From this table, you can see that the interquartile range is 113.5 - 105.5 = 8
back to statistical dispersion