Jones and Burton were about halfway through recording Little Broken Hearts
when they recorded this song. Whilst musically it's one of the few upbeat tunes on the set, lyrically it finds Jones singing of emancipating herself from a relationship and finding that she's better off alone. She told the story of the song to Spinner
: "When we started doing 'Happy Pills,' he leaned over to me - I think I was getting grumpy waiting for lunch; we were always starving when we got there -- we were just kind of waiting around to eat, and he looked over at me and starting going, 'Nah nah nah nah' just to kind of mess with me, I think. I said, 'Well that sounds nice,' and we started working on it. It was just really happy sounding, which was a little different from the rest of the album - not that the album is depressing, but the songs are a little darker on the rest of the album. It was very happy and it wouldn't get out of our heads, so we decided to sort of make the lyrics a little more on the dark side, maybe even mean or kind of silly, but in a mean way. It kind of was a nice juxtaposition between the happy music and the darker lyrics."