Fret Spacing Calculator

About this calculator

Enter the scale length or the distance from the nut to the 12th fret. Get each fret-slot center from the same nut reference using twelve-tone equal temperament. The layout is for planning and gives theoretical coordinates.

Calculator inputs

Example layout: nominal 25.5 in source, millimeter view, 24 frets.

Calculate the example or use your measurements.

Controls are loading. Without JavaScript they remain disabled; the original methods and examples below stay readable.

Nominal fret layout inputs and actions

Entered source retained: 25.5 in. This is an exact derived view; editing its digits creates a new source.

Optional, at most 60 Unicode characters. Never included in numeric CSV, public links/images or native sharing.

Input syntax, datum and exact-source limits

Use a positive decimal with at most nine fractional places, a/b or whole a/b with one space. Direct tokens allow 48 characters and 18 digits per fraction component. No signs, exponents, commas, nested fractions or expressions. Units are separate. Derived nominal scale must be 1 to 10000 mm; a nut-to-12th measurement is half that value.

Calculated sources use a reduced positive fraction, up to 96 characters and 36 digits per component. Its reduced nominal-mm numerator and denominator each have at most 33 digits, keeping all exact unit/full-half equivalents supported. This is a representation policy, not a claim of insufficient arithmetic precision. No digits are truncated.

The origin is the nominal open-string endpoint at the nut reference; rows locate fret slot centers along one straight scale. Establish the appropriate datum for unusual nuts/zero frets. No compensation, kerf, saddle placement, safe-cutting or true-size printing is modeled.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What does nominal scale mean?

The nominal scale is the ideal open-string reference length used to place frets. The origin here is the nominal open-string endpoint at the nut reference, and each output is a fret-slot center measured along that straight scale line. A compensated saddle can sit beyond the nominal endpoint. This calculator does not determine bridge mounting, compensation, zero-fret placement or an unusual nut's correct physical datum.

How should the table be read?

Use From nut reference for each absolute coordinate. From previous fret is a separate gap for checking the geometry, with the first gap starting at the nut. Remaining length runs from that fret to the nominal endpoint. Do not add rounded gaps to lay out the next coordinate: their individual rounding can accumulate. The schematic is supplementary and is not calibrated to a physical print size.

What is the spacing formula?

For nominal scale L and fret n, remaining ideal length is L × 2-n/12. Position from the nut is L × (1 - 2-n/12). The gap from the preceding fret is L × 2-(n-1)/12 × (1 - 2-1/12). Twelve equal logarithmic semitones double ideal frequency and halve the remaining vibrating length. The implementation uses stable exp/expm1 calculations and exact rational octave identities rather than repeatedly dividing by a rounded 17.817.

For an original worked example, 25.5 in equals exactly 647.7 mm. Fret 12 is 323.85 mm from the nut, fret 24 is 485.775 mm, and fret 48 is 607.21875 mm. At 600 mm nominal scale, frets 12, 24, 36 and 48 are at 300, 450, 525 and 562.5 mm. The 48th remaining length is L/16, not L/48.

Can a 12th-fret measurement recover the scale?

In this ideal model, double the nut-reference-to-12th slot-center measurement. Entering 12.75 in in that basis gives a nominal 25.5 in scale while preserving the actual half-measurement as the source. Basis drafts are separate: switching to an unused basis does not reinterpret a full-scale entry as a half-scale measurement. Use exact equivalent measurement only when you want the calculator to derive the other measurement.

Why preserve exact source units?

An entered mixed fraction such as 25 1/2 in is the same physical scale as 25.5 in. View changes retain its original token and unit. One millimeter viewed as inches is exactly 5/127 in; a rounded decimal is never silently substituted as the new source. A derived view can be longer than a new-entry token. Only editing its digits creates a new source in the visible unit.

Source and unit algebra is exact rational arithmetic before the irrational geometry. Derived nominal scale must be 1 to 10000 mm, fret count 1 to 48. Direct entries use bounded decimals or fractions. Calculated sources additionally have a 33-digit reduced nominal-mm core policy, keeping every exact full/half and mm/cm/in equivalent within the supported 36-digit source components. This is a representation limit, not a claim about physical accuracy or BigInt precision.

How much does output rounding matter?

Millimeters display three decimal places; centimeters and inches display four. Those places are presentation precision, not a cutting tolerance. In the 647.7 mm, 48-fret example, adding three-place rounded gaps gives 607.217 mm, while rounding the independent last coordinate gives 607.219 mm. No last-gap adjustment hides that difference. Absolute coordinates remain authoritative. Exact octave relations can still require rounded finite displays when their source is a repeating fraction.

Copy, CSV, print and privacy

Copy table and print include the optional local layout label, exact source, basis, view and warnings. CSV always uses the button's declared millimeters, fixed numeric columns and filename fret-spacing.csv. It contains no label, raw source fraction or spreadsheet formula. Up to fifteen significant digits describe theoretical coordinates; CSV is not a CAD or cut file. A download request is not confirmation a file reached disk.

Public links require explicit consent and contain only active numeric source, basis, units, count and provenance. The local label and inactive draft are omitted from links, images and native sharing. Anyone with the link can read and recompute the layout. Native sharing is offered only where supported, with neutral cancellation. There is no autosave, account or automatic input transmission.

Model limits and sources

No compensated nut/saddle, multiscale layout, alternative temperament, kerf, fretwire fit, neck relief, action, string stiffness/stretch, acoustic quality or safe-cutting guarantee is modeled. A print diagram is explicitly not full size. Real physical setup and instrument-specific reference selection are outside this numerical layout.

Liutaio Mottola's modern fret-position method supplies the explicit root-two relationship and perfect-string premise. StewMac's layout guidance identifies slot centers and a common nut datum. UNSW's note-frequency derivation explains the octave ratio, and NIST's length reference states the exact 25.4 mm inch. Method reviewed November 8, 2026. This is an original fixed implementation and explanation, without copied calculator code, templates, brand presets or invented luthier credentials.

Frequently asked questions

Why is the 12th fret halfway?
Twelve equal semitones make an octave. In the ideal model, doubling frequency halves the remaining length, so the 12th slot center is L/2 from the nominal nut reference.
Can I print a full-size cutting template?
No. This tool prints a coordinate table and labeled schematic. Browser scaling is not calibrated physical output.
Does the CSV use my chosen view unit?
No. The download button explicitly says millimeters, matching the fixed numeric-mm schema. Copy table and print use your selected view.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.