The 'Roar' singer - who split from the Brit actor and comedian on New Years' Eve 2011 - wrote about the experience for new song 'By The Grace Of God', which will feature on her forthcoming album, 'Prism'.
“That song is evident of how tough it really was at a certain point," she told Billboard magazine.
“I asked myself, ‘Do I want to endure? Should I continue living?’
She added: “I tell my fans if they want to know the real truth about stuff, just listen to the songs.”
Katy recently received the support of a rock legend for sending a message to her ex husband in her single, 'Roar'.
Fleetwood Mac star Stevie Nicks pronounced herself full of admiration for the song – an undisguised ode to survival.
“My favourite song right now... I'm so proud of her," Nicks told The Huffington Post. "I think that is such a girl power song, and I'm so happy that she's sending out messages to ex-husbands - who needs them?"
Also on HuffPost:
More:Katy Perry Russell Brand Divorce Russell Brand Katy Perry Russell Brand Uk Celebrity Katy Perry
Suggested For You
Get top stories and blog posts emailed to me each day. Newsletters may offer personalized content or advertisements. Learn more