In January 2012, Fox 2000, a division of 20th Century Fox, optioned the rights to adapt the novel into a feature film. Scott Neustadter and Michael H. Weber wrote the adapted screenplay. Josh Boone signed on to direct a year later, in February 2013. Wyck Godfrey and Marty Bowen produced the film. Shailene Woodley stars as Hazel, while Ansel Elgort plays Augustus. Nat Wolff was cast as Isaac, the friend that introduces them, and Laura Dern stars as Hazel's mother. Sam Trammell was cast as Mr. Lancaster, Hazel's father. On August 29, 2013, John Green announced that Mike Birbiglia would be playing Patrick, and on September 6, 2013, Green announced that Willem Dafoe would portray Peter Van Houten.
Principal photography began on August 26, 2013 in Pittsburgh, which doubled for the novel's setting of Indianapolis, Indiana, with a few days in Amsterdam, Netherlands before concluding October 16, 2013. The film was released on June 6, 2014 in the United States. It was positively received by critics, with praise going to Woodley's performance as well as the entire film. The film also proved to be commercially successful, retaining the No. 1 spot at the box-office during its opening weekend, and grossed over $266 million worldwide against its budget of $12 million. It was released on Blu-Ray and DVD on September 16, 2014.