How the Piano Works
Most beginner guides tell you what the notes are. This one goes further. Start with why the keyboard looks the way it does — the 12 notes, the 2–3 black-key pattern, Middle C, the 88-key span. Then go inside the case: the wooden hammers, copper-wound bass strings, the soundboard that turns a tiny vibration into a concert hall’s worth of sound, and the three pedals that change everything.
By the end you’ll know how a key press becomes a hammer strike, why bass strings are wound and treble strings are tripled, what the sustain pedal actually does mechanically, why Steinway settled on 88 keys in the 1880s, and how grand, upright, and digital pianos differ on the inside.
12 sections · 7 interactive widgets · ~22 min read
01. Every piano has exactly 12 notes
Before white keys, black keys, or letters — there are just twelve equally spaced sounds. After the twelfth, the pattern repeats: the same names come back, just higher in pitch. That repeating unit is called an octave, and each step inside it is a semitone — the smallest distance between any two notes on a piano.
These 12 notes weren’t invented arbitrarily. They emerged from the physics of vibrating strings: simple frequency ratios sound consonant, and stacking the 3:2 ratio (a perfect fifth) twelve times almost returns you to your starting pitch. Twelve is the smallest division of the octave that gives every key a usable set of consonant intervals.
Widget · The 12 Semitones
02. The musical alphabet
There are 12 notes — but only seven letter names: A, B, C, D, E, F, G. After G the alphabet wraps back to A, and the pattern repeats. So how do we name the other five? With sharps (♯, one semitone above) and flats (♭, one semitone below).
Use the toggle below to walk through the naming in three steps: first the 12 raw notes, then the 7 named ones, then all 12 with sharps and flats filled in. Notice how E→F and B→C are already only one semitone apart — there’s no room for an extra note between them.
Widget · Naming the 12 Notes
E♯ & B♯ exist
“One semitone above E” lands on F. Same key, different name. Same for B♯, which lands on C.
F♭ & C♭ exist
“One semitone below F” lands on E. F♭ = E and C♭ = B. The naming depends on key signature context.
03. Black keys and the 2–3 pattern
Look at any piano and you’ll see the same shape repeating across its full length: two black keys, then three black keys, then two, then three. Every octave. The pattern isn’t arbitrary — it’s a direct visual consequence of where the natural half-steps fall in the alphabet.
Two pairs of natural notes are already only one semitone apart: E→F and B→C. There’s no room to insert a black key between those pairs. Every other neighboring pair (C–D, D–E, F–G, G–A, A–B) is a whole step — just enough room for one black key. Remove the two no-gap spots and you get exactly the 2–3 grouping you see on every piano.
Widget · One Octave, Tap Any Key
The group of 2
C♯ and D♯ — always 2 black keys together, sitting over C, D, and E.
The group of 3
F♯, G♯, A♯ — always 3 black keys together, sitting over F, G, A, and B.
04. Middle C and the octave system
Every C on the keyboard has the same letter name — but they’re not interchangeable. Pianists number them by octave: C1 (lowest) through C8 (highest), with C4 sitting near the physical center of the instrument. C4 is called Middle C.
Middle C earns its name two ways. One: on an 88-key piano it’s key 40 of 88 — almost dead-center under your hands when you sit at the keyboard. Two: on the grand staff it sits on the ledger line between treble and bass clefs, the meeting point of the two staves.
Every other note follows the same numbering. A4 is the A immediately above Middle C — this A is the international tuning standard, vibrating at exactly 440 Hz. C5 is one octave above Middle C; C3 is one octave below. Once you can locate Middle C on a keyboard, you can name every key on the instrument.
Widget · Two Octaves with Middle C as Anchor
The leftmost C in this widget is C4 — Middle C. The next C up is C5, an octave higher.
05. The full 88-key layout
A standard piano has 88 keys — 52 white and 36 black, spanning seven octaves plus a few extra notes at the bottom and the top. The lowest is A0 (about 27.5 Hz), the highest is C8 (about 4,186 Hz). Below A0 the pitch is so low it loses musical clarity; above C8 it’s near the upper edge of what’s musically useful.
The 88-key standard was settled by Steinway & Sons in the 1880s. Earlier instruments had fewer keys — Mozart’s fortepiano had about 61 — and the range expanded over the 18th and 19th centuries to keep up with composer demand. The repeating 12-note octave you learned above stretches across the entire 88-key span, with every C marked below for orientation.
Widget · All 88 Keys, A0 to C8 (Cs Highlighted)
Scroll horizontally to see every key. Each highlighted key is a C; Middle C (C4) is the fourth C from the left.
06. Inside the piano: the action
Press a key, hear a note. What sits between those two events is one of the most intricate machines ever built into a domestic instrument: the piano action. It’s the mechanical linkage that turns the small downward push of your finger into a felt hammer striking a steel string at exactly the right moment, with exactly the right speed, and then catches the hammer cleanly so the note rings instead of choking.
A modern grand piano action contains roughly 5,500 to 12,000 individual moving parts. Every one of the 88 keys has its own complete sub-mechanism — about 100 parts per key — pivoting on tiny pins, balanced on felt-covered rails, regulated to thousandths of an inch. When a piano feels “great” under your fingers, it’s usually because a technician has spent hours getting all 88 of these sub-mechanisms to behave the same way.
Here is what happens between the moment you start pushing a key down and the moment you hear the sound — the entire sequence takes only a few thousandths of a second:
Diagram · The grand-piano action
Simplified side view of one note’s action. The actual mechanism has roughly 100 parts per key — springs, regulating screws, felt bushings, leather buttons — all tuned to thousandths of an inch.
The keystroke, step by step
- Key tilts. The key is a wooden lever pivoting on a balance pin at its midpoint. Push the front down; the back goes up.
- Capstan rises. A small post (the capstan) on the back of the key lifts upward.
- Wippen rotates. The capstan pushes the wippen, a multi-armed lever holding the jack and the repetition lever.
- Jack throws the hammer. The jack rotates and pushes the bottom of the hammer shank upward, accelerating the hammer toward the string.
- Escapement. A few millimeters before contact, the jack disengages (“escapes”). The hammer keeps moving on momentum alone — this is critical, because if anything kept pushing during contact, the hammer would damp the string instead of letting it ring.
- Strike. The felt hammer hits the string for about 1–2 milliseconds, then bounces.
- Backcheck. The bouncing hammer is caught by the backcheck, halfway down. This stops it from re-striking the string accidentally.
- Damper lifts. While the key is held, a felt damper that normally rests on the string stays raised. The string keeps ringing.
- Release. Let go of the key: the backcheck releases the hammer, the damper falls back onto the string, and the sound stops.
07. Strings: length, gauge & tone
A piano makes its sound by hammering metal wires. Each note’s pitch is determined by the wire’s length, mass, and tension. Shorter, thinner, tighter strings vibrate faster (higher pitch); longer, heavier, looser strings vibrate slower (lower pitch). The relationship is famously non-linear — to drop a pitch by one octave (cut frequency in half), you have to double the string length, hold tension constant, or quadruple the mass.
That’s a problem. If a piano’s designers used the same kind of string from top to bottom, the lowest A0 string would have to be extraordinarily long — tens of feet — to vibrate at 27.5 Hz. No one wants a 30-foot piano. So the piano cheats with two engineering tricks: progressive shortening, and copper-wound bass strings.
Visualization · Relative string lengths
Approximate. The lowest string on a 9-foot concert grand is roughly 6.5–7 feet long; the shortest treble string is about 2 inches. Bass strings (copper-wound steel) have one strand per note in the lowest octave, two in the mid-bass. The treble has three strings per note — a major reason the piano sounds full.
Why bass strings are wound
A bare steel string thick enough to vibrate slowly enough for a low bass note would be too stiff to vibrate freely — stiffness raises pitch and adds inharmonic overtones. Conversely, a thin steel string light enough to vibrate freely wouldn’t have enough mass to vibrate slowly without being unmanageably long. The fix is to take a thin, flexible steel core and wrap it in copper or iron windings. The core stays flexible (it’s the part that actually vibrates); the windings add mass without adding stiffness.
You can see the result: bass strings are visibly thicker and look rope-like. Treble strings look like guitar wire — thin, bright, plain steel. The transition usually happens somewhere around C3 on most pianos.
Why most notes have three strings
The treble has three strings per note. The mid-bass has two. The lowest octave usually has one. More strings means more acoustic energy radiating into the soundboard — critical at high frequencies, where each string is small and moves very little air. Three strings vibrating slightly out of phase with each other also produce a richer, more shimmering tone than a single string would. The total count on a typical concert grand: ~230 strings, holding about 18–20 tons of total tension. The cast-iron plate inside the case is what holds it all together.
08. The soundboard: how the sound gets loud
A vibrating string by itself moves almost no air. Take an electric guitar string off the body and pluck it — it’s nearly silent. The same is true on a piano: the strings are the source of the pitch, but they cannot project sound on their own. Every acoustic piano has a wooden component called the soundboard whose only job is to turn that small string vibration into a sound that fills a hall.
The soundboard is a thin sheet of wood, typically quarter-sawn Sitka spruce, about 8 to 10 millimeters thick. It sits underneath the strings on a grand, or behind them on an upright. Wooden ribs glued across its underside stiffen it without adding weight. The strings pass over a wooden bridge that’s glued directly to the soundboard. When a string vibrates, the bridge transmits that vibration into the much larger surface of the soundboard, which moves a much larger volume of air, which is what your ear actually hears as a piano.
The soundboard is also engineered with a slight upward arch called the crown. Under the downward pressure of the strings (about 1,000 pounds total bearing on the bridge), the crown flattens slightly, putting the wood under permanent tension. That tension is what gives a great piano its bright, projecting treble. As pianos age over decades, the crown gradually flattens, the wood loses tension, and tone goes dull — one reason why a 100-year-old piano often sounds tired even if the action still works.
Sympathetic resonance and the harmonic series
Press the sustain pedal (so all dampers are off the strings), then play a single low note hard. Listen carefully and you’ll hear other strings start to ring along with it — even though you never touched them. This is sympathetic resonance, and it’s a big part of what makes piano sound feel three-dimensional.
Every vibrating string produces not just a single pitch, but a fundamental plus a series of overtones (also called partials or harmonics) at integer multiples of the fundamental frequency. When you play low C, the string is also vibrating at 2×, 3×, 4×, 5× the fundamental — and any other strings nearby that share those frequencies will pick up a tiny bit of that energy and start to vibrate, too.
The harmonic series of a single low C
Strike low C2 alone, and these higher pitches are already present inside the sound — faintly, but really there. Hold the sustain pedal and any nearby string tuned to one of these frequencies will start vibrating in sympathy. *The 7th partial sits between B♭ and B and is what gives a bright piano tone its slight bluesy color.
09. The three pedals
A modern grand has three pedals. Each one changes the sound in a different way, and each one does it through a specific mechanical change to the action or the strings — not by digital processing. Once you understand what they actually do, the way pianists use them stops feeling magical.
Right pedal — sustain (damper)
The right pedal lifts every damper off every string at once. Normally, a felt damper rests on each string and silences it as soon as you release the key. Press the sustain pedal and all 88 dampers stay raised, so any note you play continues ringing after you let the key go — and every other string in the piano is now free to vibrate sympathetically. This is what gives the sustain pedal its “wash” sound. It’s the most-used pedal by a wide margin and the one most beginners overuse. Experienced players lift and re-press it on every harmony change, blending notes within a chord but not between chords.
Middle pedal — sostenuto
The sostenuto pedal sustains only the notes that are already pressed when you put the pedal down. Anything you play after that is unaffected. Mechanically: when you depress the pedal, a long bar (the sostenuto rod) catches the dampers of any keys whose dampers are already raised, and holds them up. Other dampers fall as usual. It’s a precise tool — great for holding a bass note while playing freely above it. The mechanism was invented in 1844 by Boisselot of Marseille and popularized in 1874 by Steinway. Common on grands; rare on uprights, where the middle pedal usually does something else (often a “practice mute” that drops a felt strip between the hammers and the strings to quiet the instrument for late-night practice).
Left pedal — una corda (soft)
On a grand, the una corda pedal physically shifts the entire action sideways by a few millimeters. In the treble, where each note has three strings, the displaced hammer now strikes only two of them — the third is left to vibrate sympathetically without being struck. (The Italian name una corda, “one string,” comes from older instruments where the shift moved the hammer to a single string.) The hammer also strikes the strings on a less-used patch of its felt surface, which sounds rounder and softer. The result is a different tone color, not just a quieter version — the una corda is a timbre control, not a volume knob. On uprights, the same pedal usually shortens the hammer’s travel distance instead, which only changes loudness, not timbre.
Widget · Sustain pedal demo
Toggle the pedal and play the chord. With sustain off, the sound stops almost immediately when the “key” releases. With sustain on, the strings keep ringing. (Make sure sound is on at the top of the page.)
On a real piano, “sustain off” means the dampers drop the moment the key returns to rest. Here we’re modeling it with a fast amplitude decay (~0.45s) versus a long one (~4.5s) when the pedal is on.
10. Why exactly 88 keys?
Section 5 showed the 88-key range visually. This one explains why 88 specifically — a number that seems oddly specific until you look at both ends of the keyboard and the historical path that landed there.
The 88-key span (A0 to C8) is a standard, not a physical law. It was settled by Steinway & Sons in the 1880s and adopted by every other major maker. The reasons are partly acoustic and partly historical.
The physics of the boundaries
Low end — A0 at 27.5 Hz
Below ~20 Hz the human ear stops perceiving a tone as pitch and starts perceiving it as separate pulses. Even at A0, most of what you hear is the harmonics, not the fundamental. Adding more keys below A0 wouldn’t add musically useful pitches — the bottom of the audible window is already in sight.
High end — C8 at 4,186 Hz
Above ~4 kHz the ear is still sensitive but the brain’s ability to distinguish melodic pitch begins to break down. C8 is bright and clear, but already a little shrill. Above it, music turns into pure timbre — you can hear it but you can’t write a tune up there.
How the range got to 88
4 octaves
Cristofori’s first piano. Inherited the harpsichord’s range almost exactly.
~5 octaves (61 keys)
Mozart’s instruments. The Classical-era standard.
6½ octaves
Beethoven’s Hammerklavier Sonata required a wider keyboard. Builders responded.
7 octaves
Chopin, Liszt, Schumann pushed range and dynamics. The repertoire forced the instrument to grow.
7¼ octaves — 88 keys
Steinway extended down to A0 and up to C8. Every major maker followed.
88 (standard); 97 (Bösendorfer Imperial); 108 (Stuart & Sons)
A few makers go further for resonance, but no maker has gone smaller — the entire post-1880 repertoire assumes 88 keys.
11. Grand, upright & digital
Three kinds of piano exist today, and they’re built around fundamentally different design constraints. Choosing between them is mostly about how you’ll use the instrument — and how much horizontal floor space you have.
Grand piano
The strings lie horizontally. Hammers strike them from below; gravity pulls the hammers back to rest position naturally. This is the original 1700 design and still the best for repetition, dynamics, and tonal range. Within the grand category, length matters more than anything: longer cases mean longer bass strings (more harmonic depth), larger soundboards (more volume and color), and more room for a sophisticated action.
Baby grand
4’6″ – 5’3″
Living rooms; the most compact grand format
Parlor grand
5’4″ – 6’4″
Most common home grand; a good balance
Semi-concert
6’5″ – 7’4″
Recording studios, recital halls
Concert grand
7’5″+
Major concert halls; a true 9′ instrument
Upright piano
The strings stand vertical. Hammers strike sideways, and because gravity isn’t pulling them backward to reset, the action uses springs to return them. This makes upright actions inherently slower at repetition than grand actions — great uprights are still slower at fast trills than mediocre grands. Upright tone quality scales with case height, because taller uprights have longer strings:
Spinet
36″ – 40″
Smallest. Compromised tone (folded action)
Console
40″ – 44″
Common starter home upright
Studio
45″ – 47″
School and studio standard
Full upright
48″+
Tallest; closest tone to a small grand
Digital piano
A digital piano has no strings, no soundboard, no acoustic mechanism. It uses sensors to read keystroke velocity, then plays a pre-recorded sample of a real piano (sample-based) or a real-time mathematical model of one (modeled) through speakers or headphones. The keys are weighted — sometimes with real hammer-style mechanisms behind them — to mimic the feel of an acoustic. The best digitals have wooden hammer-action keys; the cheapest have springs and feel quite different.
Comparison · The three families
| Trait | Grand | Upright | Digital |
|---|---|---|---|
| Sound source | Hammers strike strings, soundboard radiates | Hammers strike vertical strings, smaller soundboard | Sampled or modeled audio through speakers |
| Action speed | Fastest repetition (gravity-reset) | Slower (spring-reset) | Varies; best digitals approach upright feel |
| Tuning | Twice yearly | Twice yearly | Never |
| Volume control | Touch + una corda only | Touch + practice mute (some) | Full control + headphones |
| Sympathetic resonance | Yes, full | Yes, smaller | Modeled (high-end only) |
| Footprint | Large (5′–9′ deep) | Compact (against a wall) | Smallest; portable models exist |
| Lifespan | 50–100+ years | 40–80 years | 10–20 years (electronics) |
12. Quick quiz
Three quick checks. Tap the keyboard to answer. Toggle sound on at the top of the page if you want to hear what you’re tapping.
Challenge 1 of 3
Tap Middle C
Frequently Asked Questions
Why are there 12 notes in an octave?
Twelve is the smallest division of the octave that produces close-to-pure perfect fifths and fourths. Stacking the 3:2 ratio (a perfect fifth) twelve times almost returns you to your starting pitch — the small remainder is called the Pythagorean comma. Equal temperament smooths it out so all 12 keys are usable, which is why every piano you’ll play uses exactly 12 notes per octave.
Why are there only 7 letter names if there are 12 notes?
Medieval theorists chose seven notes that form the most consonant intervals with each other. Together they make the major scale. The other five are described relative to those seven as sharps (a half step up) or flats (a half step down), which is why those five black keys have two names each.
What is Middle C?
Middle C, written C4 in scientific pitch notation, is the C closest to the center of an 88-key piano (key 40 of 88). It is also the meeting point between treble and bass clef on the grand staff, written on a ledger line between the two staves. C4 vibrates at about 261.63 Hz.
How do I find C on any piano?
Look for the groups of 2 black keys that repeat across the keyboard. C is the white key immediately to the left of any group of 2. From there you can name every other key alphabetically: C, D, E, F, G, A, B, then back to C an octave higher.
What is the difference between a sharp and a flat?
A sharp (♯) raises a note by one semitone — one key to the right. A flat (♭) lowers a note by one semitone — one key to the left. Every black key has both a sharp name and a flat name, so the same key is both C♯ and D♭. Which one you call it depends on the key signature.
How does a piano actually make sound?
Pressing a key swings a felt-covered wooden hammer that strikes one, two, or three steel strings. The strings vibrate, and that vibration passes through a wooden bridge into a thin sheet of spruce called the soundboard. The soundboard moves much more air than the strings could on their own, and that moving air is what your ears hear as a piano.
How does the sustain pedal work mechanically?
The sustain (right) pedal lifts every felt damper off every string at once. Normally the dampers rest on the strings and silence them as soon as you release a key. With the sustain pedal pressed, the dampers stay raised, the notes you played continue ringing, and every other string in the piano is now free to vibrate sympathetically. It is a purely mechanical action, not an electronic effect.
Why are bass strings wound with copper?
Low pitches need long, heavy strings. A bare steel string thick enough to vibrate slowly for a bass note would be too stiff to vibrate freely; a thin steel string light enough to vibrate freely would not have enough mass without being many feet longer than the case allows. Wrapping a thin steel core in copper or iron windings adds the needed mass while keeping the core flexible.
Why do most piano notes have three strings?
Three strings per note give the treble more acoustic energy and a richer tone. High-frequency strings are physically small and move very little air, so tripling them up boosts loudness, and the small phase differences between them produce a fuller, more shimmering sound. The mid-bass typically has two strings per note; the lowest octave usually has one wound string per note.
What does the una corda (left) pedal do?
On a grand, the una corda pedal physically shifts the entire action sideways by a few millimeters, so each treble hammer strikes only two of its three strings instead of three. The hammer also strikes the strings on a less-used part of its felt surface, which sounds rounder and softer. The result is a different tonal color, not just a quieter version. On uprights, the same pedal usually shortens the hammer travel distance, which only changes loudness.
What does the middle pedal do?
On most grands the middle pedal is a sostenuto pedal: it sustains only the notes that are already pressed when you depress the pedal, and leaves anything you play afterward unaffected. On most uprights, the middle pedal is a practice mute — it drops a felt strip between the hammers and the strings to quiet the instrument for late-night practice.
Why does a piano have 88 keys?
Steinway & Sons standardized 88 keys (A0 to C8) in the 1880s. Below A0 (27.5 Hz), pitches lose musical clarity; above C8 (4,186 Hz), they’re near the upper limit of what’s musically useful. Earlier pianos had fewer keys — Mozart’s fortepiano had about 61 — and the range expanded with composer demand through the 19th century until the modern 88-key layout settled.
Why does a grand piano sound different from an upright?
A grand has horizontal strings; gravity returns the hammers to rest naturally after each strike, which makes repetition fast and effortless. An upright has vertical strings; the hammers must be returned by springs, which is mechanically slower. Grands also tend to have longer bass strings and larger soundboards, which gives them richer tone — especially at the bottom end. Uprights take less floor space and cost less.
Are the white keys called natural notes?
Yes. The seven white keys (C, D, E, F, G, A, B) are the natural notes. The five black keys are the sharps and flats. The C major scale uses only natural notes — which is why beginners typically start there.
Does E♯ exist? It looks like the same key as F.
It does — and it is the same key as F. This is called enharmonic equivalence: the same pitch can have multiple valid names. F♯ major, for example, must spell its 7th degree as E♯ rather than F because every letter name has to appear in the scale exactly once.
Continue Learning
What Is a Scale? →
How seven notes turn into a scale you can build melodies on.
C Major Scale →
The all-white-keys reference scale — your starting point.
Major Scales →
The W–W–H–W–W–W–H pattern across all 18 keys.
What Is a Chord? →
Stacking notes from a scale to build chords.
C Major Chord →
The first triad — C, E, G — built from the C major scale.
Triads →
Major, minor, diminished, and augmented — the four three-note chords.
Circle of Fifths →
How all 12 keys relate to each other on a single map.
Modes of the Major Scale →
Seven scales hiding inside every major scale.