The motorist got the boys off the car, then talked to the woman who shouted: "Save my kids."
The 13-year-old had already done that.
Calm beyond his years, he helped the young children out of their seatbelts and led them out of the car to safety by the roadside.
The trapped woman could not be moved until firefighters and ambulance staff arrived.
Firefighters anchored the car to a fire truck so it wouldn't overturn, disconnected the horn - which had been jammed on since the crash - and cut out the windscreen before removing her.
She was carried up the bank on a stretcher and taken by ambulance to a nearby paddock where the Northland Emergency Services Trust rescue helicopter landed to take her to hospital in Auckland for treatment.
Dargaville police Constable Brett Steel said the children were uninjured and wet conditions contributed to the crash.
Local farmer Malcolm Welsh said there had been about 10 crashes on the corner in the past five years.