Melody Carter-McCabe was sentenced in California, she is to serve five months in jail followed by five months probation. After her sentence, she won't be required to register as a sex offender.
Carter-McCabe began the affair with the teen in the fall of 2010 when he was 15 and she was 25. He had offered to come to her house and help her with chores.
She was an agriculture teacher at Livingston High School and was mentoring the student through Future Farmers of America.
At the time, she was married with a young son but they have since divorced.
Last summer, the teen came forward and told police that he kissed the teacher and two weeks later they began having sex.
He said they had sex at least 50 times during the affair which lasted from September 2010 to August 2011.
When he was questioned by police, he gave detailed descriptions of things that no one else would know, like that she had a purple sex toy and a small tattoo on her ankle.
After detectives searched her home, they found a purple sex toy in a nightstand.
The teen also showed detectives photographs of a woman in her underwear on his cellphone and said it was Carter-McCabe.
Authorities decided to launch the investigation after rumors began spreading around the school where she worked. They then told the boy's parents.
The student said he began innocently helping out Carter-McCabe with chores around the house, including yard work. Then, he kissed her.
She told him it would be the last time, but two weeks later they started making out and eventually having sex.
He said they started having sex after she asked him if he had ever had it before.
They ended their affair after they agreed that their age difference "made it impossible to be together," but she talked about continuing it when he was older.
"It is extremely troubling because parents send their children to school, and they trust their child with educators," Chief Deputy District Attorney Rob Carroll said. "I think 99.9 percent of educators do a fantastic and sometimes thankless job. It's unfortunate there are people…like the defendant who give educators a bad name."
The teacher's attorney, Jeffrey Tenenbaum, said he could not comment on the allegations. "Obviously she's having a very difficult time. This is her first time ever going to jail," he said.
Originally, she was booked on nine felony counts of unlawful sex with a minor and faced up to 12 years in jail.