An Examination of Leitmotifs and Their Use to Shape Narrative in UNDERTALE – Part 1 of 2

This is the 1st half of a 2-part article on leitmotifs in UNDERTALE and how they inform the narrative. The second half is here.

This article and others like it are supported by readers like you through


Thank you!


UNDERTALE is an indie role-playing game that released earlier this year in September, and has quickly become one of my favorite games of all time. The soundtrack is easily one of my favorite works of music, ever. If you haven’t played UNDERTALE yet, I highly urge you to do so. In fact, if you haven’t played or finished all of the game, this article will make very little sense and will contain many spoilers, so there’s not much reason to keep reading. Turn back now.

For those of you who have played the game, there’s not much else to be said. You know what’s up. Let’s take a closer look at one of the best video game soundtracks of all time.

On Reading Music for Non-Musicians:

Throughout this article I use written (scored) examples to illustrate certain patterns and themes that occur in the soundtrack. I realize that many people are not able to read music—but luckily I think musical notation is actually intuitive enough that being able to see the contour of a phrase is enough to get my points across. If you don’t know what I mean, just remember this: when notes move upwards on the staff, they move up in pitch, and when notes move downwards on the staff, they move down in pitch. If you can just keep that simple idea in mind, I think you will be surprised at how easily you can follow along with the music.

(Lastly, all of my notation was done in C Maj/A min for ease of reading…apologies to my perfect-pitch readers.)

On Leitmotifs:

To quote Wikipedia: “A leitmotif is a short, constantly recurring musical phrase associated with a particular person, place, or idea.” Perhaps the best example of this in popular culture is in Star Wars—when the Imperial March plays, you know Darth Vader is going to show up. The Imperial March is a leitmotif that is associated with the character of Darth Vader.

UNDERTALE is full of leitmotifs that fit all 3 definition types. There are leitmotifs that refer to certain characters, certain areas of the game, and larger ideas and themes that run through the game as a whole. My goal with this article is to show the different ways leitmotifs are used in UNDERTALE, how they affect one’s experience with the game, and how a game soundtrack can do much, much more than just provide catchy background music.

Leitmotif to Elicit A Feeling of “Home”: The Undertale Theme


Though most video game soundtracks have a variety of memorable melodies, there’s always only one we can call the “Theme” of the game. Mario, Zelda, Pokemon—despite the huge variety of music associated with these games, we all know what the Main Theme for each of those franchises are. In UNDERTALE, the Main Theme is this:

001. Once Upon a Time

Like many great motifs, its strength lies in its simplicity and mutability, which is what helps give rise all the different variations we hear in the soundtrack. In fact, this simple motif shows up as the main melody in no less than 13 tracks in the game, and makes appearances in many others.

The first example of this is actually the very next track:

002. Start Menu

The Start Menu music is an extremely stripped down treatment of the Undertale Theme with just the melody line and nothing else. (The chiptune instrumentation makes this track reminiscent of the old Gameboy Zelda start menus.)

Though it’s only two tracks, at this point most experienced players will have subconsciously or consciously identified the Main Theme as such. That moment of identification is important because it creates an anchor in the player’s mind—the Undertale Theme is now a familiar tune in a world of potentially new and different and scary possibilities. As a result, when you hear the Main Theme again, all of the ideas and emotions associated with that theme are brought back and re-purposed in the new context.

In UNDERTALE, the Main Theme is used to elicit a sense of home and safety, and to serve as checkpoints for the player at critical points in the game.

012. Home / 013. Home (Music Box)

This is the first time the Main Theme appears once you’ve actually started the game. It makes sense from a narrative point of view—you’ve just been traumatized by Flowey, you’ve wandered through the Ruins, and now, finally, you’ve found a safe place. Again, whether the recognition of the theme is conscious or subconscious, the return of the Undertale Theme here reinforces the feeling of familiarity in contrast with all of the new experiences the player has just had. The gentle guitar treatment of the theme and the soft yellow palette of the area reinforce the feeling of safety.

After Home, the Undertale Theme disappears for quite a while until near the end of the game:

