The road was shut in both directions between J3 for Halesowen and J4 for Bromsgrove shortly after 09:00 BST.
All lanes reopened just after midday and normal traffic conditions are expected soon, said Highways England.
The man was freed from his car and taken to hospital, said the Central Motorway Policing Group.
The M5 motorway was closed for an air ambulance to land to treat a man freed from his overturned car.