"In My Head" is a
trap,
R&B, and
pop song, with a length of three minutes and forty-two seconds. The track is written in the key of
G major and set in
common time signature, with an
electro ballad tempo of 68
beats per minute. Grande's vocals span from the low note of G3 to the high note of G5. The song begins with the recorded voicemail by Middlebrook, During the chorus, Grande sings the lyrics, "But it was all in my head" in a high vocal register. The track ends with a "pulsing"
outro that ends with an echo. Many critics suggested that "In My Head" detailed Grande's relationship with her former fiancé, comedian
Pete Davidson, while others opined it talked about her break-up with rapper
Mac Miller. Stephanie Eckardt of
W said that the verse, "My imagination's too creative / They see demon, I see angel, angel, angel", may refer to Miller, whom Grande described as an "angel" in "
Thank U, Next" (2018); however, she also said that the line "Look at you, boy, I invented you / Your
Gucci tennis shoes runnin' from your issues" talked about Davidson's increased popularity after dating the singer. Writing for
Genius, Chris Mench commented on this ambiguity, saying the tone of the song was "too harsh" to be about Miller, who died in September 2018, and concluded the lyrics were more likely to be directed towards Davidson. Elizabeth Ogbonna of
The Lantern said that the song "detail[s] how [Grande] deluded herself into only seeing the good and fun things in her ex-fiancé Pete Davidson, while simultaneously ignoring his scrutiny from the media and her fans." In a July 2019 interview with
Vogue, who would sponsor the music video for "In My Head", Grande stated she "loved" but "didn't know" Davidson; some journalists felt her comments paralleled the song's lyrics. == Critical reception ==