Billie Eilish wrote "Wish You Were Gay" when she was 14 years old, about a boy in whom she took a romantic interest. She introduced the song and previewed a
demo of it to her fans through her
Instagram account in July 2018. Eilish explained that the boy did not reciprocate her feelings; she felt distraught that he did not love her back. Seeking a rationale for his disinterest in her, she hoped that he was
attracted only to men: "[The song] literally means I wish he was gay so that he didn't like me for an actual reason, instead of the fact that he didn't like me." Some time after songwriting, the boy approached Eilish and
came out to her as gay. About the situation, she commented that she "wrote the song and made him fuck a dude. I'm fucking proud bro except not really though because I was really into him, like so into him, he's so hot oh my god." She stated that the lyrics were not meant to be offensive to the
queer community. "Wish You Were Gay" was released as the fourth single from Eilish's debut studio album,
When We All Fall Asleep, Where Do We Go? (2019), on March 4, 2019. Eilish announced in a press release that for the next 48 hours, a portion of proceeds from her online merchandise store would go to
the Trevor Project, a crisis and suicide prevention program for queer children. A supplementary
YouTube video accompanied the release, in which Eilish and the song's producer, her brother
Finneas O'Connell, broke down the inspiration behind "Wish You Were Gay". She explained: "This was a situation where I was fucking all for this kid, like oh my god. It was the kind of love where everything was thrown out there and nothing was latched onto." The next year, on March 25, Eilish posted to Instagram about the songs that inspired each track from the album. For "Wish You Were Gay", she said that she was inspired by "
Body Count" by
Jessie Reyez, "Eres Tú" by
Carla Morrison, and "
Boy" by
Anne-Marie. ==Music and lyrics==