Free Fret Calculator

Shows positions for frets 1–27

Enter a scale length to see fret positions

Overview

This fret position calculator is a free online tool built for DIY luthiers who need accurate guitar fret spacing, ukulele fret positions, or any fretted‑instrument layout based on the Western chromatic scale. Whether you are constructing a solid‑body electric guitar, a classical acoustic, a banjo, or a custom bass, simply enter your desired scale length and the calculator instantly returns the exact distance from the nut to each fret — up to the 24th fret or more. No manual algebra or reference tables required.

Understanding Frets and Their Spacing

Frets are thin metal bars inserted into the fingerboard. When a string is pressed behind a fret, its effective vibrating length is shortened, raising the pitch. For an instrument to play in tune at every position, the frets must be spaced according to a precise mathematical pattern. This pattern has its roots in the work of Pythagoras and was later standardized through the adoption of twelve‑tone equal temperament (12‑TET), which is now the universal tuning system for most Western music.

Mathematics Behind Fret Placement

The fret spacing formula combines three fundamental relationships: the Pythagorean frequency ratio, the octave‑doubling property of the chromatic scale, and the inverse law connecting string length to frequency.

1. The Constant Frequency Ratio

Pythagoras postulated that the frequencies of two adjacent notes should share a constant ratio, denoted here as cc. If f0f_0 is the open‑string frequency and fnf_n is the frequency when the string is pressed at the nn-th fret, then:

fn=cn⋅f0(1)f_n = c^n \cdot f_0 \tag{1}

2. Determining cc from the Octave

In the 12‑TET system, an octave consists of 12 equally spaced semitones, and the frequency exactly doubles after 12 steps: f12=2f0f_{12} = 2 f_0. Substituting into equation (1):

2f0=c12⋅f0  ⟹  c=21/122 f_0 = c^{12} \cdot f_0 \;\Longrightarrow\; c = 2^{1/12}

Evaluating the root gives c≈1.0594630943593c \approx 1.0594630943593, commonly rounded to 1.0594631.059463. This constant is the foundation of any fret placement calculator.

3. Physics of a Vibrating String

For an ideal string fixed at both ends, the fundamental frequency relates to its length by:

f=v2Lf = \frac{v}{2L}

where vv is the wave speed (dependent on tension and linear density). Applying this to the open string (length L0L_0) and to the nn-th fret (length LnL_n from fret to bridge):

f0=v2L0,fn=v2Ln(2)f_0 = \frac{v}{2L_0}, \quad f_n = \frac{v}{2L_n} \tag{2}

4. Fret Position Formula

Combine (1) and (2). Substitute fnf_n from (1) into the second expression of (2):

cn⋅v2L0=v2Lnc^n \cdot \frac{v}{2L_0} = \frac{v}{2L_n}

Cancel v2\frac{v}{2} from both sides:

cnL0=1Ln  ⟹  Ln=L0cn\frac{c^n}{L_0} = \frac{1}{L_n} \;\Longrightarrow\; L_n = \frac{L_0}{c^n}

LnL_n is the distance from the nn-th fret to the bridge. For practical lutherie, measurements are usually taken from the nut. The nut‑to‑fret distance is:

dn=L0−Ln=L0−L0cn=L0(1−1cn)=L0(1−(0.9438743)n)d_n = L_0 - L_n = L_0 - \frac{L_0}{c^n} = L_0 \left(1 - \frac{1}{c^n}\right) = L_0 \left(1 - (0.9438743)^n\right)

The constant 0.94387430.9438743 equals 1/c1/c. This single formula works for any fretted instrument that follows 12‑TET: guitars, ukuleles, mandolins, bouzoukis, or bass guitars.

Using the Fret Calculator

The tool is designed for simplicity and accuracy. Follow these steps:

  1. Measure or choose your scale length. The scale length is the distance from the nut to the bridge (or the saddle). Typical values:
    • Electric guitar: 25.5 in (648 mm) or 24.75 in (628 mm)
    • Acoustic guitar: 25.4 – 25.6 in (645 – 650 mm)
    • Ukulele soprano: ~13 in (330 mm); concert: ~15 in (380 mm); tenor: ~17 in (430 mm); baritone: ~19 in (480 mm)
    • Bass guitar: 34 in (864 mm) or 35 in (889 mm) You may also enter a custom value.
  2. Select the desired number of frets (typically 12, 22, or 24). The calculator will compute positions for each.
  3. Get instant results. Below is an example output for a 25.5 in guitar scale (frets 1–10):
FretDistance from Nut (in)
11.43
22.78
34.06
45.26
56.40
67.47
78.49
89.46
910.38
1011.26

For a 17 in tenor ukulele, the first ten fret positions are:

FretDistance from Nut (in)
10.95
21.85
32.71
43.51
54.27
64.98
75.66
86.31
96.92
107.50

All values are calculated using the exact formula dn=L0(1−2−n/12)d_n = L_0 (1 - 2^{-n/12}). You can switch between inches and centimeters in the calculator interface.

  1. Transfer the measurements. Mark each distance on your fretboard with a sharp pencil or knife, using a precision ruler or digital caliper. Double‑check the 12th‑fret position (which should be exactly half the scale length) as a sanity check.
  2. Install the frets. Cut slots at the marked positions, insert the fret wire, and trim.

Whether you need a quick ukulele fret calculator or a full guitar fret spacing guide for a multi‑scale instrument, this free online tool delivers reliable data in seconds. It gives DIY guitar fret positions with the same accuracy used by professional luthiers.

Additional Tips

  • Always measure from the nut toward the bridge; the distances are cumulative but the formula directly gives the nut‑to‑fret value.
  • For instruments with a compensated saddle, the scale length used in the calculator should be the nominal uncompensated length (usually the string length from the nut to the 12th fret times 2).
  • The calculator follows equal temperament; if you intend to use a different temperament (e.g., just intonation), the positions will differ.

FAQ

1. What formula does the fret position calculator use?

The calculator uses the equal‑temperament formula: distance from nut = scale length × (1 − 2^(−n/12)), where n is the fret number. This is equivalent to d_n = L_0 × (1 − (0.9438743)^n).

2. Can I use this calculator for a ukulele or a bass guitar?

Yes. The same formula applies to any fretted instrument that follows 12‑tone equal temperament, including ukuleles, bass guitars, mandolins, and banjos. Simply enter the instrument's scale length.

3. How do I measure the scale length correctly for my instrument?

The scale length is the distance from the nut to the bridge (or the saddle). For a compensated bridge, measure from the nut to the 12th fret and double that value; that is the nominal scale length you should enter.

4. Why are the fret distances not evenly spaced?

Fret distances follow a logarithmic pattern because each semitone requires the frequency to increase by the same factor (1.059463). As a result, the physical distance between frets becomes progressively smaller as you move toward the bridge.

How to Use

  1. Select your preferred measurement unit (mm, cm, m, in, or ft).
  2. Enter your instrument's scale length (the distance from the nut to the bridge).
  3. View the calculated fret positions from the nut for all 27 frets in your chosen unit.