A 33-year-old physics teacher at Bannerman High School in Baillieston, Glasgow, has quit her job after children and parents started sharing explicit pictures of her that she had uploaded to the adult website.
Kirsty Buchan, 33, resigned from her position at the high school before a disciplinary hearing could be carried out.
Ms Buchan said that she had turned to creating pornography after needing extra money to care for her son.
A parent of one of the students at Bannerman High School told the Daily Record: "The photos have been circulating like wildfire and parents have been talking via Whatsapp about it.
"The poses she did for OnlyFans weren't just suggestive, they left nothing to the imagination. Some parents thought it was funny but several have made complaints because the poses were just too extreme."
Ms Buchan defended her actions, saying: "Some people are saying I must be mad to go from being a physics teacher to selling nude photos online.
"But it has become very clear to me that I was insane to stick at that job for six years under the strain that I was facing every day.
"I've had people saying it's my body and my decision what I do with it. And that's the bottom line.
"I'm not ashamed of my body and I discussed all this with my boyfriend before I made the decision to open the account."
A spokesperson for Glasgow City Council said: "This teacher was under investigation prior to tendering her resignation following the widespread distribution of whole inappropriate and pornographic images.
"The council has a code of conduct that all employees should adhere to and a teacher who has actively pursued a second income on this type of website brings their school, the council, and their profession into disrepute."