Writing the perfect song doesn't come easy, and for some songwriters, it can take days, months, even years to craft a hit!
However, on occasion, artists have been known to pen hits in a matter of minutes.
Here are 23 tracks that were finished up in less time than it takes to get your food delivered.
1. “Sweet Child O’ Mine” by Guns N’ Roses was written in five minutes.

View this video on YouTube
2. Eminem wrote "Rap God" in six minutes, one second.

View this video on YouTube
3. Meghan Trainor's track "Lips Are Movin" was written in eight minutes.

4. Adele wrote her debut hit, "Hometown Glory," in under 10 minutes.

View this video on YouTube
5. Lady Gaga wrote her breakout single "Just Dance" in 10 minutes.

View this video on YouTube
6. Ed Sheeran said his single "Photograph" "fell out" in 10 minutes.

View this video on YouTube
7. Charlie Puth wrote the famous movie hit "See You Again" in 10 minutes.

View this video on YouTube
8. Freddie Mercury wrote "Crazy Little Thing Called Love" in 10 minutes.

View this video on YouTube
9. Lizzo's "Cuz I Love You" was written in 10 minutes.

View this video on YouTube
10. Jennifer Lopez's "I'm Real (Remix) ft. Ja Rule" was written in 10-15 minutes.

11. Kanye West wrote "All Falls Down" in 15 minutes.

View this video on YouTube
12. Ray Charles wrote "What'd I Say" in under 15 minutes while improvising at a live show.

View this video on YouTube
13. Nicki Minaj wrote her "FEFE" verse in 15 minutes.

View this video on YouTube
14. Little Mix wrote their song "Grown" in 15 minutes.

View this video on YouTube
15. Sia wrote "Chandelier" in 15 minutes.

View this video on YouTube
16. Gwen Stefani wrote "Make Me Like You" for her now husband in less than 15 minutes.

View this video on YouTube
17. Mariah Carey's "All I Want for Christmas" was written in 15 minutes.

View this video on YouTube
18. Beyoncé's "Single Ladies (Put a Ring on It)" was written in 20 minutes.

View this video on YouTube
19. Taylor Swift's "We Are Never Ever Getting Back Together" was written in 25 mins.

View this video on YouTube
20. Lorde's breakthrough hit "Royals" was written in 30 minutes.

View this video on YouTube
21. Charli XCX and Iggy Azalea wrote "Fancy" in 30 mins.

View this video on YouTube
22. Spice Girls wrote "Wannabe" in 30 minutes.

View this video on YouTube
23. Jess Glynne wrote "Home" in 30 minutes.

View this video on YouTube
Did any of these surprise you? What's your favourite song off this list? Let us know in the comments!
Additional thumbnail credits: JMEnternational, Koichi Kamoshida, Rex, via Getty Images.