"My Happy Ending" is a song by Canadian singer-songwriter Avril Lavigne, written by herself and Butch Walker for her second studio album, Under My Skin (2004). Structurally, the song is written in 4/4 style and has a repeated hook in both the chorus and in the intro and outro.