Three people have managed to free themselves from a car "completely ruined" after it crashed into a tree on the Sunshine Coast.

About 6:20pm on Thursday a car was driving west along Lake Macdonald Drive at Cooroy when the 18-year-old male driver lost control of his vehicle and crashed into a tree.

The driver and a 20-year-old male passenger both sustained serious injuries and were taken to the Nambour General Hospital in serious but stable conditions.

A 16-year-old female passenger sustained minor facial injuries.

Officer in Charge of Cooroy Police Station Sergeant Mal Scott said it was a miracle all three people escaped the vehicle alive.

"The vehicle was completely ruined on impact, when there is this level of destruction in a traffic crash you often fear the worst," he said.

"The occupants were initially trapped in the wreckage but somehow managed to crawl out of the vehicle."

Sergeant Scott said the crash could have easily been fatal.

"This is a timely reminder to take care on the roads, don't speed, don't drink or take drugs and drive, don't drive tired, wear your seatbelt, pay attention to the way you are driving and don't become distracted and obey the road rules," he said.

"Road safety is everyone's responsibility."