According to A&R
Chris Anokute, "Waking Up in Vegas" played a significant role in initiating Perry's pivotal move to
Capitol Records. Having been recorded while still under contract with
Columbia Records for an album that was then shelved, Anokute later heard the track on a three-song demo and tried to convince his employers at Capitol to sign Perry, claiming it was a number-one single and its singer a star talent. In an interview with
HitQuarters, one of the songwriters of the song,
Andreas Carlsson, claimed that he worked together with Perry and
Desmond Child to write "Waking Up in Vegas". Carlsson remarked that they "really wanted to tell the story that described that moment when everybody's checking out on Vegas after they've had their fun. And Katy is the perfect artist to tell such a story – she has humour, and she knows how to deliver it." Carlsson also said that two of the first aspects of the song to be composed were the main guitar riff – which he already had pre-prepared – and the phrase "put your money where your mouth is," which they were very keen to use and which for a time was almost used as the song's title. In an interview for
Pop Eater, Perry revealed the inspiration behind the track: What inspired it [was] this boy I was dating at the time. I was 21. We went to Vegas on a whim and we decided to get fake married. We took all the pictures with the minister, with the fake cake, in the fake chapel and got a fake marriage certificate. We went and bought a wedding dress and a suit at a thrift store, and scanned the pictures and the certificate to my family members, my manager at the time [and] totally freaked the shit out of them. It was the most hilarious, stupid prank I've ever pulled. I still have the wedding dress and the certificate. "Waking Up in Vegas" was eventually picked as the album's fourth and final single, being sent to US radio stations on April 21, 2009. On the single's artwork, Perry is seen with two
dice behind her, giving more emphasis to the song's lyrical content of being in
Vegas. A digital
extended play containing the radio edit,
Calvin Harris remix,
Jason Nevins remixes and
Manhattan Clique remixes was released on June 5, 2009. Later in June, the
CD single featuring the radio edit version of the song and the Calvin Harris remix edit was released in United Kingdom and Germany. ==Composition and lyrics==