Breakthrough and acclaim (2006–2012)
The year 2006 marked a turning point in Joshi's career. He first played a rebellious college student in Rang De Basanti. This film was a critical and commercial success, emerging as the seventh highest-grossing film of the year. Sudhish Kamath of The Hindu stated, "Sharman is instantly likeable and emotes like a veteran." In the same year, he played a misled student in Golmaal alongside Rimi Sen. The film emerged a box office success and has since gained a cult status. Sukanya Verma called him the real star of the film for his "uninhibited and winsome" act.
Joshi had three releases in 2007. He first played a call centre employee in Life in a... Metro opposite Kangana Ranaut, which was a surprise box office success. Rajeev Masand noted, "Sharman springs a pleasant surprise as he effortlessly slips into the role of the conflicted lover." Following his role in Raqeeb, he played an ambitious young man in Dhol opposite Tanushree Dutta. The following year saw him play the lead in Hello and Sorry Bhai!, both of which were box office failures.
2009 saw Joshi play his career's most notable character of an engineering student in 3 Idiots, which later gained a cult status. The film emerged as the highest grossing Indian film at that time and created several records worldwide. Shubhra Gupta called his performance "first rate". Rajeev Masand also noted: "Joshi has a meatier role, hence succeeds in fleshing out more competently." The film earned him the IIFA Award for Best Supporting Actor.
In 2010, Joshi played a prospective groom in Toh Baat Pakki! opposite Yuvika Chaudhary, which was a box office failure. His next release, Allah Ke Banday also failed commercially. Joshi then played a middle class Parsi who wants to fulfil his son's cricket dream in the 2012 film Ferrari Ki Sawaari. The film emerged a critical and commercial success. Sonia Chopra of Sify was appreciative of Joshi's "natural likeability and earnestness".