"Bad Habits" is a song by English singer-songwriter Ed Sheeran. It was released on 25 June 2021, through Asylum and Atlantic Records, as the lead single from his fourth studio album, = ("Equals"). The song marked his first solo release from an album in over four years. A limited edition CD and cassette single were also released. The song received mixed reviews from music critics, who compared its sound and style to the works of the Weeknd, as well as Bronski Beat.
 "Bad Habits" was a commercial success, peaking at number one in 28 countries including Australia, Belgium, Canada,  Germany, Hungary, New Zealand, Switzerland and South Africa, becoming the official first number-one hit on the newly launched South African music charts. The song proved to be particularly successful in both the United Kingdom and Ireland, as it spent eleven consecutive weeks at the top of both the UK Singles Chart and Irish Singles Chart and also became the best-selling single of the year in both countries. In the United States, the song peaked at number two on the Billboard Hot 100. The song also topped the Global 200.
 A UK drill remix made by Fumez the Engineer featuring British rappers Tion Wayne and Central Cee was released on 12 August 2021. Following his performance with Bring Me the Horizon at the 2022 BRIT Awards, the pair announced they were releasing a heavy metal studio version of the track on 17 February 2022. This version of the song was later featured on the Tour deluxe edition of =.
 A slower acoustic song was planned to be released as the lead single from Sheeran's upcoming fifth studio album =. However, when the easing of COVID-19 pandemic restrictions were announced in England in early 2021, Sheeran chose to record "Bad Habits" and release it instead; "I don't know if the world needs a depressing sad, slow acoustic song when [the country is] opening up ", Sheeran said. He wrote the song in January 2021 to "surprise people" and "make something that was totally different" to what is expected of him.
 Sheeran later explained in a Rolling Stone cover story that the song is about "addiction issues".  He pointed out: "If you sing that on a piano really slowly, it’s like a confessional song about addiction". Sheeran declined to elaborate upon his own bad habits, except for hard liquor.  He finally realized it was time to get his drinking issues under control when his wife Cherry was pregnant with their first daughter, and she expressed her concern that he might be too intoxicated to safely drive her to the hospital when it was time to give birth.
 On 23 April 2021, Sheeran was spotted in costume as what appeared to be a zombie or vampire on a music video set in London, leading to widespread speculation about an upcoming music release. Sheeran himself confirmed the pictures to be genuine by posting outtakes of the video shoot on his social media pages in June 2021. On 25 May, he uploaded a picture of himself sitting next to a giant Snorlax pillow, with a caption on the picture above him saying "6/25", hinting at a release on that date. On 4 June, he began teasing the single release on his social media accounts, as well as announcing a performance at TikTok's UEFA Euro 2020 show with David Beckham on 25 June. Sheeran announced the single on 11 June. A promotional image of the single cover appeared on the Tate Modern in London.
 "Bad Habits" is a dance-pop and synth-pop track.
 "Bad Habits" was met with mixed reviews from critics. Alexis Petridis of The Guardian gave the song four out of five stars, describing it as "a certain smash that's ready for the Weeknd". Nick Levine of NME gave the track three out of five stars, calling it "neither a misfire nor a surefire winner," and compared the sound style to Bronski Beat works, especially "Smalltown Boy". The Independent's Adam White was less impressed, giving "the stilted comeback" two out of five stars and saying Sheeran was "letting the toplines do the work and rummaging through Abel Tesfaye's leftovers." Quinn Moreland of Pitchfork derided the song as "painfully predictable", writing that it "aspires for Abel but settles for anonymity".
 In the United States, "Bad Habits" debuted at number five on the Billboard Hot 100, with 38.8 million airplay audience impressions, 17.7 million streams and 33,200 copies sold. It opened at number two on Digital Song Sales and number six on Streaming Songs, and surged 36–11 on Radio Songs. The song became Sheeran's eighth top 10 in the US and first since 2019. On the chart dated 28 August 2021, the song reached a new peak at number two behind "Stay" by the Kid Laroi and Justin Bieber. The song ranked at number one on the Top Triller US Chart dated to 10 July 2021. The chart highlights the biggest songs on Triller based on a formula blending the amount of views of videos containing a respective songs, the level of engagement with those videos and the raw total of videos uploaded featuring each song.
 The music video for "Bad Habits" was directed by Dave Meyers and filmed at the Catford Centre in Catford, South East London. It was uploaded on 25 June 2021. The music video portrays Sheeran as a vampire in a hot pink suit. The video starts in a beauty salon with Sheeran as a vampire, withering a flower before flying across chaos-ridden streets. He joins with several other monsters in doing various activities amidst the panicking crowd, including attacking them for the fun of it and handing out a balloon to a monster child, until the sun begins to rise. Most of the monsters go into hiding, with a few vaporized by the sunlight, except for Sheeran, who transforms back into his normal human self, playing the guitar as the video ends. The black cat in the video is a reference to the Catford Cat at the entrance to the shopping Centre. The video concept received comparisons to Michael Jackson's Thriller.
 Sheeran said he wanted the video to "play on the nature of habits in a fantastical way so I decided on vampires." It was inspired by the song's lyrics and American television series Buffy the Vampire Slayer. Madison Bloom of Pitchfork described Sheeran as "the worst monster in the history of pop music", pointing out that the video "constantly suggests the potential for violence and gore but never commits."
 Sheeran gave his first live performance of "Bad Habits" on 28 June 2021, on The Late Late Show with James Corden. On 30 June, Sheeran performed the song on The One Show. Sheeran performed the song on GMA Network's All-Out Sundays on 15 August.
  
 Credits adapted from Tidal.
  
 ‡ Sales+streaming figures based on certification alone.† Streaming-only figures based on certification alone.
 On 14 February 2022, following the performance, a studio version of the track was announced, set for release on 17 February. The remix was included on the tour version of =.
 At the 2022 Brit Awards, Sheeran performed "Bad Habits" with Bring Me the Horizon. They'd perform the song together again at Reading Festival later that same year.
 After its first full tracking week, on Billboard charts dated to 5 March 2022, the remix debuted on three charts, on Hot Alternative Songs at number 17, Hot Rock & Alternative Songs at number 19,  becoming Ed Sheeran's first charting song on the chart since Blow, and Hot Hard Rock Songs at number 2, behind "The Rumbling" by SiM, marking Sheeran's first appearance on the chart and Bring Me the Horizon's twelfth.
 The Editor in Chief of MetalSucks, Emperor Rhombus, called the performance at the BRIT Awards an attempt to combine metal with pop, but said that it came off sounding like an Imagine Dragons song.