Why frets sit where they do
A fret works by shortening the vibrating string. Pitch is inversely proportional to speaking length, so to raise a note by a semitone you must reduce that length by the semitone ratio, 21/12 = 1.0594631. Turn that round: the remaining length after n frets is the scale length divided by 2n/12, and the distance from the nut to fret n is whatever is left over - L − L/2n/12.
Two consequences fall straight out. The twelfth fret is at exactly half the scale, because twelve semitones is an octave and an octave is a halving. The twenty-fourth is at exactly three quarters, because two octaves is a quartering. Those are the two measurements to check on any instrument or template: if the twelfth fret is not at half the nut-to-saddle distance, something is wrong before you look at anything else.
The other consequence is that the frets crowd together as they climb. Each gap is a fixed fraction - 5.6126% - of the length still remaining, and since that remaining length shrinks geometrically, so does the gap. On a 25.5-inch scale the gap into fret 1 is 1.43121 in and the gap into fret 13 is 0.71560 in, exactly half, because you have travelled one octave. The pattern is self-similar: any twelve consecutive frets span half of what the previous twelve did.
The formula, the rule of 18, and where compensation comes in
The direct form is the one to use for layout: compute each fret's distance from the nut independently, so that no error accumulates. Measure every slot from the nut face, not from the previous slot. A tenth of a millimetre of drift per fret, cumulated over twenty-two frets, is a badly intonated instrument; measured absolutely, each slot is only ever as wrong as one measurement.
The historic method was incremental and is worth understanding because you will meet it in old texts. Luthiers used the rule of 18: divide the remaining length to the bridge by 18 and place the next fret there. That is a rational approximation, and it is slightly wrong - the exact divisor is 1 / (1 − 2−1/12) = 17.8172. Using 18 puts every fret a little too close to the nut, and the error compounds: on a 25.5-inch scale the rule of 18 puts the twelfth fret at 12.657 in rather than 12.750. That is 0.093 in short of the halfway point, so the string left vibrating is 12.843 in instead of 12.750 and the octave plays 1200 x log2(12.750/12.843) = 12.5 cents flat. The better historic constant, 17.817, was in use well before equal temperament was universal.
Then there is compensation, which the fret formula deliberately ignores. Pressing a string to a fret stretches it slightly, and stretching raises tension and therefore pitch. The higher the action, the thicker the string, and the stiffer it is, the more it sharpens. The cure is to move the saddle back so the actual speaking length is a little longer than the theoretical scale, cancelling the sharpening. Compensation is therefore per-string: a plain treble string may need well under a millimetre while a wound low E needs several times that, which is why electric bridges have six adjustable saddles and acoustic saddles are cut at an angle. Set it with a strobe tuner by matching the fretted twelfth-fret note to the twelfth-fret harmonic, and expect to redo it after any change of gauge - the string tension calculator shows how much a gauge change alters the load.
Worked example: laying out a 25.5-inch fretboard
Take a standard 25.5-inch scale and place the first few frets, the octave and the twenty-fourth.
- The fret constant. 21/12 = 1.0594631, so 2−1/12 = 0.9438743 and 1 − 0.9438743 = 0.0561257. That fraction is the whole of the calculation.
- Fret 1. 25.5 x 0.0561257 = 1.43121 in, or 36.353 mm. Cross-check with the rule of 17.8172: 25.5 / 17.8172 = 1.43122 in. The two agree, as they must, since 17.8172 is 1/0.0561257.
- Fret 2. Speaking length is 25.5 / 22/12 = 25.5 / 1.1224620 = 22.71792 in, so the fret sits at 25.5 − 22.71792 = 2.78208 in. The gap from fret 1 is 2.78208 − 1.43121 = 1.35087 in, which is 0.0561257 x 24.06879 - the remaining length after fret 1.
- Fret 5. 2−5/12 = 0.7491535, so the speaking length is 19.10342 in and the fret is at 25.5 − 19.10342 = 6.39658 in.
- Fret 7. 2−7/12 = 0.6674199, giving a speaking length of 17.01921 in and a fret position of 8.48079 in.
- Fret 12. 2−1 = 0.5, so the speaking length is 12.75 in and the fret is at 12.75 in - exactly half, as an octave requires.
- Fret 24. 2−2 = 0.25, so the fret sits at 25.5 x 0.75 = 19.125 in, leaving 6.375 in of string.
- The saddle. With 0.060 in of compensation on the treble E, the saddle goes at 25.5 + 0.060 = 25.560 in from the nut. The bass E will need more; adjust it by ear against the twelfth-fret harmonic.
Check the self-similarity claim from the first section: the gap into fret 12 is 12.75000 − 11.99185 = 0.75815 in, and the gap into fret 24 is 19.12500 − 18.74592 = 0.37908 in - exactly half, one octave later.
Scale length, feel and how accurate you need to be
Scale length is a design decision with consequences well beyond the fret positions. A longer scale means higher tension at the same pitch and gauge - tension goes as the square of the length - so a 25.5-inch guitar feels tighter than a 24.75-inch one with the same strings, and its string spacing at the upper frets is more generous. It also has a slightly brighter attack, because a stiffer, more highly tensioned string supports its upper partials better. A shorter scale bends more easily and feels warmer.
On tolerance: fret slot position is the single most accuracy-critical measurement in a fretted instrument. An error of 0.010 in at the first fret on a 25.5-inch scale shortens the speaking length by that amount out of 24.069 in, which sharpens the note by 1200 x log2(24.069 / 24.059) = 0.72 cents. That is inaudible. The same 0.010 in error at fret 12, where the speaking length is 12.75 in, gives 1.36 cents; at fret 19, where it is 8.51 in, it gives 2.03 cents. Errors matter more the higher you go, which is why templates and slotting jigs are worth their cost and why measuring cumulatively is such a bad idea.
Beyond about five cents an error becomes noticeable against another instrument, and the cents and interval calculator converts any length error into cents directly. Note too that a fretted instrument is locked to equal temperament by its geometry: a straight fret gives every string the same ratio, so pure thirds are not available anywhere on the neck. That is the trade the design makes, and it is why some builders experiment with wavy or true-temperament frets.
One more practical figure: the nut is a special case. A string is stiffer near its termination and the nut usually sits slightly high, so many builders shorten the nut-to-first-fret distance by a few thousandths - nut compensation - to stop first-position chords playing sharp. This calculator gives the theoretical positions; nut compensation is a deliberate departure from them.
Fret positions for common scale lengths
| Fret | 24.75 in | 25.5 in | 650 mm (25.591 in) | 34 in bass |
|---|---|---|---|---|
| 1 | 1.3891 | 1.4312 | 1.4363 | 1.9083 |
| 2 | 2.7003 | 2.7821 | 2.7920 | 3.7094 |
| 3 | 3.9378 | 4.0571 | 4.0715 | 5.4095 |
| 4 | 5.1059 | 5.2606 | 5.2793 | 7.0142 |
| 5 | 6.2084 | 6.3966 | 6.4193 | 8.5288 |
| 7 | 8.2314 | 8.4808 | 8.5109 | 11.3077 |
| 9 | 10.0336 | 10.3376 | 10.3743 | 13.7835 |
| 12 | 12.3750 | 12.7500 | 12.7953 | 17.0000 |
| 15 | 14.3439 | 14.7786 | 14.8310 | 19.7048 |
| 17 | 15.4792 | 15.9483 | 16.0049 | 21.2644 |
| 19 | 16.4907 | 16.9904 | 17.0507 | 22.6539 |
| 22 | 17.8048 | 18.3443 | 18.4094 | 24.4591 |
| 24 | 18.5625 | 19.1250 | 19.1929 | 25.5000 |
Every column is the same set of fractions scaled: fret 12 is always half the scale and fret 24 always three quarters, so any position can be converted between scales by multiplying by the ratio of the lengths. None of these figures includes saddle compensation.
Pitfalls in layout
- Measuring each fret from the previous one. Errors accumulate. Measure every slot from the nut face so no error is ever compounded.
- Using the rule of 18 instead of 17.8172. It puts the twelfth fret 0.093 in short on a 25.5-inch scale, which makes the octave about 12.5 cents flat.
- Confusing scale length with nut-to-bridge distance. Scale length is nut to theoretical saddle; the real saddle is further back by the compensation, and on an acoustic it is also angled.
- Forgetting that the slot has width. The calculated position is the fret's centre, so a saw kerf must be centred on it rather than started at it.
- Ignoring fingerboard taper on a fanned board. Fret slot ends must be laid out on the actual board edges, which converge; the offsets from this calculator are along each scale line.
- Neglecting nut compensation. The theoretical nut position makes first-position chords play slightly sharp on many instruments, which some builders correct by shortening the nut end by a few thousandths.
- Assuming compensation is one number. It varies per string with gauge, action and stiffness, which is why bridges have individual saddles.
Multi-scale boards and the limits of straight frets
A fanned-fret or multi-scale instrument gives each string its own scale length, longer on the bass side and shorter on the treble. The reason is tension: tension scales as the square of the length, so a low string on a longer scale can carry a usable tension at a sane gauge, while the treble strings keep the easier bending of a shorter scale. On a seven- or eight-string instrument tuned down to B or F sharp, that difference is what separates a playable low string from a floppy one.
Geometrically it is two ordinary layouts side by side. Each side gets its own L and its own set of positions; the two are then slid along each other until one chosen fret - the perpendicular fret - lines up square to the strings. Frets below it slant one way and frets above it slant the other, which keeps the maximum angle at the hand small. Choosing a low perpendicular fret puts more slant in the upper register; choosing fret 7 or 8 is a common compromise, and putting it at the nut makes every fret slant in the same direction. The offsets this calculator reports are measured along each scale line, so the fingerboard taper still has to be applied when marking the board edges.
Even a perfect layout is only as good as the temperament it implements. Straight frets impose one ratio on every string, so a fretted instrument is equal-tempered by construction, with the errors the cents and interval calculator tabulates - thirds 13.7 cents wide, fifths 2 cents narrow. Builders have tried to do better with curved frets, per-string offsets and split frets; the results improve some chords and worsen others, because there is no fret geometry that makes every key pure. The natural harmonics remain the exception: touching the string at 1/2, 1/3 or 1/4 of its length gives the pure ratios of the harmonic series, which is why a twelfth-fret harmonic is a better intonation reference than a fretted note.
Finally, the fret positions and the pitches they produce are two halves of the same system. The note to frequency calculator gives the frequency at each fret, and it is worth confirming that fret 12 really does double it - that is the check the whole layout rests on.
