A clef (from French: 'key') is a musical symbol used to indicate which notes are represented by the lines and spaces on a musical staff. Placing a clef on a staff assigns a particular pitch to one of the five lines or four spaces, which defines the pitches on the remaining lines and spaces.

The three clef symbols used in modern music notation are the G-clef, F-clef, and C-clef. Placing these clefs on a line fixes a reference note to that line—an F-clef fixes the F below middle C, a C-clef fixes middle C, and a G-clef fixes the G above middle C. In modern music notation, the G-clef is most frequently seen as treble clef (placing G4 on the second line of the staff), and the F-clef as bass clef (placing F3 on the fourth line). The C-clef is mostly encountered as alto clef (placing middle C on the third line) or tenor clef (middle C on the fourth line). A clef may be placed on a space instead of a line, but this is rare.

Clef

The use of different clefs makes it possible to write music for all instruments and voices, regardless of differences in range. Using different clefs for different instruments and voices allows each part to be written comfortably on a staff with a minimum of ledger lines. To this end, the G-clef is used for high parts, the C-clef for middle parts, and the F-clef for low parts. Transposing instruments can be an exception to this—the same clef is generally used for all instruments in a family, regardless of their sounding pitch. For example, even the low saxophones read in treble clef.

Clef

A symmetry exists surrounding middle C regarding the F-, C- and G-clefs. C-clef defines middle C whereas G-clef and F-clef define the note at the interval of a fifth above middle C and below middle C, respectively.

Clef

Two common mnemonics for learning the clef lines are: Good Boys Do Fine Always (bass clef) Every Good Boy Does Fine (treble clef){ { efn|It is perhaps also useful to note that, for the treble clef, the four spaces between the five clef lines spell out

Placement on the staff

Theoretically, any clef may be placed on any line. With five lines on the staff and three clefs, there are fifteen possibilities for clef placement. Six of these are redundant because they result in an identical assignment of the notes—for example, a G-clef on the third line yields the same note placement as a C-clef on the bottom line. Thus there are nine possible distinct clefs when limiting their placement to the lines. All have been used historically: the G-clef on the two bottom lines, the F-clef on the three top lines, and the C-clef on the four bottom lines. The C-clef on the topmost line has also been used, but is equivalent to the F-clef on the third line, giving a total of ten historically attested clefs placed on the lines. In addition, the C-clef has been used on the third space, i.e. not on a line at all.

The ten clefs placed on lines (two are equivalent) have different names based on the tessitura for which they is best suited.

In modern music, only four clefs are used regularly: treble clef, bass clef, alto clef, and tenor clef. Of these, the treble and bass clefs are by far the most common. The tenor clef is used for the upper register of several instruments that usually use bass clef (including cello, bassoon, and trombone), while the alto is most prominently used by the viola. Music for instruments and voices that transpose at the octave is generally written at the transposed pitch, but is sometimes seen written at concert pitch using an octave clef.

Individual clefs

This section shows a complete list of the clefs, along with a list of instruments and voice parts notated with them. A dagger (†) after the name of a clef indicates that the clef is no longer in common use.

G-clefs

Treble clef

The only G-clef still in use is the treble clef, with the G-clef placed on the second line. This is the most common clef in use and is generally the first clef learned by music students. For this reason, the terms "G-clef" and "treble clef" are often seen as synonymous. The treble clef was historically used to mark a treble, or pre-pubescent, voice part.