List of works based on dreams

Dreams have been credited as the inspiration for several creative works and scientific discoveries.

Kubla Khan
Samuel Taylor Coleridge wrote Kubla Khan (completed in 1797 and published in 1816) upon awakening from an opium-influenced dream. In a preface to the work, he described having the poem come to him, fully formed, in his dream. When he woke, he immediately set to writing it down, but was interrupted by a visitor and could not remember the final lines. For this reason, he kept it unpublished for many years.

Frankenstein
Mary Shelley's Frankenstein (1818) was inspired by a dream: "When I placed my head upon my pillow, I did not sleep, nor could I be said to think. My imagination, unbidden, possessed and guided me, gifting the successive images that arose in my mind with a vividness far beyond the usual bounds of reverie. I saw the pale student of unhallowed arts kneeling beside the thing he had put together. I saw the hideous phantasm of a man stretched out, and then, on the working of some powerful engine, show signs of life, and stir with an uneasy, half-vital motion. Frightful must it be; for supremely frightful would be the effect of any human endeavor to mock the stupendous Creator of the world."

Strange Case of Dr Jekyll and Mr Hyde
Robert Louis Stevenson dreamed the plot for his famous novel Strange Case of Dr Jekyll and Mr Hyde (1886).

Tintin in Tibet
The Belgian comics artist Hergé was plagued by nightmares in which he was chased by a white skeleton, whereupon the entire environment turned white. A psychiatrist advised him to stop making comics and take a rest, but Hergé drew an entire story set in a white environment: the snowy mountaintops of Tibet. Tintin in Tibet (1960) not only stopped his nightmares and worked as a therapeutic experience, but the work is also regarded as one of his masterpieces.

Twilight
Inspiration for Stephenie Meyer's Twilight (2005) came by a dream: "It was two people in kind of a little circular meadow with really bright sunlight, and one of them was a beautiful, sparkly boy and one was just a girl who was human and normal, and they were having this conversation. The boy was a vampire, which is so bizarre that I'd be dreaming about vampires, and he was trying to explain to her how much he cared about her and yet at the same time how much he wanted to kill her."

The Miraculous Journey of Edward Tulane
The seeds to the plot of The Miraculous Journey of Edward Tulane (2006) came to Kate DiCamillo in a dream: "One Christmas, I received an elegantly dressed toy rabbit as a gift. A few days later, I dreamed that the rabbit was face down on the ocean floor - lost and waiting to be found."

Devil's Trill Sonata
Giuseppe Tartini recounted that his most famous work, his Violin Sonata in G minor, more commonly known as the Devil's Trill Sonata, came to him in a dream in 1713. According to Tartini's account given to the French astronomer Jérôme Lalande, he dreamed that he had made a pact with the devil, to whom he had handed a violin after a music lesson, in order to assess whether the devil could play. The devil then proceeded to play "with such great art and intelligence, as I had never even conceived in my boldest flights of fantasy".

Tartini said that on waking he "immediately grasped my violin in order to retain, in part at least, the impression of my dream".

"(I Can't Get No) Satisfaction"
Keith Richards claimed to have dreamed the riff to the 1965 song "(I Can't Get No) Satisfaction". He ran through it once before falling asleep. He said when he listened back to it in the morning, there was about two minutes of acoustic guitar before you could hear him drop the pick and "then me snoring for the next forty minutes".

"Yesterday"
Paul McCartney claimed to have dreamed the melody to his song "Yesterday" (1965). After he woke up, he thought it was just a vague memory of some song he heard when he was younger. As it turned out that he had completely thought up this song all by himself, he recorded it and it became the most covered pop song in the world.

"Let It Be"
Paul McCartney has also claimed that the idea of "Let It Be" came to him after a dream he had about his late mother during the tense period surrounding the sessions for The Beatles ("the White Album") in 1968. McCartney later said: "It was great to visit with her again. I felt very blessed to have that dream. So that got me writing 'Let It Be'." In a later interview, McCartney said that in the dream his mother had told him, "It will be all right, just let it be."

"The Prophet's Song"
Brian May said that he was inspired to write the 1975 Queen track "The Prophet's Song" after a hepatitis-induced fever dream he had about an apocalyptic flood. It is the longest Queen song with vocals.

Selected Ambient Works Volume II
Richard James, who performs as Aphex Twin, has written several ambient tracks while lucid dreaming, saying that:

"Melodies were easy to remember. I'd go to sleep in my studio. I'd go to sleep for ten minutes and write three tracks—only small segments, not 100 percent finished tracks. I'd wake up and I'd only been asleep for ten minutes. That's quite mental. I vary the way I do it, dreaming either I’m in my studio, entirely the way it is, or all kinds of variations. The hardest thing is getting the sounds the same. It's never the same. It doesn't really come close to it."

James says that seventy per cent of his 1994 album Selected Ambient Works Volume II was written while lucid dreaming.

The Dark Carnival
Violent J, a member of Insane Clown Posse, claimed to have dreamed the concept of The Dark Carnival, which is described in much of their discography. The concept was inspired by a dream of Insane Clown Posse member Violent J where spirits in a traveling carnival appeared to him.

"It Could Be Better"
Artist Left at London stated in a 2022 TikTok video that she first heard the hook of her song "It Could Be Better" from her album T.I.A.P.F.Y.H. in a dream where "the cast of High School Musical sang it at [her]".

3 Women
Director Robert Altman conceived of his 1977 film 3 Women during a restless sleep while his wife was in the hospital. He dreamt that he was directing a film starring Shelley Duvall and Sissy Spacek in an identity theft story, against a desert backdrop. He based the film on this dream, although additional story details were added later.

