At age four, Hannigan began appearing in commercials. She moved to Hollywood at age 11. Living with her mother and attending North Hollywood High School, she successfully auditioned for agents while visiting her father in Santa Barbara. After high school, she attended California State University, Northridge, where she was a member of the Alpha Chi Omega sorority and earned a degree in psychology. Hannigan's first major film role was in My Stepmother Is an Alien, a science-fiction comedy released in 1988; one of her co-stars in the film was actor Seth Green, who later joined her in the regular cast of Buffy as her on-screen boyfriend. In 1989, her first regular role on a TV series came when she was cast in the short-lived ABC sitcom Free Spirit. As a teenager, Hannigan babysat for the children of her future How I Met Your Mother costar, Bob Saget.
''Buffy'' years
In 1997, Hannigan was cast to play Willow Rosenberg, Buffy Summers' best friend, on the television series Buffy the Vampire Slayer. The show became a success, and Hannigan gained recognition, subsequently appearing in several films aimed at teenaged audiences, including American Pie, Boys and Girls, American Pie 2, and American Wedding. She also had a guest spot on the Buffy spin-off, Angel, reprising her role of Willow in a few episodes, but none after Buffy finished production.
Stage, television, and movie work
In early 2004, Hannigan made her West End debut, starring in a stage adaptation of When Harry Met Sally... at the Theatre Royal Haymarket, opposite Luke Perry. In 2005, Hannigan returned to starring in a regular television series, taking the main role of Lily Aldrin in the hit comedy How I Met Your Mother, and also playing a recurring guest role on Veronica Mars as Trina Echolls. In February 2006, she starred as Julia Jones in Date Movie, a parody of romantic comedies. She was also a guest star on the ABC animated sitcom The Goode Family in 2009. Hannigan joined forces with Emily Deschanel, Jaime King, Minka Kelly, and Katharine McPhee in a "video slumber party" featured on FunnyorDie.com to promote regular breast cancer screenings for the organization Stand Up 2 Cancer. In 2012, Hannigan reprised the role of Michelle in American Reunion. Since 2016, Hannigan has hosted the television series . Hannigan plays Ann Possible, Kim's mother, in the Disney Channel original filmKim Possible, based on the animated series.