Frets divide a string so that each one raises the pitch by exactly one equal-tempered semitone. Because frequency is inversely proportional to the vibrating length, raising the pitch by a semitone (a factor of 2^(1/12) ≈ 1.059463) means shortening the string to 1/1.059463 ≈ 0.943874 of its length. Each fret therefore sits 5.61% of the remaining string length further along, and the frets get closer together towards the body.
The only input you need is the scale length, the distance from the nut to the saddle. Typical values are 25.5″ (648 mm) for Fender-style guitars, 24.75″ (629 mm) for Gibson-style guitars, 25.6″ (650 mm) for classical guitars, 34″ (864 mm) for electric basses and 13″–17″ for ukuleles. The twelfth fret is always exactly halfway, one octave above the open string.
Luthiers once used the “rule of 18” (divide the remaining length by 18 each time); the exact constant is 17.817, and the calculator uses the exact formula. Real instruments add a small saddle compensation, which does not change the fret positions.
How to use the Fret Calculator
- Scale length: Fender-style 25.5″, Gibson-style 24.75″, classical 650 mm, bass 34″.
- Number of frets
- Fret to look at
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
The distance of fret n is the scale length times (1 − 2^(−n/12)). The calculator lists all frets up to the number you choose in millimetres and inches, the spacing to the previous fret and the remaining length to the bridge, and draws the fretboard with the selected fret highlighted.
Worked example
For a 25.5″ (647.7 mm) scale: fret 1 is at 25.5 × (1 − 0.943874) = 1.4312″ (36.35 mm), fret 5 at 6.3966″ (162.47 mm), fret 7 at 8.4808″ (215.41 mm) and fret 12 at exactly 12.75″ (323.85 mm). Fret 22 sits 18.3443″ (465.95 mm) from the nut. The 12th fret is 0.7582″ (19.26 mm) from the 11th.
Common scale lengths
| Instrument | Scale length |
|---|---|
| Fender Stratocaster / Telecaster | 25.5″ (647.7 mm) |
| Gibson Les Paul / SG | 24.75″ (628.7 mm) |
| PRS (most models) | 25″ (635 mm) |
| Classical guitar | 650 mm (25.6″) |
| Electric bass | 34″ (863.6 mm) |
| Short-scale bass | 30″ (762 mm) |
| Baritone guitar | 27″–30″ |
| Concert ukulele | 15″ (381 mm) |
| Mandolin | 13.875″ (352 mm) |
Formula
Distance from nut to fret n = L × (1 − 2^(−n/12)) = L × (1 − 0.943874ⁿ)
Spacing between frets n − 1 and n = L × 2^(−n/12) × (2¹/12) − 1)
Fret 12 = L ÷ 2
Worked example
Inputs: Scale length: 25.5 in; Number of frets: 22; Fret to look at: 12.
Results: Distance from nut to selected fret = 0.3238; Spacing from the previous fret = 0.0193; Selected fret to bridge (saddle) = 0.3238; 12th fret (half the scale length) = 0.3238; Nut to last fret = 0.4659; Semitone length ratio 2^(1/12) = 1.059463.
Key terms
- Scale length
- Vibrating length of an open string, nut to saddle.
- Nut
- The slotted piece at the headstock end of the fretboard.
- Saddle
- The string support on the bridge; its position sets the scale length.
- Equal temperament
- Tuning in which every semitone has the same frequency ratio, 2^(1/12).
- Compensation
- Moving the saddle slightly back to correct intonation.
Frequently asked questions
Where is the 1st fret on a 25.5-inch scale?
25.5 × (1 − 2^(−1/12)) = 1.4312″ (36.35 mm) from the nut.
Where is the 12th fret?
Exactly at half the scale length: 12.75″ on a 25.5″ guitar, 325 mm on a 650 mm classical.
What is the rule of 18?
An old approximation: each fret is 1/18 of the remaining length from the previous one. The exact divisor is 17.817; using 18 puts the 12th fret about 0.7% too close to the nut.
How far apart are the 1st and 2nd frets?
On a 25.5″ scale, 1.3509″ (34.31 mm). Spacing shrinks by 5.6% from fret to fret.
Does string gauge change fret positions?
No. Fret positions depend only on scale length; the saddle is set slightly back (compensation) to correct intonation for string stiffness and fretting stretch.
What scale length is a bass guitar?
Usually 34″ (864 mm); short-scale basses are 30″, extra-long 35″.
Can I use the calculator for a fanned-fret guitar?
Yes. Run it once for the bass-side and once for the treble-side scale length and join matching frets.