The Terminator
Director James Cameron said the titular character in The Terminator (1984) was inspired by a dream he had under the influence of a soaring fever he suffered while he was "sick and dead broke" in Rome, Italy, during the final cut of Piranha II. He dreamed of "a chrome skeleton emerging from a fire", and made some sketches on hotel stationery upon waking:

"The first sketch I did showed a metal skeleton cut in half at the waist, crawling over a tile floor, using a large kitchen knife to pull itself forward while reaching out with the other hand. In a second drawing, the character is threatening a crawling woman. Minus the kitchen knife, these images became the finale of The Terminator almost exactly."

Over the Garden Wall
Chapter 5 of the miniseries Over the Garden Wall (2014), "Mad Love", was inspired by a dream that show creator Patrick McHale had. In the events of the dream, Pat was house hunting and came across a secret library in one of the houses. As he explored further, he realized that he had entered someone else's home. In the episode, the character Quincy Endicott explores his mansion, and discovers that he has entered the mansion of his neighbor.

Deltarune
In an interview conducted a few months after the release of its first chapter, Toby Fox stated that the idea for Deltarune (2018) came from a dream he experienced while bedridden from a fever seven years prior. According to Fox, the dream depicted the emotionally-moving ending to a game that didn't exist; upon waking up, he was determined to make the game into a reality.

Omori
In a video discussing the creation of the 2020 game Omori, developer Omocat describes the game's liminal space area - White Space - as being inspired by a dream they experienced when in high school of "standing in a white room with nothing in it... Something red and blurry appeared in front of me... a giant floating rectangular button with the word 'Live' written across it, just like a video game interface. And... when I pressed it, I woke up."

Other aspects of the game were influenced by lucid dreams the developer had experienced. They said that "I would try to escape them through death, by for instance, jumping into a lake. It's all pretty creepy stuff that probably influenced the game quite a bit."

Salesforce
The user interface of Salesforce, a widely used enterprise software platform founded in 1999, was inspired by a dream of its co-founder Marc Benioff. Benioff envisioned an application interface resembling that of Amazon, which included labeled tabs. Benioff said that in his dream: "I could see this app that looked like Amazon and it said 'Contacts', 'Accounts', 'Opportunities', 'Forecast Reports', as tabs. No one had ever built enterprise software quite like that before."

Descartes' new science
Descartes claimed that three separate dreams that he had on November 10, 1619, revealed to him the basis of a new philosophy, the scientific method.

The sewing machine
There is a possibly apocryphal account of Elias Howe inventing the needle of the modern lockstitch sewing machine in a dream. A traditional needle has its eye at its base, but Howe was supposedly inspired by a dream to instead position the eye at the point, as recorded in the history of his mother's family:

"[Howe] dreamed he was building a sewing machine for a savage king in a strange country. Just as in his actual working experience, he was perplexed about the needle's eye. He thought the king gave him twenty-four hours in which to complete the machine and make it sew. If not finished in that time death was to be the punishment. Howe worked and worked, and puzzled, and finally gave it up. Then he thought he was taken out to be executed. He noticed that the warriors carried spears that were pierced near the head. Instantly came the solution of the difficulty, and while the inventor was begging for time, he awoke. It was 4 o'clock in the morning. He jumped out of bed, ran to his workshop, and by 9, a needle with an eye at the point had been crudely modeled. After that it was easy."

Benzene
The scientist Friedrich August Kekulé discovered the seemingly impossible chemical structure of benzene (C6H6) when he had a dream of a group of snakes swallowing their tails.

Niels Bohr's structure of the atom
Niels Bohr won the Nobel Prize for Physics in 1922 for his discovery of the structure of the atom. He recalled that the electrons revolving around the nucleus, like the solar system, came to him in a dream. Upon testing his "dream" hypothesis, he was able to discover that the atomic structure was, in fact, similar to it.

Srinivasa Ramanujan's divine revelations
Indian mathematician Srinivasa Ramanujan, known for his substantial contributions to number theory, analysis and other areas of pure mathematics, claimed that Hindu goddess Namagiri Thayar would bestow him with mathematical insights in his dreams and that in these visions, "scrolls containing the most complicated mathematics used to unfold before his eyes"

Otto Loewi and neurotransmission
Before Otto Loewi's work, there was debate on whether neurotransmission was primarily chemical or electrical. On a night before Easter Sunday, Loewi had dreamed of the perfect experimental setup: two chambers with beating hearts - one with its nerves intact and the other without. These chambers would be filled with solution and connected with a tube. The experimenter would electrically stimulate the first heart, causing it to beat slower. If neurotransmission was primarily electrical, there would be no reason for the second heart to slow down. However, if neurotransmission was chemical, then the chemicals could theoretically float down the tube and slow down the second heart in the other chamber as well.

Loewi wrote this idea down but could not decipher his own writing when he awoke in the morning. The next night, the dream came to him again. Working with Henry Dale, Loewi would go on to use this experimental setup to demonstrate chemical neurotransmission and win the Nobel Prize for it in 1936.

King's Hand
King's Hand is a dessert made of M&M's and cookie dough, molded into the shape of a hollow hand and baked, before being filled with Greek salad. It was invented by a 28-year-old data analyst, who says the idea for the dish came to her in a dream in which it was the main course of a festival feast. After a week of experimentation, she posted a series of photos on Twitter on December 6, 2020. Later that day, she shared her recipe. As of December 15, 2020, the tweet had garnered over 166,000 likes and was featured in a diverse array of media and print publications, including Fox News, TODAY, and BuzzFeed News. The original post inspired people to make their own versions, as well as descriptions of foods that had appeared in others' dreams.

Volapük
The Volapük language was created by Johann Martin Schleyer (1831–1912), after dreaming that God had told him to create an international language.