Sandiford, 56, was sentenced after being found guilty of violating the country's strict drug laws by the Denpasar District Court today.
In the court's verdict, a judge panel headed by Amser Simanjuntak, concluded that Sandiford has damaged the image of Bali as a tourism destination and weakened the government's programme of drug annihilation.
The cocaine she smuggled was worth around 2.5 million US dollars, the Associated Press reported.
Prosecutors had said during the trial last month that they were seeking a 15-year prison term, and not pursuing the maximum penalty for drug trafficking which is death.
More top news
A Breaking Bad-style drugs gang led by a cancer victim - just like in the hit TV series - has been jailed for more than 80 years.
A feast of culture showcasing some of the worlds finest musicians and new talent is underway at this year's Womad Festival
The parents of two young boys who have a rare muscular disease say a new drug needs to be approved soon or they could run out of time.