DIY Instrument Fret Calculator

Place every fret with confidence. Enter your scale length and fret count, then print a template you can tape straight to the neck.

Version 1.0 · Updated 2026 · Offline-capable · No downloads needed

Your build

Measured from the nut contact point to the saddle contact point.

Typical values: 0.3 to 0.8 mm for the nut, 1.5 to 3.5 mm for the bridge.

Presets

Results

Fill in your scale length and fret count, then press Calculate.

All numbers appear from the nut unless you turn on compensation.

Fretboard preview

A scaled preview of your fretboard. The longest fret is closest to the nut. Use this to visualize spacing before you cut.

How the math works

Each fret divides the remaining vibrating length of the string by the twelfth root of two (about 1.059463). That ratio gives equal temperament, where every semitone is the same distance on a logarithmic scale. The formula for fret n is:

distance from nut = scaleLength * (1 - 2^(-n/12))

This calculator applies that formula for every fret you ask for. When compensation is turned on, it subtracts your nut offset from every distance and adds your bridge offset to the overall scale length. Multi-scale mode runs the same math twice, once for each side, so you can lay out fanned frets with two different scale lengths.

Compensation in practice

When you press a string down, you stretch it slightly. The note sharpens by a few cents unless the string is a tiny bit shorter at the saddle or a tiny bit longer at the nut. Most builders add 1.5 to 3 mm of bridge compensation and 0.3 to 0.8 mm of nut compensation. Heavy strings and high action need more. Start with the defaults here, then fine-tune by ear against a known-good guitar.

Multi-scale and fanned frets

Fanned-fret instruments use a longer scale on the bass side and a shorter scale on the treble side. Each fret is a straight line across the neck, but its distance from the nut is different on each side. The calculator shows both distances per fret, so you can mark each side of the neck separately.

Microtonal and zero-fret setups

If you are building a microtonal instrument, change the division count from 12 to whatever you need. The formula stays the same. For a zero-fret setup, treat the zero fret as your nut and measure every other fret from it. Most builders set the zero fret at the same position a nut would sit, then use this calculator for frets 1 and up.

Instrument presets

InstrumentScale lengthFrets
Fender-style guitar647.7 mm (25.5 in)21 or 22
Gibson-style guitar628.7 mm (24.75 in)22
Precision bass863.8 mm (34 in)20
Concert ukulele350 mm (13.78 in)12 to 15
Mandolin329 mm (13 in)20
Cigar box guitar550 to 650 mm19 to 22
Appalachian dulcimer660 to 710 mm17 to 21 (diatonic)

Common mistakes and how to avoid them

When the numbers look wrong

If a calculated fret falls where you do not expect, check your units first. Mixing millimeters and inches is the most common cause of a neck that looks like it was designed for a different planet. Also double-check that you measured your scale length from the right points. Nut-to-saddle is what matters, not nut-to-last-fret or nut-to-bridge-plate.

Print the strip below at exactly 100 percent scale. Tape it to your neck, align the zero mark with the nut, and mark each fret line. If the printed strip does not match your ruler, adjust your printer scaling by the percentage difference and print again.