He debuted in an episode of 7th Heaven and was cast as a main character for the ninth and final season of Scrubs. While many of his roles are in comedy films (like Greg in Superbad, Eric in 21 Jump Street, and Pete in Neighbors), he has also been seen in other genres, like the thriller Now You See Me and the historical drama If Beale Street Could Talk.
His older brothers, James and Tom, are also actors. He co-starred with the former in the 2017 film The Disaster Artist, playing Greg Sestero to his brother's Tommy Wiseau. He married Alison Brie in 2017.
His directorial debut is The Rental (2020).
- Superbad (2007): Greg
- After Sex (2007): Sam
- The Shortcut (2009): Mark
- Scrubs (2009-2010): Cole Aaronson
- Charlie St Cloud (2010): Sully
- Young Justice (2011) : Riddler
- Fright Night (2011): Mark
- 21 Jump Street (2012): Eric Molsonnote
- Now You See Me (2013) and Now You See Me 2 (2016): Jack Wilder
- Neighbors and Neighbors 2: Sorority Rising (2016): Pete Ragazolli
- Nerve (2016): Ian
- The Disaster Artist (2017): Greg Sestero
- The Lego Ninjago Movie (2017): Lloyd Garmadon
- Six Balloons (2018): Seth
- If Beale Street Could Talk (2018): Levy
- 6 Underground (2019)