The video references the films Half Baked, Crossroads, Terminator 2: Judgment Day and Michael Jackson's Thriller.

The song was written and produced by Max Martin and Shellback, with additional writing by Savan Kotecha.

"I Wanna Go" is a dance-pop and Hi-NRG song that features a heavy bass-line and drum fills reminiscent of English rock band New Order.

An accompanying music video for the song, directed by Chris Marrs Piliero, premiered on June 22, 2011.

Following its release as a single, the song reached the top ten in several music markets, including Canada, France, Finland and the United States.

The song was treated with different remixes, including a Bollywood mix with guest vocals by Sonu Nigam and another one by DJ Frank E and Alex Dreamz.

Spears has performed "I Wanna Go" on her Femme Fatale Tour (2011) and during her Las Vegas residency show Britney: Piece of Me (2013).

According to the sheet music published by EMI Music Publishing, "I Wanna Go" is written in the key of D minor, with an electropop beat infused metronome of 138 beats per minute.

In September 2011, "I Wanna Go" topped Rolling Stone's reader's poll of The Best Songs of the Summer.

On the chart issue of April 3, 2011, "I Wanna Go" debuted at number 73 on the US Billboard Hot 100 chart.