The Duke of Sussex's memoir will be published on 10 January, his publisher Penguin Random House has said.
The book by Prince Harry will be titled Spare and will include his full account behind his decision to give up royal duties and move to the US.
Random House said: "As Diana, Princess of Wales, was laid to rest, billions wondered what the princes must be thinking and feeling – and how their lives would play out…
"For Harry, this is his story at last."
Buckingham Palace said it would not comment on the book announcement.
Some of the proceeds from the book go to charity. The publisher confirmed this was in the form of two donations of $1.5m (£1.3m) and £300,000 respectively to the charities Sentebale and WellChild.
Sentebale, co-founded by Prince Harry in 2006, helps children and adolescents in Lesotho and Botswana struggling to come to terms with their HIV status. WellChild is a British charity that gives grants so young people with exceptional health needs can be cared for at home instead of in hospital.
Spare, the title of Prince Harry's memoir, is presumably a nod to the phrase that monarchies need an "heir and a spare".
Prince William is the heir and Prince Harry will tell his version of his life in that ambiguous territory of the "spare", the younger royal sibling unlikely to ever be on the throne and therefore looking for their own sense of purpose.
This book, a guaranteed best-seller before a page has been printed, promises "raw, unflinching honesty", and the cover shows a steely-looking Prince Harry.
But it will also have to be a delicate balancing act. Much has changed since this book was first announced. Queen Elizabeth II has died, his father is King, Camilla is Queen Consort. The book itself is now later than expected.
There will be more of an appetite for tell-all tales, rather than therapy speak about self-discovery. But how many bridges will be burned by saying too much? How many of the incendiary grievances raised by Prince Harry and Meghan in the Oprah TV interview will get another rerun?
Who will he spare in the process?
When the deal for Prince Harry to write his story was announced in 2021, the prince promised he would reflect "the highs and lows" and be "accurate and wholly truthful".
In its press release for the 38-year-old's memoirs, Random House said: "Spare takes readers immediately back to one of the most searing images of the twentieth century: two young boys, two princes, walking behind their mother's coffin as the world watched in sorrow and horror."
That theme is picked up in the publicity statement for the book, which says: "With its raw, unflinching honesty, Spare is a landmark publication full of insight, revelation, self-examination, and hard-won wisdom about the eternal power of love over grief."
The book will be published on the same date worldwide and it will be available in 16 languages.
The audio edition of the book is read by Prince Harry.
The Duke and Duchess of Sussex announced that they would step back from royal duties and work to become financially independent in 2020. At the time, Buckingham Palace and senior royals expressed their disappointment and hurt at the announcement.
Harry and Meghan now live in the US with their two children, son Archie and daughter Lilibet.
The publisher's description of the book's author, which is likely to appear in the book, reads: "Prince Harry, the Duke of Sussex, is a husband, father, humanitarian, military veteran, mental wellness advocate, and environmentalist. He resides in Santa Barbara, California, with his family and three dogs."
Harry promises to share 'highs and lows' in memoir
Four unanswered questions about the Biden files
House Republicans launch inquiry into Biden files
Thunberg joins 'Pinky' and 'Brain' tunnel protest
A life shadowed by family deaths and famous marriages
California’s devastating storm in maps and charts
China eyes life beyond Covid despite high infections
Does easing US inflation point the way for the world?
Weekly quiz: What is Johnny Rotten pondering next?
Did Bollywood’s longest kiss really happen in 1933?
India targets China's dominance in mobile phones
Africa's top shots: Angry rams, priest and prayers
How dangerous is blue-green algae?
Britain's lost and legendary 'Area 51'
The axed workers posting epic goodbyes
The skiers dedicated to alpine warfare
© 2023 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.