Fret Distance Calculator
- Each fret divides the remaining string by the twelfth root of 2: distance from the nut = L x (1 - 2^(-n/12)) = 25.5 x (1 - 2^(-12/12)).
- 2^(-12/12) = 0.5000, so the fret sits at 25.5 x 0.5000 = 12.75 inches from the nut.
- The gap from the previous fret is 12.75 - 11.99 = 0.76 inches - gaps shrink by about 5.6% each fret, which is the old luthier's rule of 18 in logarithmic form.
- Sanity check: fret 12 must fall at exactly half the scale (12.75 in here) - the formula gives that automatically because 2^(-12/12) = 0.5.
This fret distance calculator tells you exactly where each fret belongs on a guitar neck. Enter a scale length and a fret number, and it returns the distance from the nut to that fret, so you can mark a fretboard, check an existing instrument, or plan a build without guesswork. The method is the twelfth root of 2: distance from the nut = L x (1 - 2^(-n/12)), where L is the scale length and n is the fret number. The results match what players and builders expect. On a 25.5 in scale, the 1st fret sits 1.43 in from the nut, and the 12th fret lands at exactly half the scale, 12.75 in, because 2^(-12/12) = 0.5, the octave. On a 24.75 in scale, the 22nd fret sits 17.80 in from the nut and 6.95 in from the bridge.
This is the accepted standard for fret placement because it follows the physics of pitch: each semitone is a frequency ratio of 2^(1/12), and the string length must divide in the same proportion. The gaps shrink accordingly, by about 5.6% per fret. On the 25.5 in scale the gap into the 12th fret is 0.76 in, while near the nut the first gap is the full 1.43 in. The formula is also the exact version of the luthier's historical rule of 18, which approximated the constant 17.817. This page shows the formula, step-by-step workings, worked examples and sources, so you can verify every number rather than trust a black box.
Worked examples
25.5 in scale, 12th fret
Distance from nut = 12.75 in. Distance from bridge: 12.75 in; Gap from previous fret: 0.76 in; Distance from nut: 323.8 mm. (25.5 in · 12)
| Distance from nut | 12.75 in |
| Distance from bridge | 12.75 in |
| Gap from previous fret | 0.76 in |
| Distance from nut | 323.8 mm |
25.5 in scale, 1st fret
Distance from nut = 1.43 in. Distance from bridge: 24.07 in; Gap from previous fret: 1.43 in; Distance from nut: 36.4 mm. (25.5 in · 1)
| Distance from nut | 1.43 in |
| Distance from bridge | 24.07 in |
| Gap from previous fret | 1.43 in |
| Distance from nut | 36.4 mm |
24.75 in scale, 22nd fret
Distance from nut = 17.80 in. Distance from bridge: 6.95 in; Gap from previous fret: 0.41 in; Distance from nut: 452.2 mm. (24.75 in · 22)
| Distance from nut | 17.80 in |
| Distance from bridge | 6.95 in |
| Gap from previous fret | 0.41 in |
| Distance from nut | 452.2 mm |
The twelfth root of 2 on a fretboard
A fretboard looks like a simple ladder of evenly spaced frets, but it is not. The spacing is geometric: every fret multiplies the length of string still vibrating by the same factor, 2^(-1/12). That factor is the twelfth root of 2, the number that, multiplied by itself twelve times, gives exactly 2. Because each semitone shrinks the remaining string by that same ratio, the frets crowd together as they move toward the bridge. A fret distance calculator applies this ratio directly, which is why its output is exact rather than an estimate.
The governing formula is distance from the nut = L x (1 - 2^(-n/12)), where L is the scale length and n is the fret number. On a 25.5 in scale, the 12th fret lands at exactly half the scale, 12.75 in, because 2^(-12/12) equals 0.5, the octave. The same formula places the 1st fret on a 25.5 in scale 1.43 in from the nut. On a shorter 24.75 in scale, the 22nd fret sits 17.80 in from the nut and 6.95 in from the bridge. Each result comes from one multiplication, not from a table of memorized offsets.
The shrinking gaps are the visible signature of the twelfth root of 2. Fret-to-fret gaps shrink by about 5.6% per fret. On the 25.5 in scale, the gap into the 12th fret is 0.76 in, while near the nut the first gap is the full 1.43 in. An arithmetic ladder would keep every gap at 1.43 in and run out of room long before the octave; the geometric ladder halves the string at fret 12 and keeps dividing from there. This is why the upper frets of any guitar are noticeably closer together than the lower ones.
The formula is the exact version of the luthier's historical rule of 18, which approximated the constant 17.817. That old rule divided the remaining string length by roughly 18 to place each successive fret, and it worked well enough for generations of builders. The twelfth-root form replaces the approximation with the true ratio, so the octave lands precisely at half the scale instead of drifting slightly sharp or flat. A fret distance calculator built on this formula gives the same answer a careful builder would get from the exact math, with no rounding shortcuts.
Working a full scale
A 25.5 in scale is a good place to see the formula do its work, because every number on that neck can be checked against one equation. The distance from the nut to any fret is L × (1 − 2^(−n/12)), where L is the scale length and n is the fret number. Run that for n = 1 and L = 25.5, and the 1st fret sits 1.43 in from the nut. That first gap is the widest one on the board.
The 12th fret is the cleanest checkpoint. Because 2^(−12/12) = 0.5, the expression collapses to L × 0.5, so the octave fret lands at exactly half the scale — 12.75 in on a 25.5 in neck. No rounding, no luthier's judgment, just the half point. If you want to sanity-check a fret distance calculator, this is the number to test first: any tool that does not return 12.75 in for the 12th fret on a 25.5 in scale has a problem somewhere in its math.
Between those two anchors, the gaps shrink steadily. Each successive fret-to-fret space is about 5.6% shorter than the one before it, which is what the twelfth root of 2 produces when you work it fret by fret. Near the nut the first gap is the full 1.43 in. By the time you reach the octave, the gap into the 12th fret is 0.76 in — roughly half the opening gap, matching the halving of the remaining string length at the octave. The same shrinkage continues up the board, which is why fret spacing looks so cramped near the body and so open near the headstock.
The formula is also the exact form of the luthier's historical rule of 18, which approximated the constant as 17.817. The rule of 18 was a working shortcut; the twelfth-root expression is the precise version, and it is what a fret distance calculator uses to place every fret on the board. The same equation scales to other instruments without adjustment — the 22nd fret on a 24.75 in scale sits 17.80 in from the nut and 6.95 in from the bridge, and both figures drop out of the identical calculation.
From nut measurements to bridge measurements
A fret distance calculator usually starts at the nut, but the numbers that matter for cutting slots are two-sided. Every fret has a distance from the nut and a complementary distance from the bridge, and the two must add up to the scale length. On a 24.75 in scale, the 22nd fret sits 17.80 in from the nut and 6.95 in from the bridge. Add those together and you get 24.75 in, exactly the scale. That is not a coincidence — it is the arithmetic of the twelfth root of 2 working in both directions.
The reason builders measure from both ends is error control. A slotting template marked only from the nut accumulates any small mistake as you move down the board. By the time you reach the high frets, a tiny slip near the nut can put a slot a visible amount off. Measuring the same fret from the bridge gives you an independent check: if the nut-side mark and the bridge-side mark agree, the slot is almost certainly right. If they disagree, you have caught a problem before the saw goes in.
The octave is the natural place to anchor that check. The 12th fret always lands at exactly half the scale — 12.75 in on a 25.5 in scale — because 2^(-12/12) = 0.5, the octave. That symmetry makes the 12th fret the easiest reference point on the board. Set your nut-side measurement and your bridge-side measurement, and both should meet at the midpoint. From there, work outward in both directions and keep cross-checking as you go.
The numbers also show why the two ends behave so differently. The 1st fret on a 25.5 in scale sits 1.43 in from the nut, while the gap into the 12th fret is only 0.76 in. Fret-to-fret gaps shrink by about 5.6% per fret, so the low frets are spread wide and the high frets crowd together. Near the bridge, that crowding means a small measuring error covers more than one fret's worth of space. Reading the bridge-side number as a confirmation, rather than as your only source, keeps the crowded end of the board honest.
The underlying positions come from distance from the nut = L x (1 - 2^(-n/12)) for scale length L and fret n. This is the exact version of the luthier's historical rule of 18, which approximated the constant 17.817. Because the formula is exact, the nut distance and the bridge distance are not separate calculations — they are the same calculation viewed from opposite ends. A fret distance calculator that reports both gives you a built-in cross-check for every slot on your template.
The rule of 18 and its error
Before the exact math was widely used, many builders worked with the rule of 18: divide the remaining string length by 18 to place each fret. It was a practical shortcut, and it is close to correct, because the true divisor is about 17.817. The modern fret distance calculator uses the exact exponential relationship instead, where the distance from the nut equals L × (1 - 2^(-n/12)) for scale length L and fret number n. The rule of 18 is simply an approximation of that constant, and the difference between 18 and 17.817 is where the trouble starts.
At the nut and low frets, the error is small enough to ignore. Take a 25.5 in scale: the first fret sits 1.43 in from the nut, and the gap into the 12th fret is 0.76 in, while near the nut the first gap is the full 1.43 in. Fret-to-fret gaps shrink by about 5.6% per fret, so each successive gap is a little smaller than the last. The rule of 18 gets the early positions close, which is why it survived for so long in hand-built instruments. But a small percentage error does not stay small when it is applied repeatedly.
The compounding is the real problem. Each fret position is built from the last, so a slight error in the divisor is carried forward and multiplied up the neck. Because the gaps are shrinking, the later frets are the most sensitive to a wrong constant. The exact formula does not drift this way. The 12th fret always lands at exactly half the scale — 12.75 in on a 25.5 in scale — because 2^(-12/12) = 0.5, the octave. That anchor is a mathematical certainty, not an approximation, and any method that misses it by even a little will put the upper register out of tune.
This is why CNC templates and modern fret slotting use the exact exponential rather than the rule of 18. A computer-controlled cutter can hold the 17.817 constant precisely, and the resulting slots stay consistent from the first fret to the last. The same exactness shows up in the published reference points: the 22nd fret on a 24.75 in scale sits 17.80 in from the nut and 6.95 in from the bridge. Those numbers come from the true formula, not the shortcut. For a builder or a player checking an instrument, the rule of 18 is a useful piece of history, but the exact exponential is what keeps every fret in its place.
FAQs
Where is the 12th fret on a 25.5 inch scale?
The 12th fret sits at exactly 12.75 in from the nut on a 25.5 in scale. That is half the scale length, and it is always half regardless of scale, because the octave halves the vibrating string. Fretting at the 12th fret leaves half the string length, producing a pitch one octave above the open string.
How far is the first fret from the nut?
On a 25.5 in scale, the first fret is 1.43 in from the nut. The formula is L x (1 - 2^(-1/12)), where 2^(-1/12) is about 0.9439. In other words, the first fret removes roughly 5.6% of the open string length, leaving about 94.39% of the string free to vibrate.
Why do frets get closer together?
Each fret removes the same fraction of the remaining string, about 5.6%, so the gaps shrink geometrically as you move up the neck. The first gap is 1.43 in at the nut, but by the time you approach the 12th fret the spacing has fallen to 0.76 in. Every fret multiplies the remaining length by the same constant.
What is the rule of 18?
The rule of 18 is the historical luthier approximation: place each fret 1/18 of the remaining string from the previous one. It approximates the exact constant of 17.817. Because 18 is slightly larger than 17.817, the rule drifts slightly sharp as you go up the neck, so modern calculators use the exact constant instead.
Can I measure frets from the bridge instead?
Yes. The remaining string length from any fret to the bridge is L x 2^(-n/12), where n is the fret number. For example, the 22nd fret on a 24.75 in scale leaves 6.95 in of string between the fret and the bridge. Measuring from the bridge is a useful check on nut-side measurements.
Does this work for bass and ukulele scales?
Yes. The formula depends only on scale length and fret number, so it applies across instruments. It works from a 17 in ukulele scale up to a 35 in bass scale. Enter the scale length and fret number, and the same calculation returns the fret position and the remaining string length.