Song Meanings

Cake by the Ocean by DNCE: The Meaning Behind the Song

♪ 5 min read July 18, 2026

A song built entirely on a phrase two Swedish producers got wrong. They meant a cocktail. Joe Jonas heard what they actually said, decided it was better, and had a single finished before the session ended.

Here is where the title came from, what it stands in for, and why the innuendo is less hidden than people assume.

The Short Answer

“Cake by the Ocean” is a mangled version of “Sex on the Beach.” The producers kept using the wrong phrase for the drink, Jonas noticed, and the band wrote a song around the mistake. The cake in the song means what the cocktail’s name means.

The Story Behind the Song

DNCE formed in 2015 around Joe Jonas, drummer Jack Lawless, guitarist JinJoo Lee and bassist Cole Whittle. Lawless had played in the Jonas Brothers’ touring band, and the new group was a deliberate move away from that catalog toward funk and disco.

The band was writing at Max Martin’s studios with the Swedish production duo Mattman and Robin, real names Mattias Larsson and Robin Fredriksson, and with songwriter Justin Tranter. Jonas overheard the producers talking about cake by the ocean and worked out they meant the drink.

Republic Records released the result on September 18, 2015 as DNCE’s debut single, ahead of the EP Swaay in October. Jonas, Tranter, Larsson and Fredriksson share the writing credit. Mattman and Robin produced.

How did the mistake happen?

Accounts of the exact moment differ slightly, which is normal for studio stories retold on chat shows. Jonas has said on The Graham Norton Show that the writers turned up hungover, described what they had been drinking all night as cake by the ocean, and were surprised to be corrected.

He has told NME a version where the producers kept telling the story of having cake by the ocean until he asked whether they meant sex on the beach, and they said yes. Every version agrees on the substance: nobody planned the phrase, and the band recognized it as a title immediately.

How fast was it written?

Jonas has said ten minutes in one interview and twenty in another. Either way the song came out of a week in which the band had been stuck, and the phrase broke the block. He has described the moment as the point where the project made sense to him.

That speed is audible. There is very little in the song beyond a groove, a hook and a title, which is exactly what a band trying to establish an identity needs from a first single.

So what does the song actually mean?

Sex, plainly. The cake language runs through the verses as a substitute, and the original recording is explicit enough that clean versions were required for radio, with the strongest line replaced.

The double meaning is not really hidden, which is part of the appeal. The listener is invited to notice the substitution rather than decode it, and the pleasure is in how pleased with itself the song is about the trick.

What does it sound like?

Late seventies disco funk, filtered through Swedish pop production. The main riff sits in E minor, doubled by guitar and bass over a dance beat, with a second guitar line that borrows heavily from the clipped rhythm style Nile Rodgers made standard.

The falsetto in the chorus is what sells it. Jonas had spent a decade in a different vocal register, and moving up there is what separated the record from anything the Jonas Brothers had released.

How successful was it?

It peaked at number nine on the Billboard Hot 100 after a long, slow climb of more than forty weeks on the chart, and topped Billboard’s Adult Pop Songs airplay list. It reached number one in Japan, number six in Australia and Ireland, and number four in the UK.

The RIAA certified it five times platinum. Swaay reached number 39 on the Billboard 200. Nothing DNCE released afterward came close: the follow-up single “Toothbrush” stopped at number 44.

Why did it take so long to chart?

It went to radio in January 2016, four months after the digital release, and then spent forty-one weeks on the Hot 100 working its way up. Records that climb like that are usually built by radio rather than by a launch week, and this one was.

Television helped. The band appeared in Fox’s live broadcast of Grease in January 2016, playing the house band Johnny Casino and the Gamblers, and performed a fifties arrangement of the song in character. Republic’s president described the whole campaign as a six-month process of introducing the group to the public, which is a fair description of what the chart run looks like.

Did the phrase catch on?

It did, to the point where dictionaries of slang record it with the meaning the song gave it. A mistranslation became a euphemism because a hit single made it useful.

That is an unusual direction of travel. Most pop slang comes from somewhere and gets picked up by songwriters. This one started as an error in a studio and left with a definition.

Why it still gets played

Because it is built for a specific job and does it without complication. It is a summer record about wanting someone, with a title silly enough to defuse the subject matter and a groove strong enough to survive being played at every wedding for a decade.

The song has also outlasted the band. DNCE went on hiatus in 2019 when the Jonas Brothers reunited, and this remains the record everyone kept.

Songs that travel by chorus rather than by title are the ones people lose track of most often; when you can sing it but cannot name it, our song lyrics search is the shortcut.

More song meanings