Why do guitar frets get closer together as you go up the neck?

Each fret has to raise the pitch by the same ratio, the twelfth root of two. Pitch goes up as the vibrating string gets shorter, so every fret removes the same fraction of what's left, about 5.6 percent. A fraction of a shrinking length is a shrinking gap, so the frets crowd together, and the 12th fret lands exactly halfway.

Fret 1: 1.91 in from the nut, 1.91 in past fret 0The string vibrates from the fret to the bridge: 32.1 in, 94.4% of the scale lengthnutbridgevibrating length 32.1 in: 116.5 Hz1.91 inGaps shrink by the same factor every fret, × 0.9439:fret 1: 1.91 in · fret 12: 1.01 in · fret 24: 0.505 inThe 12th fret sits at exactly half the scale (17 in): one octave.
Nut to this fret
1.91 in
Gap from the fret before
1.91 in
Note at this fret
117 Hz

Challenge: Find the fret that sits three quarters of the way from the nut to the bridge.

Fender-style electrics are 25.5 in, Gibson-style 24.75 in, a classical guitar 650 mm, a bass 34 in.
More settings

Play

Slide the fret up and watch the gaps shrink. Press "Climb to fret" to hear each step.

Challenge: Find the fret that sits three quarters of the way from the nut to the bridge. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

dn=L(1−2−n/12)d_n = L\left(1 - 2^{-n/12}\right)

A string's pitch is inversely proportional to its vibrating length. Each fret must raise the pitch by one equal semitone, a factor of 21/122^{1/12}, so it must leave 2−1/122^{-1/12} of the string vibrating. After nn frets that's 2−n/122^{-n/12} of the scale length, so

dn=L(1−2−n/12)d_n = L\left(1 - 2^{-n/12}\right)

Each gap is the same fraction of a shorter and shorter length, so the gaps shrink by 2−1/12≈0.9442^{-1/12} \approx 0.944 every fret. That's an exponential, and it's why the frets crowd together up the neck.

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. Each fret raises the pitch one equal step, a factor of 2^(1/12). Pitch is inversely proportional to the vibrating length\frac{f_n}{f_0} = 2^{1/12} = \frac{L}{L - d_n}
  2. So the string left vibrating isL - d_{1} = 34 \times 2^{-1/12} = 32.09\ \text{in}
  3. And the fret sits atd_{1} = 34\left(1 - 2^{-1/12}\right) = 1.908\ \text{in}
  4. The luthier’s shortcut: each gap is the remaining length ÷ 17.817\frac{34}{17.817} = 1.908\ \text{in}

Export

Export PDF

Set the scale length (switch to mm if you like) and slide the fret. The sound buttons climb the frets, compare the open string with your fret, and play the open-string octave.

  • Real necks are compensated: the bridge saddles sit a little past the scale length so fretted notes play in tune.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

dn=L(1−2−n/12)d_n = L\left(1 - 2^{-n/12}\right)
fnf0=2n/12=LL−dn\frac{f_n}{f_0} = 2^{n/12} = \frac{L}{L - d_n}
gapn=L−dn−117.817\text{gap}_n = \frac{L - d_{n-1}}{17.817}
SymbolMeaningUnit
LLscale length, nut to bridgein
nnfret number
dnd_nnut to fret nin
  • The 12th fret is at half the scale length, and the 24th at three quarters. Each octave halves what's left.
  • Every gap is 0.9439 times the one before it. Multiplying by the same number each step is an exponential.
  • Real guitars set the saddle a little past the scale length to make up for the string stretching when you press it.

Print this card

Where it’s used

  • Mechanical
    Luthiers cut fret slots from a table of these positions, or with a rule-of-18 template.
  • Music
    Guitarists find harmonics at the 12th, 7th, and 5th frets, at 1/2, 1/3, and 1/4 of the string.
  • Hobbies & Crafts
    Builders of cigar-box guitars and ukuleles use the same formula for any scale length.

Questions people ask

Why is the 12th fret exactly halfway?

Twelve frets is one octave, which doubles the frequency. Doubling the frequency takes half the string length, so the 12th fret sits at the midpoint.

What is the rule of 18?

An old luthier's shortcut. Divide the remaining string length by about 18 (17.817 to be exact) to find the next fret. It works because each fret removes the same 5.6% of what's left.

Do longer scale lengths change the notes?

No. The frets keep the same ratios, so they just spread out. A longer scale holds more string tension at the same pitch, which is part of why a Fender-style neck feels snappier than a Gibson-style one.

Updated : First published.

See everything that’s new on Maps for Math