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
Becky Watts' uncle speaks exclusively to ITV News following the arrest of two people on suspicion of her alleged kidnap and murder.
The killer serving life for the murder of Jo Yeates has been sentenced to a further 10 months after admitting possessing child abuse images.
Meet the twins from Gloucester who've had to produce their birth certificates to friends in order to prove that they are in fact related.