Learning music

What is a musical staff? Lines, spaces, and clefs explained

The staff is the set of five horizontal lines and four spaces where musical notes are written. Count from bottom to top: the higher a note sits, the higher its pitch. The clef at the start tells you which note each line represents.

Published Updated Facts checked against 4 sources9 min read
A woman writes with a pencil in a staff paper notebook on a wooden desk, with a metronome beside her
In this article
  1. At a glance
  2. What is a staff, and what are its parts?
  3. How are notes placed on lines and in spaces?
  4. What does the clef on a staff do?
  5. Ledger lines: when a note goes beyond the staff
  6. Where did the staff come from, and why does it have five lines?
  7. How do you read a staff, step by step?
  8. Common beginner mistakes
  9. Learning to read with a teacher
  10. Frequently asked questions
  11. Sources
  12. About the author

At a glance

  • The staff has 5 lines and 4 spaces, always counted from bottom to top: the first line is the bottom one.
  • Each note sits on a line or in a space. Moving from a line to the next space moves up one scale step, for example from E to F.
  • The clef at the start names a reference line: in treble clef, line 2 is G; in bass clef, line 4 is F.
  • When a note goes beyond the staff, short ledger lines are added above or below it.
  • The staff tells you which pitch sounds, and the note's shape tells you how long it lasts.

You open sheet music and see rows of lines with dots on them. Those lines form the staff, and understanding them is the first step toward reading music without guessing.

Here's a guide to its parts, counting lines and spaces, what clefs do, when ledger lines appear, its origins, and how to practice. If you'd prefer guidance, music theory and sight-singing lessons start right here.

What is a staff, and what are its parts?

The word used for staff in Spanish, "pentagrama," comes from Greek: "penta" means five and "gramma" means line. The staff is a simple set of five evenly spaced lines that holds everything else: the clef, notes, rests, and bar lines.

Parts of a music staff
PartWhat it isHow many
LinesHorizontal, parallel lines spaced evenly apart5
SpacesGaps between two lines4
ClefSymbol at the beginning that names one of the linesOne per staff
Ledger linesShort lines outside the staff for very high or low notesAs many as needed
Bar linesVertical lines that divide the music into measuresOne at the end of each measure

Lines and spaces are numbered from bottom to top. The lowest line is the first, and the highest is the fifth. The same applies to spaces: the first space is between the first and second lines.

How are notes placed on lines and in spaces?

A note has an oval notehead that sits in one of two places: centered on a line or inside a space. There are no other positions. The whole system follows this alternating pattern.

  • Higher on the staff, higher in pitch. If one note is above another, the higher one sounds higher.
  • Line, space, line, space. Consecutive notes in a scale occupy consecutive positions: if E is on a line, F is in the space above it, G is on the next line, and so on.
  • Each step is one scale degree. Moving from a line to an adjacent space takes you to the next note in the sequence C, D, E, F, G, A, B. The exact size of that step (a whole step or half step) depends on the scale; we explain this in what a half step means in music.
  • Accidentals change the pitch, not its position. A sharp or flat raises or lowers a note by a half step without moving it from its line or space.

The key to fluent reading is to stop counting notes one by one. Over time, you recognize patterns: three notes on consecutive lines, a note hanging below the staff, or one sitting above it. Short daily practice sessions build that visual recognition.

What does the clef on a staff do?

The five lines alone do not tell you which note is which. That is the job of the clef, a symbol placed at the beginning of each staff that names one line. You read the others from that reference point. The treble clef, for example, curls around the second line and identifies it as G.

The most common clefs and their line and space notes (from bottom to top)
ClefReference lineLinesSpacesTypically used by
Treble clef2nd line: GE, G, B, D, FF, A, C, EHigh voices, violin, flute, piano right hand, guitar
Bass clef (F clef on the fourth line)4th line: FG, B, D, F, AA, C, E, GPiano left hand, bass, cello, trombone
Alto clef (C clef on the third line)3rd line: middle CF, A, C, E, GG, B, D, FViola

Treble clef is the most widely used clef today, followed by bass clef for lower instruments. Each has its own complete guide: treble clef: how to read the notes and how to read bass clef.

The key point is that the same position on the staff represents different notes depending on the clef. The third line is B in treble clef, D in bass clef, and C in alto clef. That is why the clef is the first thing to check when you open a score.

Ledger lines: when a note goes beyond the staff

Five lines are not enough to write every possible pitch. When a note falls above the fifth line or below the first, you add ledger lines: short lines about the width of the notehead that continue the pattern of lines and spaces outside the staff.

  • In treble clef, middle C is written on a ledger line below the staff.
  • In bass clef, that same middle C is written on a ledger line above the staff.
  • Ledger lines are counted just like regular lines: line, space, line. Follow the note sequence upward or downward.

