The 28-year-old actress, who plays Spencer Hastings on the popular ABC series, opened up about her past struggles, happiness and beauty in the February issue of Seventeen magazine.
"I started self-harming when I was a junior. I would withhold food or withhold going out with my friends, based on how well I did that day in school," Troian said.
"I didn't know what was right and what was wrong, so I think I created this bizarre system of checks and balances to create order in my world. But it really backfired," she added.
"Whenever I get down, when I want to crawl under a rock, I just look around at them and I see how rich my life is. You have to remember what's most important in life," she said.
"I am loved by so many people and have a wonderful job. I know I'm incredibly blessed. I am a completely lucky human being," she added.