What do sharps and flats mean on piano

1 min read

A sharp raises a note by one key to the right, and a flat lowers it by one key to the left. Most of the time that means playing a black key instead of a white one. Sharps and flats appear either at the start of every line in the key signature, or right before a single note as an accidental. Both tell you the same thing: move one key up or down from the white note you see on the staff.

Why sharps and flats exist

Piano has twelve keys in every octave: seven white, five black. The white keys are named A through G, and the black keys fill the gaps. A sharp or flat is the instruction to play one of those in-between notes.

Your lesson book uses two systems. The key signature sits at the start of every line, right after the clef, and applies to every matching note on the page. An accidental appears immediately before one note and lasts until the end of the bar. Both do the same job, they just cover different amounts of music.

When you see a sharp on the F line of the treble staff, you play the black key to the right of F every time F appears, unless a natural sign cancels it. When you see a flat on the B line, you play the black key to the left of B. The pattern is consistent: sharp means right, flat means left, one key at a time.

Reading the key signature

The key signature tells you which notes are sharp or flat for the entire piece. If you see one sharp on the F line, every F in the piece is F sharp unless an accidental says otherwise. Two sharps means F sharp and C sharp. Three sharps adds G sharp, and the pattern continues.

Flats work the same way. One flat on the B line means every B is B flat. Two flats adds E flat. The order is fixed: sharps always appear F, C, G, D, A, E, B, and flats appear B, E, A, D, G, C, F. You don't need to memorize the order right away, but you do need to check the key signature before you start practising a new page.

Some books print the key signature on every line. Others print it once at the top. Either way, it applies to the whole page. Ode to Joy in many beginner books has no sharps or flats, so every note is a white key. Minuet in G usually has one sharp, so every F becomes F sharp.

Accidentals inside a bar

An accidental is a sharp, flat or natural sign written immediately before a single note. It overrides the key signature for that note and every repeat of that note in the same bar. Once the bar line appears, the key signature takes over again.

If your piece has no sharps in the key signature but you see a sharp before one F, you play F sharp for that note and any other F in that bar. The next bar resets, and F goes back to being a white key. If the composer wants F sharp again, the accidental has to appear again.

A natural sign cancels a sharp or flat. If the key signature says F sharp and you see a natural before an F, you play the white key F for that bar. Naturals are common in pieces that move between different patterns, and they're easy to miss when you're sight reading quickly.

Which black key to play

Most sharps and flats land on black keys, but not always. E sharp is the white key F, because there's no black key between E and F. B sharp is C. F flat is E, and C flat is B. The instruction is always the same: move one key in the direction the symbol points.

When you're learning a new page, play through it slowly and mark any sharp or flat you forget. Your brain will start recognizing the pattern after a few repetitions. If one bar keeps tripping you up, isolate it and play it five times in a row. LessonKeys will show the wrong note the moment you play it, so you know exactly which key to adjust.

Practising with sharps and flats

Start by checking the key signature before you play a note. Count the sharps or flats, find them on the staff, and locate the matching black keys on your keyboard. Play the scale once to hear how the key signature changes the sound.

Then play the page at half speed, watching for accidentals. When you see one, say the note name out loud: "F sharp," "B flat," "G natural." Naming it helps your hand find the right key without hesitation. If you're using a digital keyboard over Bluetooth MIDI, LessonKeys will highlight the wrong note immediately, so you can correct it and move on.

Some students mark every sharp and flat with a pencil for the first few practice sessions. That's fine. The goal is to play the right note, not to prove you can sight read perfectly on the first try. After a week of five-minute sessions, you'll stop needing the marks.

Common mistakes

The most common mistake is forgetting that the key signature applies to every octave. If the key signature says F sharp, every F on the page is sharp, whether it's the F above middle C or the F two octaves higher. The staff line tells you which letter, and the key signature tells you whether it's sharp or flat.

Another mistake is forgetting that an accidental lasts the whole bar. If you see a sharp before the first note and the same note appears three more times in that bar, all four are sharp. The bar line is the reset point.

Finally, students sometimes confuse the direction. A sharp raises the note, so you move to the right on the keyboard. A flat lowers it, so you move to the left. If you play the wrong black key, the sound will tell you immediately. Trust your ear, fix it, and play the bar again.

How LessonKeys helps

LessonKeys scans the page of your lesson book and plays it as falling notes. When you connect your digital piano or keyboard over Bluetooth MIDI, it shows every wrong note the moment you play it. If you play F instead of F sharp, you'll see it highlighted, and you can correct it without waiting for your next lesson.

Scanning isn't perfect, and occasionally a sharp or flat might be misread. You can fix it with a tap, and the correction stays for every practice session. The app doesn't replace your teacher, but it does give you immediate feedback between lessons, so you spend less time guessing and more time playing the page correctly.

LessonKeys works with pages from Faber, Alfred, RCM, Bastien and other lesson book series, though it's not affiliated with any of them. Every lesson is free to scan and practise. LessonKeys Pro is an optional subscription that removes ads and lifts the monthly limits on scanning and fixing notes, with a one-week trial on the yearly plan.

When to ask your teacher

If a page has more than three sharps or flats and you're not sure which notes they affect, ask your teacher to walk through it with you. If you see a double sharp or double flat, those are less common and worth a quick explanation. And if the key signature changes halfway through the piece, that's a modulation, and your teacher can show you where the shift happens.

Sharps and flats are not tricks. They're instructions, and once you know how to read them, they're as straightforward as the white keys. Check the key signature, watch for accidentals, and play each bar slowly until your hand knows where to go. Five minutes a day, and the black keys stop feeling like a detour.

Frequently asked questions

Common questions related to this topic.

What is the difference between a sharp and a flat?

A sharp raises a note by one key to the right, and a flat lowers it by one key to the left. On the keyboard, that usually means playing a black key instead of a white one. The symbol tells you which direction to move from the white note you see on the staff.

Do sharps and flats always mean black keys?

Most of the time, yes. But E sharp is the white key F, and B sharp is C, because there's no black key between E and F or between B and C. F flat is E, and C flat is B. The instruction is always to move one key in the direction the symbol points, whether that lands on black or white.

How long does an accidental last?

An accidental lasts until the end of the bar. If you see a sharp before one note, that note and every repeat of it in the same bar are sharp. Once the bar line appears, the key signature takes over again, and the accidental no longer applies.

What does a natural sign do?

A natural sign cancels a sharp or flat. If the key signature says F sharp and you see a natural before an F, you play the white key F for that bar. Naturals are common in pieces that move between different patterns, and they reset the note to its original white-key pitch.

Can I mark sharps and flats in my lesson book?

Yes. Many students mark sharps and flats with a pencil for the first few practice sessions. The goal is to play the right note, not to sight read perfectly on the first try. After a week of short daily sessions, you'll stop needing the marks.

Does LessonKeys show sharps and flats?

LessonKeys scans the page of your lesson book and plays it as falling notes, including sharps and flats. When you connect your digital piano over Bluetooth MIDI, it shows every wrong note the moment you play it, so you know immediately if you've played the wrong key. Scanning isn't perfect, and a misread note can be fixed with a tap.