The character of Cecil Gaines was based on Eugene Allen, who served as White House butler for over 30 years and 8 presidents: Harry S. Truman, Dwight D. Eisenhower, John F. Kennedy, Lyndon B. Johnson, Richard Nixon, Gerald Ford, Jimmy Carter, and Ronald Reagan. Much of the detail is fictionalized for this movie.
Lee Daniels admitted that he tried to convince as many stars as he could to appear in the film, even for bit parts, to improve marketability.
On Gloria's vanity mirror in the bedroom are two pictures of children. One of them is a photo of Oprah Winfrey as a child.
In the original script, Cecil Gaines meets President Barack Obama. Lee Daniels considered asking the president to play himself. Since the film was shot during the height of the 2012 presidential election, Daniels decided to cast actor Orlando Eric Street in the role instead. The scene was shot but ultimately discarded, and archival footage of the real President Obama was used.
Reunites Robin Williams and Forest Whitaker after 26 years. Their first appearance together was in Good Morning, Vietnam (1987).