054. Hotel

055. Can You Really Call This A Hotel, I Didn't Receive A Mint On My Pillow Or Anything

Though technically “Hotel” first plays during the Mettaton cooking show, the area where we mainly hear this tune is in the hotel before the Core. Though it’s not quite the comfort of Home, the hotel is nevertheless immediately recognized as a “safe place” that you’ve arrived at after a great deal of wandering through dangerous territory (Hotland in this case). And of course, the obvious choice for instrumentation and style here is Muzak.

There’s a cool bit of mirroring here with where 012. Home and 054. Hotel happen to be in the game: the two places where we hear the Undertale Theme are right AFTER Ruins, the first area, and right BEFORE the Core, the last area. [Think about the enemies in the Ruins (Froggit, Whimsun, Loox) vs the Core (Final Froggit, Whimsalot, Astigmatism).]

Then, of course, there’s the recapitulation of 012. Home with 071. Undertale in New Home. As everything after the Long Elevator I consider “Endgame,” we’ll devote a whole section to that in Part 2.

071. Undertale

Don’t you immediately feel at home?

Leitmotif as Structural Markers, Establishing Continuity, and World Building


In most games, but especially in RPGs, music tracks are often separated into their functions: music for a location, music for a character, music for random encounters. When done well, the music that serves a specific game element (locale, character, etc.) accurately represents the look and feel of that element, and as players we quickly learn to associate a piece of music with its corresponding area. For many games, this means that you get a variety of music in wildly different styles because generally games (or at least RPGs in this style) want to create distinct areas of the game, each with their own flavor. Take, for instance, the difference between two Overworld tracks in Chrono Trigger:

Wind Scene (600 A.D.)

Ruined World (2300 A.D.)

UNDERTALE’s soundtrack is no different in its goals—but what makes UNDERTALE so interesting is that despite the variety of music in the soundtrack, the actual amount of musical material is astonishingly economical.

Sometimes in a game you’ll come to a new area and be jarred by the “newness” of everything—a good example that comes to mind is when you first enter Gerudo Valley in Ocarina of Time. The music for Gerudo Valley is so different stylistically from almost everything else in the game up to that point (suddenly Spanish guitar, after almost exclusively orchestral instrumentation) that you’re immediately alerted to the fact that you’ve just entered a new area.

Playing through UNDERTALE, you get the sense that although you are traveling through different environments, you’re still in the same world you started in. Part of that is no doubt due to the fact that the game is short, but I think that there are just enough subtle hints in the soundtrack to make a listener go “oh, this is different, but also familiar…it makes sense that I’m hearing this.”

In this section, we’ll look at the various areas of the game and their backing tracks, and how they relate and reinforce a sense of structure and continuity.


005. Ruins

This track marks the real beginning of the game. It’s the first piece of real background music rather than music tied to a specific event, and musically, it contains motifs that we will see again and again throughout the game.

Ruins opens with two piano lines in counterpoint—the first line, which we’ll call the Overworld Ostinato, comes in at 0:00. An Ostinato is simply a continually repeated musical phrase, and I’m calling this one the Overworld Ostinato because as you’ll see, it works its way through many of the “background” tracks as the repeating musical pattern over which the main melodies of each area are written. Again, the simplicity of the phrase helps give rise to all the different variations we’ll hear later on.

The second melody comes in soon after the statement of the first motif, at 0:05. We’ll call this the Ruins Melody. It’s an immediately memorable, beautiful melody, and one we’ll hear again in many forms.

Let’s look at the Overworld Ostinato and its development through the game first.

The Overworld Ostinato

Unlike many of the other leitmotifs we’re talking about, the Overworld Ostinato is not what you would call a “melody.” Rather, the Ostinato provides a backdrop on which melodies are painted. For this reason, I think this is an often overlooked motif as far as the soundtrack goes, which makes tracing it through the soundtrack a particularly fun exercise.

Without getting too music theory-y, let’s examine the features of this motif:

Overworld Ostinato

