Julia Gillard made the comments in her first interview since she was deposed in a ballot of her center-left Labor Party colleagues in June by a vote of 57 to 45 as public opinion polls pointed to the administration heading for a catastrophic election defeat.
She was replaced by Kevin Rudd, a prime minister she had deposed in a similar leadership showdown three years earlier in the face of poor opinion polling.
Gillard, who turned 52 yesterday, told a sold-out audience of 2,600 people in the Sydney Opera House in an interview televised nationally that she reacted with "murderous rage" to the sexist attacks on her in social media and elsewhere.
She was called "witch" and "bitch" on protesters' banners, while a popular Sydney radio broadcaster said she should be dumped at sea in a sack.
More From This Section
"I was surprised by it. I had issues related to my gender before I became prime minister," she said, mentioning a senator condemning her as unfit to lead because of her decision not to have children.
Tony Abbott, who became prime minister after his Conservative party won the election, has been criticised for appointing only one woman to his Cabinet. The 55-year-old former Roman Catholic seminarian was branded "a misogynist" and "sexist" by Gillard in a speech to Parliament last year that was lauded by feminists around the world.
Gillard, who did not run in the election, returned yesterday from the United States where she accepted a position with the Washington-based Brookings think tank as a senior fellow specializing in global education.