Former prime minister Julia Gillard is writing her memoirs.

Publisher Random House has secured the rights and plans to publish the book in October 2014.

"I am very excited at having this opportunity to use my own words to describe my political and personal journey," the first female prime minister of Australia said in a statement.

"I want to distil for readers what I achieved, what drove me, where I erred, my personal resilience and how I coped.

"I want to share my perspective on the issues of our times and how I strove to make a difference for the better every day I had the privilege of serving as prime minister."

The former Labor leader said she would also write about the future challenges for Australia.

Random House Australia publishing director Nikki Christer said there was much in Ms Gillard's life and parliamentary legacy to be admired and debated.

"In any reckoning of her achievements, both before and after becoming prime minister, this book, written by her and told in her own words, will be essential," Ms Christer said.

Ms Gillard served as prime minister from 2010 to 2013.

The book will be published under Random House's Knopf imprint.