First steps on the piano

A piano keyboard looks like a long row of near-identical keys, but it is built from one small pattern that repeats from left to right. Once you can see that pattern, you can name every key on the instrument, and everything else in piano playing builds on it.

The pattern of black keys

Look at the black keys first. They come in groups of two and groups of three, alternating all the way up the keyboard. Those groups are your landmarks: every white key is named by where it sits next to them.

  • The white key just to the left of a group of two black keys is C. Moving right from there: C, D, E.
  • The white key just to the left of a group of three black keys is F. Moving right: F, G, A, B.

The white keys use only seven letters, C D E F G A B, and then start again at C. The black keys take their names from their neighbours: the black key just right of C is C sharp (C♯), which is the same key as D flat (D♭). You will find more about sharps and flats in Reading sheet music.

Try it

Open the piano and play every C from the bottom to the top, finding each one only by its group of two black keys. Then do the same with every F, using the groups of three. Say the names aloud as you go. It feels a bit silly, but it fixes the layout in your memory faster than anything else.

Octaves, middle C and the 88 keys

The distance from one C to the next C is an octave: eight white keys if you count both Cs, or twelve keys if you count black and white together. The upper C vibrates exactly twice as fast as the lower one, which is why the two sound like the same note at a different height.

To tell the octaves apart, each one gets a number. A full-size piano has 88 keys, 52 white and 36 black, running from A0 at the far left to C8 at the far right. The number goes up by one at every C, so the white key just below C4 is B3, not B4. The C nearest the middle of the keyboard is C4, better known as middle C. It is the fourth C from the left, and it is the reference point for reading music and for placing your hands. A4, the A just above it, is the note orchestras tune to (440 Hz).

pianoinbrowser.com opens centred on middle C and uses exactly these names. With the key letters switched off, every C is labelled (C1, C2 and so on) and middle C stands out in gold. Whenever you hold down keys, their names also appear on screen, so you can always check where you are.

Sitting at the piano

Good posture is not about looking elegant: it keeps your arms free so your fingers can do the work. At a real piano or keyboard:

  • Sit on the front half of the bench, roughly in front of middle C, with your feet flat on the floor.
  • Set the height so your forearms are about level with the keys, or slope very slightly down towards them.
  • Sit far enough back that your elbows are a little in front of your body, not pressed against your sides.
  • Keep your shoulders low. If they creep up while you concentrate, stop, let them drop and start again.

Hand position and finger numbers

Let one hand hang loosely at your side, then lift it onto the keys without changing its shape. The fingers curve on their own, as if you were holding a small ball. Play with the pads near your fingertips, keep your wrist level with the back of your hand, and let the thumb touch the key with its outer edge rather than lying flat.

Piano music numbers the fingers so that fingering can be written above the notes. The numbers are the same for both hands:

NumberFinger
1Thumb
2Index finger
3Middle finger
4Ring finger
5Little finger

Because your hands are mirror images, finger 1 of the right hand sits on the left side of that hand, and finger 1 of the left hand on the right side. A quick test: hold both hands out, palms down, and wiggle finger 4 on both at once. Then 2, then 5. If the right fingers move without hesitation, the numbers have stuck.

Your first five-finger exercise

The C position places one finger on each of five neighbouring white keys, C to G. Many beginner pieces stay in this position from start to finish.

  1. Right hand: thumb (1) on middle C, then fingers 2, 3, 4 and 5 on D, E, F and G. Play 1-2-3-4-5-4-3-2-1, one key at a time, and say the finger numbers aloud.
  2. Left hand: little finger (5) on the C below middle C (C3), then 4, 3, 2 and 1 on D, E, F and G. Play 5-4-3-2-1-2-3-4-5. The left hand plays the same rising line, but starts with the little finger.
  3. Connect the notes: let each key come up exactly as the next one goes down, with no gap and no overlap. This smooth way of playing is called legato, and it takes more control than it sounds.
  4. Vary the order: play 1-3-5-3-1, then 1-2-1-3-1-4-1-5. Keep the fingers that aren't playing resting lightly on their keys.

When that feels comfortable, try a real melody that stays almost entirely inside the C position. Ode to Joy begins E E F G G F E D C C D E E D D, which in the right hand is 3 3 4 5 5 4 3 2 1 1 2 3 3 2 2. You can load it on the piano and listen first; the app plays it an octave higher, starting on E5, but the fingering is the same.

How to practise

  • Short and often. Fifteen minutes every day does more than two hours on Sunday. Your hands keep learning between sessions, so give them plenty of sessions.
  • Slow enough to get it right. Choose a tempo at which you make no mistakes, even if it feels absurdly slow. Speed comes from correct repetition, not from rushing.
  • Hands separately first. Learn each hand on its own until it plays without thinking, then put them together at half speed.
  • Small sections. Repeat two bars until they are clean, instead of starting the whole piece from the top each time.
  • A steady beat. Switch on the metronome at a slow tempo and raise it a little once a passage is reliable. In the app, each click on + adds 2 beats per minute.

Playing on pianoinbrowser.com

Mouse and touchscreen

Click or tap a key to play it. On a touchscreen you can use several fingers at once, so chords work too, and sliding across the keys plays a glissando. Where you press on the key sets the volume: the lower on the key, the louder the note. On a phone, turn the screen sideways to see more keys, and drag the strip above the keyboard to move to a higher or lower part of it.

Computer keyboard

Two rows of your computer keyboard work as piano keys. The app follows the physical position of each key, so it works on AZERTY and QWERTZ keyboards too; the letters below are for a standard QWERTY layout. By default:

  • The bottom letter row plays the octave from C3: Z = C3, X = D3, C = E3, V = F3, B = G3, N = A3, M = B3. The keys in the row above, S D G H J, are the black keys in between.
  • The top letter row starts at middle C: Q = C4, W = D4, E = E4, R = F4, T = G4, Y = A4, U = B4, I = C5, O = D5, P = E5, [ = F5 and ] = G5. The number keys 2 3 5 6 7 9 0 and the = key are the black keys in between.
  • ← and → shift both rows an octave down or up. On wider screens the ‹ and › buttons in the toolbar do the same, and the note between them shows what Z currently plays.
  • Hold the space bar for the sustain pedal.

You don't have to memorise any of this: the letters are printed on the piano keys. The keyboard button in the toolbar switches them on or off, and the help screen (the ? button) shows the full map for the current octave. The five-finger exercise above is Q W E R T for the right hand and Z X C V B for the left. A computer keyboard can't sense how hard you press, so every note plays at the same volume.

MIDI keyboard

If you have a digital piano or a MIDI keyboard, connect it with a USB cable, click MIDI device at the top and allow access when the browser asks. Touch sensitivity and the sustain pedal both work, which makes this the closest thing to a real piano. It works in Chrome, Edge, Opera and Firefox; Safari does not support Web MIDI.

The sustain pedal

The right pedal of a piano lifts the dampers off the strings, so notes keep ringing after you let go of the keys. In the app you hold space for the same effect, or click Sustain in the toolbar to lock it on; a pedal connected to a MIDI keyboard works as well. Try it: hold space, play C, E and G one after the other, and hear them blend into a chord. Then let go of space before you play something new, or everything turns to mush. Beginners nearly always use too much pedal rather than too little.

Next: learn to read the notes you have just played in Reading sheet music.

Last updated on 13 November 2026.