The 47-year-old was knocked unconscious for a short time and remained in the car for around two hours while fire crews worked to free him.
A spokesman for Lothian and Borders Fire Service said that the length of time was due to the “precarious” position of the car.
The car came off the road on the westbound carriageway of the bypass between Dreghorn and Baberton at around 2pm.
Fire crews used hydraulic cutting equipment to take off the roof of the car and allow ambulance staff to treat the man.
It is believed that the driver had spinal injuries but a spokesman for the Scottish Ambulance Service said that it didn’t appear that his injuries were serious.
He was taken to the Edinburgh Royal Infirmary for treatment.
A police spokeswoman said that there were tailbacks on the route as one of the lanes had to be closed to allow fire crews access to the accident.