needn't have vs didn't need to
B2 (Upper-intermediate) grammar · Modal verbs
Topic page: Must, should & have to
What it covers
An unnecessary action that happened vs one that didn't.
I needn't have cooked — they'd already eaten. I didn't need to cook, so I didn't.
Practice worksheets
On related B2 grammar.
More B2 grammar worksheets
A few more: the most used B2 grammar sheets.