ResourcesSheet MusicAndrew Carlins6 min read

Enharmonic Notes Explained

C-sharp and D-flat are the same key on the piano but two different names. Here is why the same pitch has more than one spelling, and how to know which one a piece of music should use.

Enharmonic notes: the same piano key labeled as both C-sharp and D-flat

Enharmonic notes are pitches that sound identical but are written with different names. C-sharp and D-flat are the same key on the piano and the same sound, but two different spellings. The sound is one; the name depends on the musical context. Every altered pitch has at least two enharmonic spellings, and which one is correct comes down to the key you are in and the direction the line is moving. Here is what enharmonic notes are, why more than one spelling exists, how the key decides which to use, and why the distinction matters even though the pitch never changes.

The same sound, two names

On a piano the black key between C and D is both C-sharp and D-flat: one physical key, one sound, two names. That is the clearest picture of an enharmonic pair. The two spellings are equal as sound and differ only as notation. Enharmonics are not limited to the black keys, either. The white keys have them too: E-sharp is the same pitch as F, and C-flat is the same pitch as B, because there is no black key between E and F or between B and C. There are also double-sharp and double-flat spellings, where a note is raised or lowered by two half steps, so F-double-sharp lands on the same pitch as G. In every case a sharp or flat is an accidental that raises or lowers a letter name, and enharmonic notes are simply the different ways those accidentals can arrive at one pitch.

Why more than one spelling exists

More than one spelling exists because Western notation names only the seven letters A through G and alters them, and a well-spelled key uses each letter name exactly once. The staff has one line or space for each letter, so a scale is meant to climb through consecutive letters, one per step, without skipping or repeating any. To keep that pattern, the writer picks the accidental that lands the pitch on the letter the scale needs. Take B major: its notes are B, C-sharp, D-sharp, E, F-sharp, G-sharp, and A-sharp. That seventh note is written A-sharp, not B-flat, even though the two sound the same, because spelling it B-flat would make the scale read A then B-flat then B, with two versions of B and no A at all. Writing A-sharp keeps the scale reading A then B, one clean letter per step. The enharmonic choice is what preserves the alphabet of the scale. For the wider picture of how scales are built letter by letter, see what is a scale in music.

How the key decides which to use

The key decides which spelling is correct: sharp keys spell altered notes with sharps, and flat keys spell them with flats. That single pitch between C and D is written C-sharp in a sharp key like D major and D-flat in a flat key like A-flat major, so the note matches the sharps or flats already declared in the key signature. The circle of fifths lays this out plainly, with the sharp keys on one side and the flat keys on the other. Within a passage the direction the line moves also settles the choice, which is the logic of voice-leading: a note rising toward the pitch above it is usually written as a sharp, and a note falling toward the pitch below it is usually written as a flat. Sharps tend to rise and flats tend to fall, so the spelling shows the reader where the line is headed.

Why it matters when it sounds the same

A musician reads spelling for meaning, so the enharmonic choice matters even when the pitch does not change. The right spelling tells you the note's role in the key, whether it is a raised seventh pulling upward or a lowered sixth leaning down, and it keeps the page readable by fitting the key signature instead of scattering accidentals across the staff. It also matters in practice: players of non-fixed-pitch instruments, strings and voice, may shade a sharp and a flat slightly differently, and anyone working in theory relies on correct spelling to name chords and intervals. On the piano the key you press is the same either way, but the notation should still be spelled right, because the score is meant to communicate more than which key to press. For quick definitions of the surrounding terms, see the music notation glossary.

Frequently Asked Questions

What are enharmonic notes?

Enharmonic notes are pitches that sound identical but are written with different names. C-sharp and D-flat are the same key on the piano and the same sound, but two different spellings. The sound is one; the name depends on the musical context. Every altered pitch has at least two enharmonic spellings, and choosing between them is part of writing notation correctly.

Is C-sharp the same as D-flat?

Yes, C-sharp and D-flat are the same pitch. On a piano they are the same black key between C and D, and they sound exactly the same. They are two names for one sound. Which name is correct depends on the key: a sharp key spells it C-sharp, a flat key spells it D-flat.

Why does the same note have two names?

Western notation names only the seven letters A through G and alters them with sharps and flats, and a key uses each letter name once. The correct spelling is the one that keeps the scale spelled with consecutive letters. In B major you write A-sharp rather than B-flat so the scale reads A then B rather than two versions of B.

How do you know whether to write a sharp or a flat?

The key decides. Sharp keys spell altered notes with sharps and flat keys spell them with flats, so the note fits the key signature. Within a passage the direction of the line also matters: a note rising toward the next pitch is usually written as a sharp, and a note falling toward the next pitch is usually written as a flat.

Want the spelling handled for you? Songscription spells the notes to match the key it detects in your recording, so the score reads correctly, and it lets you transpose the result to another key in a click.

About the author

Andrew Carlins

Written by

Andrew Carlins

Co-Founder & CEO, Songscription

Andrew co-founded Songscription at Stanford with a few fellow musicians who were tired of not finding the notes to the songs they wanted to play. He grew up playing piano and baritone saxophone and performing in musical theater, and though he hasn't performed in years, he likes to think he's still pretty sharp. He writes about getting a song off the recording and onto the page.

More about the team

Keep exploring more posts on the same topics.