The actor, who plays Marshall Eriksen in the show, will bow out as his Hollywood career has taken off in recent years with diverse roles in "Forgetting Sarah Marshall", "Knocked Up", "The Muppets", reported Daily Express online.
"It's great to do some 'Rated R' stuff again, because I've been playing the nice guy for quite a long time now. That's why I'm gonna quit 'How I met your Mother' after the eighth season," Segel said.
The actor, who is dating actress Michelle Williams, said that he feels like the show is coming to a natural end.
"I've hit my thirties, the TV show that I've been doing for eight years is coming to its natural end, I'm feeling much more like, 'OK, now it's time for phase three.' It's time I think," he added.
Segel's departure could leave the show's future hanging in the balance as he plays one of the show's central characters, alongside Neil Patrick Harris, Alyson Hannigan, Josh Radnor and Cobie Smulders.
The eighth season of 'How I Met Your Mother' is set to air in September in the US.