North America "When I Was Your Man" was released on
iTunes as a promotional single, leading the song to debut at number 69 on the
Billboard Hot 100 chart. The single entered the top 10 the week of February 13, 2013, charting at number nine, becoming Mars's 10th top 10 single. At that time, "
Locked Out of Heaven" was at number two, and thus Mars became the first male artist to place two titles as a lead act on the
Billboard Hot 100 top 10 simultaneously since "
Grenade" and "
Just the Way You Are" doubled up for eight consecutive weeks. On February 27, 2013, the song jumped from number 8 to number 3 on the Hot 100 with "Airplay Gainer" honors for a seventh week in a row, tying it with Rihanna's "Rude Boy" (2010), T-Pain's "Buy U a Drank (Shawty Snappin')," featuring Yung Joc (2007), and Beyonce's "Baby Boy," featuring Sean Paul (2003), for the longest streak dating to the award's launch. The song reached number one on the U.S.
Billboard Hot 100, in its 16th week after being discounted to 69 cents on the iTunes music store, making it Mars's slowest-peaking single. With "When I Was Your Man" topping the
Billboard Hot 100, Mars reached the same mark as Diddy, Ludacris, Prince and Lionel Richie. Elvis Presley was the only male who reached five leaders more quickly. On the
Radio Songs chart, "When I Was Your Man" peaked at number one, becoming Mars's fifth number-one on the chart. Among men, Mars tied 50 Cent and trailed Usher, Ludacris and Kanye West, the latter two with six number-ones and the former with seven, since the chart's 1990 start. At that time, Mariah Carey led the list with 11 songs peaking at number one on the chart. On the
Mainstream Top 40 chart, "When I Was Your Man" peaked at number 1, giving Mars the highest total among solo males of number one songs (six) on the chart (only Katy Perry and Rihanna lead all acts with eleven number one's each). After a year, Justin Timberlake's "Not a Bad Thing" passed Mars for most number one songs on the Mainstream Top 40. It became the ninth best-selling song of 2013 in the US with 3,928,000 downloads. As of January 2014, it has sold over 4,123,000 copies in the US.
International "When I Was Your Man" peaked at number 2 in the United Kingdom and it was certified four times platinum by the
British Phonographic Industry (BPI). ==Music video==