Rhythmically, the motif is split into two 3-note groups. The first 3-note group in red outline the Tonic chord, or “Home Key,” of the motif. It’s the musical equivalent of a “You Are Here” symbol—it lets the listener know what key they’re in, where “do-re-mi” is, where the music can be expected to start, and where it can be expected to end. Let’s call this first 3-note group “Establishing Home.”

The second 3-note group in blue let’s call “The Rising Three.” The most important thing to note about this figure is its rising “1-2-3” shape. It’s a little motif that will alert the listener to the presence of this Ostinato again and again throughout the soundtrack.

Now let’s listen to the beginning of 031. Waterfall up to 0:13:

031. Waterfall

Do you hear it? The motif has been expanded on and fleshed out but the basic structure is actually all there. If we look at the Ostinato for Waterfall it written out it becomes apparent that it’s just a decorated version of the Overworld Ostinato:

Overworld Ostinato (Waterfall)

There are lot more notes than before, yes. But if we actually look at the first set of red notes, it’s really just the “Establishing Home” figure with notes moved up or down an octave. Then, at 0:04, the set of blue notes are “The Rising Three!”. This is especially apparent if you’re just listening—the 3-note rising motif jumps out at you because 1) the motif comes right after a jump in the melody—the sudden pitch change alerts your ear and 2) the 3-note motif is the highest point, pitch-wise, in the Ostinato, which means it will naturally make its way out of the mix.

But maybe this is just wishful pattern cherry picking and coincidence. I would consider that a possibility, until we look at the Ostinato figure for Hotland.

051. Another Medium

If you didn’t hear it the first time, it should be more apparent now—that 3-note motif is frantically waving its flag! Let’s look at the Hotland Ostinato written out:

Overworld Ostinato (Hotland)

Again, we see the “Establishing Home” figure in first half of the phrase, and then in the 2nd half, “The Rising Three.” And again, for the same reasons, we hear that particular 3-note rising figure better than any other part of the Ostinato.

At this point, it only makes sense that it would be in the track for the Core as well.

065. Core

And here is the Ostinato written out—it’s actually almost identical to the Hotland Ostinato:

Overworld Ostinato (Core)

So what’s the goal with all of this? Of course, writing music like this saves the composer some time—rather than having to come up with new ideas for every track, he can use and reuse musical ideas. For the listener, it gives structure and a sense that you are really listening to one large work of music rather than small disparate pieces. This is how composers like Beethoven keep listeners’ attention throughout a 40 minute symphony—by using and reusing musical ideas in different variations, instrumentations, harmonies, etc.

In the context of a game, it gives the player a sense that all these areas are connected, rather than just disparate parts. It’s satisfying, both from a gameplay and music standpoint, that all the “loose ends” are tied up and neatly packaged into a single coherent work—which is what the Ostinato does by tying the 4 areas of the game together.

If the Overworld Ostinato’s purpose is to create a constant, familiar backdrop of music, then the goal of melodies of each region is to illustrate progression. Specifically, the way melodies are used in the 4 areas of the game suggest that the structure of the game is split into two thematic halves.

Let’s go back to the Ruins:


005. Ruins

Melodies, unlike Ostinatos, are naturally full of features that we can intuitively latch on to and recognize in various forms. (If you’ve played the game you can probably already hum the entire Ruins melody from memory.) What that also means is that melodic variations are easy to notice and catch. Let’s see how this original Ruins melody makes its way through the game.

031. Waterfall

The Ruins Melody comes in at 0:27, slowed down compared to the original, but starts out the exact same way. The way the melody modulates halfway through the melody differs from Ruins, but the general contour of the phrase and rhythmic profile remains the same.

033. Quiet Water

033. Quiet Water is a further branch of the Waterfall track, slowing down the melody even more and simplifying the rhythm.

At this point, the Ruins melody mostly disappears as the main melody of any track until the Endgame. A natural question one may ask, especially since we’ve seen the trajectory of the Overworld Ostinato, is, “why isn’t the Ruins Melody in Hotland or the Core?”

That question is answered by looking at the last place the Ruins Melody appears before the Endgame

