Two South Australian police officers were lucky to escape injury after a car flipped on top of their vehicle in Adelaide's north-eastern suburbs early on Monday.

The 18-year-old driver of the other car allegedly lost control at the intersection of North East and Tolley Roads in St Agnes just after midnight.

Police say his red Toyota hit a median strip, flipped and landed on the roof of the police car before rolling off.

The driver suffered a minor arm injury and has been reported for driving without due care.