Films:
* 3 Idiots (2009): This was his breakout role as Chatur Ramalingam, the antagonist. The film became a massive hit in India and internationally.
* My Name Is Khan (2010): He played the role of Sameer, a friend of the protagonist, Rizwan Khan.
* The Internship (2013): He appeared as the character "Raj".
* The Man Who Knew Infinity (2015): He played the role of P.C. Mahalanobis.
* The Big Sick (2017): He played the role of "Kumar".
* The Hate U Give (2018): He played the role of "Mr. Lewis".
* The Wedding Guest (2018): He appeared in a supporting role.
* The Laundromat (2019): He played the role of "Dharmendra".
* The Tomorrow War (2021): He played the role of "Captain Guran".
Television:
* The Office (2011): He appeared in an episode as a guest star.
* The Mindy Project (2012): He appeared in an episode as a guest star.
* Outsourced (2010-2011): He played the role of "Gupta", a recurring character.
* Veep (2016): He appeared in an episode as a guest star.
* The Good Place (2019): He played the role of "Kamal".
* Never Have I Ever (2020-present): He plays the role of "Dr. K.", a recurring character.
He has also appeared in various short films and web series.