045. NGAHHH!! / 046. Spear of Justice

Maybe you’d already guessed it—the Ruins Melody makes its last appearance in the Undyne fight and is a part of her battle theme because she represents the end of the first half of the game, the half with Ruins and Waterfall. The way it’s implemented is particularly clever in that it incorporates the notes from the Waterfall version but the rhythmic profile of the Ruins version. This is the last hurrah for the Ruins Melody, and appropriately, once you defeat Undyne, you don’t hear this melody again until the Endgame.

(There’s a lot more to Undyne’s Theme than just this, but we’ll get to that in Part 2!)


Now let’s look at the way the melodic lines in Hotland evolve through its progression through the second half of the game. This time, there’s more than just one melodic line to follow. Let’s trace them through one at a time:

051. Another Medium

This first melody we’re looking at comes in at 0:23. It ascends slowly into view, a beautiful, haunting melody, setting the stage for the entrance of the higher countermelody that comes in at 0:37, when the song really kicks in.

065. CORE

In 065. CORE, we see the same slow, winding melody come in at 1:02.


Now, if the Ruins Melody was closed out by the Undyne Fight, it would only make sense that the themes in Hotland and the Core would be closed out by Mettaton. Let’s take a look:

068. Death by Glamour

We hear the return of the countermelody (Melody 1B) from Hotland at 0:14, modified, but still recognizable, as part of the introduction of 068. Death by Glamour. Again, this makes sense that Mettaton, the boss for this second half of the game, would contain the shared melody that runs through Hotland and Mettaton. He is “closing out” this Hotland melody in the same way Undyne did with the Ruins Melody.


Now let’s look at the second melody that runs through Hotland and the Core:

051. Another Medium

The second melodic line is the opposite of the first melody we looked at above—it’s aggressive, strong, and rhythmically driven. Unlike the shy, string-like instrumentation of the first melody, this melody belongs to a rough, aggressive synth that we can hear immediately when it comes in.

065. CORE

Of course, the melody shows up in the music for the Core as well, mostly unchanged from to the Hotland version. However, this melody doesn’t show up in the Mettaton fight (which honestly is already packed with different motifs and patterns)—but I think it’s still worth pointing out as it illustrates the relationship between Hotland and the Core.


…Phew, I realize that was a lot of content above. To summarize:

The Overworld Ostinato runs through all 4 areas of the game. Because the Ostinato figure is a repeated pattern that serves as the “backing” for more prominent musical elements, it’s often less easy to hear. Nevertheless, its presence gives listeners a sense, either subconsciously or consciously, that all the areas of the game are related and part of a unified world.

The melodies of each area are related too, except that because they’re more prominent, it would perhaps be tiring to hear them through the whole game. As a result, UNDERTALE gets split, structurally, into 2 halves. The first half is Ruins and Waterfall, which share a melody, and has that melody “closed out” by the boss of the first half of the game, Undyne. The second half is Hotland and the Core, which share 2 melodies, one of which is also “closed out” by the boss of the 2nd half of the game, Mettaton. This theory that the game is split up in this way is actually further supported by the tracks 047. Ooo and 70. Long Elevator, both of which are “drone tracks” that occur right after the Undyne and Mettaton boss fights, respectively.


“But what about the whole Snowy/Snowdin area? How did that get left out of this whole section?”


It’s an interesting question. If we look at it musically, Snowy/Snowdin is its own, self-contained little area. Thematically speaking, Snowy, Snowdin, the Shop Music, and the Dating Sequence all share the same leitmotif: a cute, happy little melody that represents exactly the feeling it evokes.

017. Snowy

022. Snowdin Town

023. Shop

025. Dating Start!

027. Dating Fight!

Why, though, is this section of the game separate from the others musically? To me it seems the reason is this:

The Snow area of the game is strategically placed in the narrative to encourage the Spare mechanic.

