Television
Baranski appeared in short-term roles on various daytime soap operas, including All My Children and Another World. Baranski was featured as Cybill Shepherd's sarcastic, hard-drinking friend Maryann Thorpe in the CBS sitcom Cybill, which ran from 1995 until 1998, during which time she hosted Saturday Night Live and won the Emmy Award for Outstanding Supporting Actress in a Comedy Series along with three other nominations (1996, 1997, 1998). During this, Baranski portrayed a librarian named Sonja Umdahl in the "Dick and the Single Girl" episode of 3rd Rock from the Sun. A few years later, Baranski received an Emmy nomination for a guest starring role in the hit NBC series Frasier as controversial tough love radio psychiatrist Dr. Nora Fairchild. The episode, which was named for the character, parodied Dr. Laura Schlessinger. The episode was pulled from syndication by Paramount. Baranski had an uncredited role in the series Now and Again as the voice of Roger's overbearing wife Ruth, who was never seen by viewers.
Baranski later appeared in the 2000–2001 sitcom Welcome to New York and, with John Laroquette, in the 2003–2004 NBC sitcom Happy Family. She co-starred with Bernadette Peters in a pilot for an ABC sitcom, Adopted, in 2005, which was not picked up. She also played Faith Clancy, the mother of Jim Clancy in Ghost Whisperer. In 2009, Baranski began guest-starring in The Big Bang Theory as Dr. Beverly Hofstadter, a dispassionate psychiatrist and neuroscientist and mother of one of the protagonists, Leonard Hofstadter. She first appeared in the second-season episode "The Maternal Capacitance", for which she received an Emmy nomination. Due to the popularity of her first appearance, Baranski returned in the third season for the Christmas episode "The Maternal Congruence", receiving another Emmy nomination. She appeared in a total of 16 episodes during the show's run, earning four Emmy nominations for her recurring role.
From 2009 to 2016, Baranski played the role of Diane Lockhart, a top litigator and senior partner of a Chicago law firm on the CBS series The Good Wife. She was nominated for the Primetime Emmy Award for Outstanding Supporting Actress in a Drama Series for six seasons of the series, in the years 2010 to 2015. Besides her work on The Good Wife and the aforementioned guest appearances on The Big Bang Theory, her other appearances in that period include Ugly Betty in 2009 as Victoria Hartley, the haughty mother of Betty's new boyfriend.
From 2017 to 2022, Baranski reprised her role on The Good Wife in a spin-off titled The Good Fight. The show features Diane Lockhart joining another law firm after being forced to return to work. In the 79th Golden Globe Awards, she was nominated for the Golden Globe Award for Best Actress – Television Series Drama for her work in the fifth season of the show. Since 2022 she has portrayed Agnes van Rhijn in the Julian Fellowes-created HBO period drama The Gilded Age starring opposite Carrie Coon, Louisa Jacobson, and Cynthia Nixon. The cast received a nomination for the Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series.