In this article4 sections
The title page printed in Nuremberg in 1741 names no count, no commission and no insomnia. Bach probably did not write the Goldberg Variations for sleeplessness: the only source for that story appeared in 1802, and even it describes music meant to amuse a sleepless man, not to sedate him.
Still, concert programmes and playlists called “Bach for Sleep” repeat it as a prescription. A wealthy insomniac needed something to get him through the night, and Johann Sebastian Bach wrote thirty variations on a slow aria so that a young harpsichordist could play the count to sleep from the next room.
The music was printed in 1741. The story was first written down in 1802.
Who tells the story, and when?
Johann Nikolaus Forkel published the first biography of Bach in 1802, 52 years after the composer’s death and 61 years after the keyboard print appeared in Nuremberg. Forkel says the Russian envoy to Dresden, Count Hermann Karl von Keyserlingk, suffered from sleepless nights, and that Johann Gottlieb Goldberg, a young harpsichordist in his household, slept in an adjoining room to play for him. The count, Forkel writes, asked Bach for pieces of a gentle, rather lively character, and rewarded the result with a golden goblet filled with a hundred louis d’or.
Forkel was in touch with Bach’s older sons, so the tale has a plausible route down from the family. A plausible route is still a route with a gap in it. Nothing from 1741 mentions a commission, and the printed title page names no dedicatee. Goldberg was born in 1727, which makes him about fourteen at the time. He was a gifted player, and the doubters concede that. A fourteen-year-old nightly performer of the most demanding keyboard work of its era is a lot to ask of a story with no second witness.
Peter Williams, in his 2001 handbook on the work, doubted Forkel’s account strongly. Other scholars have pushed back and consider the doubts overdone. Reading both sides, the story is unproven, not disproven, and a listener is entitled to enjoy it as long as it is called a story.
What does the story say the music was for?
Here is the detail the “Bach for sleep” playlists leave out. Even in Forkel’s telling, the count did not ask for something to knock him out. He asked for something smooth and lively, to cheer him through his wakefulness. The purpose was to give a sleepless man company, with sleep as a hoped-for by-product.
That is a different job. A lullaby tries to lower the person who hears it. These variations, in the story, were meant to occupy a mind that would not stop. The thirty variations, with their repeats, run for roughly 75 minutes with the repeats taken, which is a long time to ask an insomniac to hold still, and the quick variations with crossing hands do not sound like sedation to anyone who has heard Glenn Gould’s 1955 recording.
The sleepless-company version is the more interesting one. A man lies awake at 2 a.m. in a Dresden house. Down the hall, a boy sits at a harpsichord and plays something that asks nothing of the listener except to follow it. The count never has to do anything. The music takes the thinking over for a while.
Does music at bedtime help, apart from the legend?
The legend and the evidence are separate. A 2022 Cochrane review (Jespersen and colleagues) pooled 10 of its 13 studies (708 adults with insomnia symptoms) and found moderate-certainty evidence that listening to music improved self-reported sleep quality, with a mean difference of 2.79 points lower on the Pittsburgh Sleep Quality Index, where lower is better. The studies could not hide from participants who was listening to music, which weakens the certainty, and the review found no clear effect on insomnia severity itself. Nothing in it singles out Bach, and the best-known effect is on how people rate their sleep, not on how long they take to drop off. How music stacks up against the other bedtime sounds people reach for is a question ASMR, white noise or music set side by side, using the same review.
What to do with all this
The Goldberg Variations can be lovely at 2 a.m. whatever the commission was, and a listener is free to use them that way. What the 1802 source cannot do is turn a pleasant habit into a medical fact. For what helps when the mind will not stop, see racing thoughts at bedtime.