Think about it—for most players in their first playthrough, they’ve probably slayed several monsters in the Ruins, having been given very little direction on how to deal with them. Most players will have also killed Toriel, and are probably feeling awful about it. Then comes the Snow area—where the bosses are cute dogs, there’s a friendly town with a Christmas tree, and the music—constantly reminding you that yes, it turns out Monsters have a rich and happy (though not too happy) life here.

Thus, the leitmotif that runs through this entire area (all the way through the Papyrus Fight/Date, which again “closes” out the theme before Waterfall) is designed to get the player to fall in love with the Monsters and the world they live in, and to re-examine the way they do battle for the rest of the game. With this in mind, the way the Snow area is distinct from the other areas of the game musically makes perfect sense, and explains why the usual Ostinato figures and melodies that run through all the other areas are not present here.

In the next half of the article, I’ll discuss character-associated leitmotifs and how those leitmotifs serve to inform those characters’ personalities and relationships, as well as discuss the Endgame tracks. In the meantime, if you have questions, comments, things you agree with, things you don’t quite buy…please let me know in the comments below!

If you enjoyed this article, please consider supporting me on


Thank you!

25 thoughts on “An Examination of Leitmotifs and Their Use to Shape Narrative in UNDERTALE – Part 1 of 2

  1. This is really interesting! I don’t know much music theory, and I can only half read music, but I was mostly able to follow along. I’m always interested by analyses of Undertale music because it’s kinda the one part that isn’t talked about much. Looking forward to part 2!

    • I’m glad you were able to follow along 🙂 I definitely tried to write this in a way so that non-musicians could understand.

  2. My favorite course while I was in college was a class about Wagner’s Ring and, as you may expect, a great deal of the material for the class relied on the leitmotifs. I really enjoyed reading your work. I’ve never played the game, though I’ve watched several playthroughs and enjoyed the score thoroughly. I had recognized a lot of the connections previously, but there were several, particularly the ostinato that I had never fully observed. Excellent job traipsing the fine line between too advanced and accessible for the layperson. Looking forward to part two! Cheers!

    • There’s just something really satisfying about finding connections like these in works of art. I’m glad you enjoyed it, and thank you for the kind words!

  3. This is absolutely fantastic, and I’m sure you got a lot out of your research! hope to hear/read more stuff like this in the future!

  4. Really good stuff!! I think you’ll also find resonances between the main “Undertale Theme” and the Snowdin “Cheerful Theme” – the initial octave span (ascending in UT, descending in CT), the emphasis on the 9th (resolved down to the tonic in UT, up to the 3rd in CT), the descending basslines over which both themes often appear (and oh, I just realized the B section of “Once Upon A Time” is pretty explicitly the Cheerful Theme bridge… I always skip to the start menu before that part comes around). This stuff is so fun!!!

    • Great observations! I feel that’s often the hallmark of good art, the fact that you can go back and find new things every time.

  5. Amazing work you’ve done. This is just the kind of research and information I adore reading. I look forward to the next part, and I will definitely read your other articles. Cheers mate!

    • I appreciate that! The Cave Story article I wrote many years back and is in a different style but I really love that game’s soundtrack too.

  6. Very interesting read! I’ve never played Undertale, but if this analysis alludes to anything, it is that it is a well thought out and interesting game. Great work, will definitely tune into part 2.

  7. I found your article very informative! It was awesome to finally know for sure what was hiding in a lot of these songs. Honestly, the only aggravating part is not always being sure what instrument I’m listening too. Anyway, I look forward to your second half of the article.

  8. Love the article, but I feel the need to point out that the Waterfall/Another Medium ostinato was actually written before Undertale (you can hear it at :29 onwards here: . With that in mind I’m not sure there’s an intentional connection to the Ruins ostinato unless he extracted it from this motif.

  9. This is a really wonderful article!

    Although, to my (non-music-expert) ear, the recurring Snowdin motif you’ve named the “Cheerful Theme Bridge” sounds very much like a modified version of the section of “Once Upon a Time” that starts at around 0:28 and ends at around 0:58, and I’m a little surprised you didn’t mention that in your analysis? Unless my ears are mistaken, which is admittedly likely.

Leave a Reply

Your email address will not be published. Required fields are marked *