Composers choose clefs that keep each instrument's music close to the staff and minimize ledger lines. If a passage would need too many, they change clefs or use an octave marking (8va or 8vb), which tells you to play an octave higher or lower than written.

The piano handles this by joining two staves, one in treble clef and one in bass clef, to form the grand staff. You can find an explanation in the guide to reading sheet music from scratch.

Where did the staff come from, and why does it have five lines?

The four-line staff, called a tetragram, is attributed to Guido de Arezzo around the late X and early XI centuries. It was used to write church chant and still appears in some Gregorian chant books.

A fifth line appeared in some XIII-century manuscripts, but took centuries to become widespread. Today, it is standard for almost all written music.

Sourced figure

XV century

Some XIII-century manuscripts already used a fifth line, but the five-line staff did not become established until the XV century.

Source: Wikipedia: musical staff

How do you read a staff, step by step?

  1. Check the clef. Without it, you cannot tell which note is which.
  2. Find the reference note. In treble clef, it is the second line (G); in bass clef, it is the fourth line (F).
  3. Count from the reference, not from the bottom. If a note is in the space just above the G line, it is A.
  4. Look at the note value. Its shape tells you how long it lasts; we cover this in note values and rests.
  5. Check the time signature and accidentals. The numbers at the beginning organize the beats, and sharps or flats change the pitch of certain notes.

Following this order takes the guesswork out of reading. Start with short melodies containing just a few notes in a row, and say them aloud (C, D, E) before playing. Five minutes a day is especially valuable practice if you play piano, guitar, or any melodic instrument.

Common beginner mistakes

  • Counting from the top. Everything is numbered from bottom to top; the first line is the lowest.
  • Confusing lines and spaces. A note centered on a line and a note between two lines are different notes. Look at where the center of the notehead sits.
  • Forgetting the clef. The same pattern represents different notes if the clef changes midway through a piece.
  • Always reading from C. Learn the positions instead of reciting the musical alphabet from the beginning every time.
  • Skipping ledger lines. They are tricky at first, so practice them separately with individual notes above and below the staff.

Learning to read with a teacher

Reading the staff becomes automatic through guided repetition. A teacher gives you immediate feedback, chooses exercises at your level, and helps you progress from the staff to note values, time signatures, and scales without gaps. If you want to take more time with the vocabulary, the music glossary defines the terms used here.

Frequently asked questions

How many lines and spaces does a music staff have?

It has five lines with four spaces between them. They are counted from bottom to top: the first line is the lowest and the fifth is the highest.

What does the Spanish word pentagrama mean?

It comes from Greek: penta means five and gramma means line. It is the set of five parallel, evenly spaced lines where notes are written. In English, it is called a staff.

What is the difference between a staff and a score?

A staff is a group of five lines on which notes are written. A score is the complete document, with one or more staves, clefs, time signatures, notes, rests, and performance markings.

What are ledger lines?

They are short lines drawn above or below the staff when a note falls outside its five lines. They continue the same pattern of lines and spaces and are counted just like the lines on the staff.

Do all instruments read music on a staff?

Most do, although they do not all use the same clef. Guitar and bass also use tablature, which shows which fret to place each finger on. Some unpitched percussion instruments use a single-line staff.

What is the difference between a line and a space on the staff?

On a line, the line passes through the notehead; in a space, the note sits between two lines without touching them. Lines and spaces alternate, and each represents a different note in the scale.

Sources

We checked the facts in this article against these sources on November 8, 2026.

  1. Wikipedia: Staff (music), lines, spaces, clefs, and ledger lines
  2. Wikipedia: Clef, treble, bass, and C clefs and their uses
  3. Wikipedia: Musical notation, staff, pitch, duration, and tablature
  4. Wikipedia: Time signature, how beats are organized between bar lines

About the editorial team

Author

Gisselle Torres

Bachelor of Music Education, Universidad Pedagógica Nacional · Music teacher with 6+ years teaching children, teens and adults

Gisselle Torres holds a degree in Music Education from the Universidad Pedagógica Nacional. She is a flutist and has taught music for more than 6 years. She teaches children, teens and adults at home and online, and writes these guides from what works in her lessons.

See Gisselle's profile and lessons

Fact check

Gissi editorial team

We check every figure and fact in each guide against published sources and update it when they change. Last review: November 8, 2026.

Ready to start your lessons?

Tell us what you want to learn and we'll recommend the right teacher, at home in Bogotá or online.

  • Teachers vetted for musicianship and teaching
  • At home in Bogotá or live online
  • For children, teens and adults