CBS has confirmed recent speculation that the Neil Patrick Harris series will be back in the autumn to bid farewell to its all-star cast, although the exact episode order has not yet been announced.
How I Met Your Mother's series finale is also expected to reveal the mother of Ted's (Josh Radnor) child, which has been a long-running mystery throughout the show.
CBS entertainment president Nina Tassler said of the renewal: "Through eight years, How I Met Your Mother has mastered the art of leading-edge comedy, emotional water-cooler moments and pop culture catchphrases.
"We are excited... to tell the final chapter and reveal television's most mysterious mother to some of TV's most passionate fans."
How I Met Your Mother was apparently saved from ending this season by Jason Segel's willingness to return for additional episodes.