An Adelaide teacher who admitted having sex with a student has walked from court after she successfully appealed her sentence.

Sonia Ruth Mackay was last year jailed for more than four years after she pleaded guilty to the persistent sexual exploitation of a 17-year-old boy.

The Court of Criminal Appeal on Thursday overturned the sentence and handed her a good behaviour bond.