The main cast of the TV series How I Met Your Mother includes:
- Josh Radnor as Ted Mosby, the show's narrator and central character searching for love
- Jason Segel as Marshall Eriksen, Ted's best friend and a lawyer turned judge
- Cobie Smulders as Robin Scherbatsky, a news anchor and Ted's on-again, off-again love interest
- Neil Patrick Harris as Barney Stinson, known for his charismatic and humorous personality
- Alyson Hannigan as Lily Aldrin, Marshall's wife and Ted's college friend, initially a kindergarten teacher then an art consultant
- Cristin Milioti as Tracy McConnell, the titular "Mother," who appears in the later seasons and is Ted's eventual wife
- Lyndsy Fonseca and David Henrie as Ted's children, who listen to his story throughout the series
- Supporting cast includes Marshall Manesh as Ranjit, Joe Nieves as Carl, Charlene Amoia as Wendy, and Ashley Williams as Victoria, among others
This ensemble cast contributed to the show's unique storytelling and chemistry that made it popular