Ten students record how many minutes they read last night, sorted: 0, 10, 15, 20, 20, 25, 30, 30, 35, 120. The range is 120−0=120 minutes, which makes the class look wildly spread out. But that comes from just two students, one who read nothing and one who read for two hours. The IQR asks a narrower question: how spread out is the middle of the class?
Split the sorted data into halves: 0, 10, 15, 20, 20 and 25, 30, 30, 35, 120. The middle of the lower half is Q1=15, and the middle of the upper half is Q3=30, so the IQR is 30−15=15 minutes. About half the students read between 15 and 30 minutes. Change the 120 to 300 and the IQR stays 15, while the range jumps to 300.
The IQR and the range are both a larger value minus a smaller one, which is why they get mixed up. The range uses the two most extreme values; the IQR uses the quartiles. If a problem gives you the minimum and maximum, subtracting them gives the range; if it gives Q1 and Q3, or a box plot, the IQR is the length of the box. By design, the IQR says nothing about the top and bottom quarters.
Think of it like this. The IQR is like measuring the width of the main crowd at an outdoor concert while ignoring the few people wandering at the back or pressed against the stage. Those stragglers can stand anywhere without changing the width of the crowd. The cost is that the IQR tells you nothing about how far the stragglers went.
Core idea. The IQR is the width of the middle half of the data, Q3−Q1; ignoring the top and bottom quarters makes it a spread that extreme values cannot stretch.