Free guitar fret spacing calculator for luthiers and DIY builders. Calculate exact fret positions based on scale length using equal temperament formula. Get professional measurements instantly.
Enter a value between 1 and 24
The guitar fret spacing calculator is an essential tool for luthiers, DIY guitar builders, and instrument designers who need to determine the precise placement of frets along a guitar neck. This free calculator uses equal-tempered tuning principles to calculate exact fret positions based on your instrument's scale length, ensuring accurate intonation and proper musical intervals across all frets.
Whether you're building a custom electric guitar, repairing a vintage acoustic, or experimenting with alternative scale lengths for unique tonal characteristics, accurate fret placement is crucial. Even a millimeter of error can result in intonation problems that make the instrument sound out of tune as you move up the neck. This calculator eliminates guesswork and provides professional-grade measurements for up to 24 frets.
The equal-tempered scale, standardized in Western music since the 18th century, divides the octave into 12 equal semitones. Each fret represents one semitone, and the distance between frets follows a precise mathematical relationship based on the twelfth root of two (approximately 1.059463). Understanding this relationship allows builders to create instruments with perfect intonation across the entire fretboard.
Follow these straightforward steps to calculate fret positions for your guitar:
Enter Scale Length - Input your desired scale length in either inches or millimeters. Common scale lengths include 25.5" (648mm) for Fender Stratocasters, 24.75" (628mm) for Gibson Les Pauls, and 25" (635mm) for PRS guitars.
Select Unit System - Choose between imperial (inches) or metric (millimeters) measurements based on your workshop tools and preferences.
Choose Number of Frets - Select how many frets you want to calculate, typically 22-24 for electric guitars or 20 for many acoustic guitars.
Calculate - Click the calculate button to instantly generate a complete fret position chart showing the distance from the nut to each fret position.
Review Results - The calculator displays each fret's distance from the nut (zero point) and the distance from the previous fret, making it easy to mark and verify measurements during construction.
Scale length is the vibrating length of the string, measured from the nut to the bridge saddle (technically to the point where the string contacts the saddle). This measurement represents the theoretical vibrating length used in fret calculations. For example:
The scale length you choose affects not only the physical placement of frets but also the instrument's overall feel, tone, and playability characteristics.
The foundation of modern fret placement is the equal-tempered scale, where each semitone has an equal frequency ratio. The frequency ratio between adjacent semitones is:
This value represents the twelfth root of two, meaning that 12 semitones (one octave) multiply together to exactly double the frequency.
The distance from the nut to the nth fret is calculated using:
Where:
This formula can also be expressed as:
Historically, luthiers used the Rule of 18 as an approximation:
Then each subsequent fret position is calculated by dividing the remaining distance by 18. While this rule provides reasonable accuracy for the first few frets, modern precision requires the exact equal-tempered formula for proper intonation across the entire neck.
The distance between fret n and fret n+1 is:
This shows that fret spacing decreases exponentially as you move up the neck, with each fret approximately 5.946% closer to the bridge than the previous fret.
Let's calculate the first five fret positions for a standard Stratocaster-style guitar with a 25.5-inch scale length:
Fret 1:
Fret 2:
Fret 3:
Fret 4:
Fret 5:
These measurements represent the distance from the nut to each fret position along the centerline of the fingerboard.
1// JavaScript implementation for guitar fret spacing
2function calculateFretPosition(scaleLength, fretNumber) {
3 // Equal temperament: each semitone has frequency ratio of 2^(1/12)
4 const twelfthRootOfTwo = Math.pow(2, 1/12);
5 // Distance from nut = scale_length * (1 - 1/ratio^fret_number)
6 const distanceFromNut = scaleLength * (1 - (1 / Math.pow(twelfthRootOfTwo, fretNumber)));
7 return distanceFromNut;
8}
9
10// Calculate all fret positions
11function calculateAllFrets(scaleLength, numberOfFrets, unit = 'inches') {
12 const frets = [];
13 for (let i = 1; i <= numberOfFrets; i++) {
14 const distance = calculateFretPosition(scaleLength, i);
15 const previousDistance = i > 1 ? calculateFretPosition(scaleLength, i - 1) : 0;
16 const spacing = distance - previousDistance;
17
18 frets.push({
19 fretNumber: i,
20 distanceFromNut: distance.toFixed(3),
21 spacing: spacing.toFixed(3),
22 unit: unit
23 });
24 }
25 return frets;
26}
27
28// Example usage
29const scaleLength = 25.5; // inches
30const fretData = calculateAllFrets(scaleLength, 24, 'inches');
31console.log(fretData);
321import math
2
3def calculate_fret_position(scale_length, fret_number):
4 """
5 Calculate the distance from nut to a specific fret.
6
7 Args:
8 scale_length: The scale length in any unit (inches or mm)
9 fret_number: The fret number (1-24)
10
11 Returns:
12 Distance from nut to the fret in same units as scale_length
13 """
14 twelfth_root_of_two = 2 ** (1/12)
15 distance = scale_length * (1 - (1 / (twelfth_root_of_two ** fret_number)))
16 return distance
17
18def generate_fret_chart(scale_length, num_frets=24, unit='inches'):
19 """Generate a complete fret spacing chart."""
20 print(f"Fret Spacing Chart for {scale_length}{unit} scale")
21 print(f"{'Fret':<6} {'From Nut':<12} {'Spacing':<12}")
22 print("-" * 30)
23
24 previous_distance = 0
25 for fret in range(1, num_frets + 1):
26 distance = calculate_fret_position(scale_length, fret)
27 spacing = distance - previous_distance
28 print(f"{fret:<6} {distance:<12.3f} {spacing:<12.3f}")
29 previous_distance = distance
30
31# Example usage
32generate_fret_chart(25.5, 24, 'inches')
331public class GuitarFretCalculator {
2 private static final double TWELFTH_ROOT_OF_TWO = Math.pow(2, 1.0/12.0);
3
4 /**
5 * Calculate the distance from nut to a specific fret.
6 * @param scaleLength The scale length in any unit
7 * @param fretNumber The fret number (1-24)
8 * @return Distance from nut to the fret
9 */
10 public static double calculateFretPosition(double scaleLength, int fretNumber) {
11 return scaleLength * (1 - (1 / Math.pow(TWELFTH_ROOT_OF_TWO, fretNumber)));
12 }
13
14 /**
15 * Generate a complete fret chart with all positions.
16 */
17 public static void generateFretChart(double scaleLength, int numFrets, String unit) {
18 System.out.printf("Fret Spacing Chart for %.2f%s scale%n", scaleLength, unit);
19 System.out.printf("%-6s %-12s %-12s%n", "Fret", "From Nut", "Spacing");
20 System.out.println("------------------------------");
21
22 double previousDistance = 0;
23 for (int fret = 1; fret <= numFrets; fret++) {
24 double distance = calculateFretPosition(scaleLength, fret);
25 double spacing = distance - previousDistance;
26 System.out.printf("%-6d %-12.3f %-12.3f%n", fret, distance, spacing);
27 previousDistance = distance;
28 }
29 }
30
31 public static void main(String[] args) {
32 generateFretChart(25.5, 24, "in");
33 }
34}
351' Excel VBA Function for Guitar Fret Spacing
2Function FretPosition(ScaleLength As Double, FretNumber As Integer) As Double
3 ' Calculate distance from nut to fret
4 Const TwelfthRootOfTwo As Double = 1.059463094359295
5 FretPosition = ScaleLength * (1 - (1 / (TwelfthRootOfTwo ^ FretNumber)))
6End Function
7
8' Usage in Excel:
9' Cell A1: Scale Length (e.g., 25.5)
10' Cell B1: =FretPosition($A$1, ROW()-1)
11' Copy B1 down for frets 1-24
121#include <iostream>
2#include <cmath>
3#include <iomanip>
4
5class GuitarFretCalculator {
6private:
7 static constexpr double TWELFTH_ROOT_OF_TWO = 1.059463094359295;
8 double scaleLength;
9
10public:
11 GuitarFretCalculator(double scale) : scaleLength(scale) {}
12
13 double calculateFretPosition(int fretNumber) const {
14 return scaleLength * (1.0 - (1.0 / std::pow(TWELFTH_ROOT_OF_TWO, fretNumber)));
15 }
16
17 void printFretChart(int numFrets) const {
18 std::cout << "Fret Spacing Chart for " << scaleLength << " scale\n";
19 std::cout << std::setw(6) << "Fret"
20 << std::setw(12) << "From Nut"
21 << std::setw(12) << "Spacing" << "\n";
22 std::cout << std::string(30, '-') << "\n";
23
24 double previousDistance = 0.0;
25 for (int fret = 1; fret <= numFrets; ++fret) {
26 double distance = calculateFretPosition(fret);
27 double spacing = distance - previousDistance;
28
29 std::cout << std::setw(6) << fret
30 << std::setw(12) << std::fixed << std::setprecision(3) << distance
31 << std::setw(12) << spacing << "\n";
32 previousDistance = distance;
33 }
34 }
35};
36
37int main() {
38 GuitarFretCalculator calculator(25.5);
39 calculator.printFretChart(24);
40 return 0;
41}
421# R implementation for guitar fret spacing calculations
2
3calculate_fret_position <- function(scale_length, fret_number) {
4 # Calculate distance from nut to specific fret
5 twelfth_root_of_two <- 2^(1/12)
6 distance <- scale_length * (1 - (1 / (twelfth_root_of_two^fret_number)))
7 return(distance)
8}
9
10generate_fret_chart <- function(scale_length, num_frets = 24, unit = "inches") {
11 # Generate complete fret spacing chart
12 fret_numbers <- 1:num_frets
13 distances <- sapply(fret_numbers, function(n) calculate_fret_position(scale_length, n))
14 spacings <- c(distances[1], diff(distances))
15
16 fret_data <- data.frame(
17 Fret = fret_numbers,
18 DistanceFromNut = round(distances, 3),
19 Spacing = round(spacings, 3)
20 )
21
22 cat(sprintf("Fret Spacing Chart for %.2f%s scale\n\n", scale_length, unit))
23 print(fret_data)
24
25 return(fret_data)
26}
27
28# Example usage
29scale_length <- 25.5 # inches
30fret_chart <- generate_fret_chart(scale_length, 24, "inches")
31DIY luthiers and professional guitar builders use fret spacing calculators to ensure accurate intonation when constructing custom instruments. Whether building a standard 6-string guitar, a 7-string extended range instrument, or a bass guitar, precise fret placement is non-negotiable for proper tuning across the entire neck.
Practical tip: Always verify your scale length measurement multiple times before cutting slots. Measure from the nut slot to the bridge saddle contact point, and consider that the actual speaking length may be slightly different than the nominal scale length due to compensation at the bridge.
When replacing frets on vintage instruments or performing neck repairs, accurate fret spacing calculations help repair technicians match original specifications. This is particularly important for vintage guitars where original documentation may be unavailable or where neck geometry has changed over time.
Experimental instrument builders often explore non-standard scale lengths for specific tonal characteristics:
Makers of cigar box guitars, dulcimers, and other folk instruments benefit from fret spacing calculators when adapting traditional designs to different scale lengths or when creating entirely new instrument designs with proper intonation.
Music students and physics teachers use fret spacing calculations to demonstrate the mathematical relationships in music theory, showing how equal temperament creates the standardized Western musical scale and how mathematical precision enables musical harmony.
While this calculator focuses on equal-tempered tuning (the standard for modern guitars), alternative tuning systems exist:
These alternatives serve specialized musical purposes but require different calculation methods than the equal-tempered system.
The development of precise fret spacing is intertwined with the history of Western music theory and the evolution of equal temperament tuning.
Early lutes and viols used gut frets tied around the neck, positioned by ear rather than mathematical calculation. Players adjusted fret positions for different musical modes and keys, as fixed equal temperament had not yet been standardized.
During the Renaissance, mathematicians and music theorists including Vincenzo Galilei (father of Galileo) began exploring mathematical relationships in music. The theoretical foundation for equal temperament was established, though practical implementation remained challenging.
Key development: In 1581, Vincenzo Galilei published calculations for lute fret placement that approximated equal temperament, though he used ratios like 18:17 rather than the precise twelfth root of two.
The practical "Rule of 18" emerged as a simplified method for instrument makers who lacked access to logarithmic calculations. While not mathematically precise, this rule provided acceptable approximations for acoustic instruments where small intonation variations were less noticeable.
The rule worked by dividing the remaining string length by 18 for each successive fret:
The development of steel-string guitars, electric amplification, and modern tuning devices revealed the limitations of approximation methods. Electric guitars with high gain amplification make even small intonation errors immediately audible.
Hermann von Helmholtz (1821-1894) and other scientists refined the mathematical understanding of musical acoustics, establishing the precise equal-tempered scale calculations used today. Modern CNC machinery and digital measurement tools now enable precision fretting to within 0.001" (0.025mm), ensuring perfect intonation.
Contemporary innovations: Modern luthiers like Buzz Feiten have developed compensation systems that adjust fret positions slightly to account for string stretching and other physical factors, improving intonation beyond standard equal temperament calculations.
The most common scale lengths are 25.5 inches (648mm) used by Fender on Stratocasters and Telecasters, and 24.75 inches (628mm) used by Gibson on Les Pauls and SGs. PRS guitars typically use 25 inches (635mm), while bass guitars commonly use 34 inches (864mm) for 4-string and 35 inches (889mm) for 5-string instruments. The scale length affects string tension, tone, and playability, with longer scales providing tighter bass response and higher tension.
Yes, the guitar fret spacing calculator works for any fretted string instrument using equal-tempered tuning, including bass guitars, baritone guitars, ukuleles, mandolins, and banjos. Simply enter the appropriate scale length for your instrument. Bass guitars typically use longer scale lengths (34"-35") but follow the same mathematical principles for fret placement.
Professional luthiers aim for accuracy within 0.001 inches (0.025mm) for optimal intonation. Errors of 0.010" or more become audible, especially on higher frets where slight position errors create larger pitch discrepancies. Modern CNC fret slotting machines achieve this precision consistently, while hand-cut fret slots require careful measurement and sharp cutting tools to maintain accuracy.
The Rule of 18 is a historical approximation where each fret position is calculated by dividing the remaining string length by 18. While this provides reasonable accuracy for the first several frets, the approximation becomes increasingly inaccurate toward the bridge. Modern precision tuning and electronic amplification make these small errors audible, so contemporary luthiers use the exact equal-tempered formula based on the twelfth root of two.
Longer scale lengths (25.5"+) provide higher string tension, resulting in tighter bass response, more defined note articulation, and brighter tone. They require more finger pressure but offer better sustain. Shorter scale lengths (24.75" or less) have lower string tension, creating a warmer, slightly compressed tone that's easier to bend strings on but may feel "looser." Many players choose scale length based on genre: jazz and blues players often prefer shorter scales, while metal and country players favor longer scales.
Multiscale guitars use different scale lengths for different strings, with treble strings having shorter scales and bass strings having longer scales. The frets are "fanned" at an angle across the fingerboard. This design optimizes string tension and tone across all strings, particularly beneficial for extended-range instruments (7-string, 8-string guitars). Each string requires individual fret spacing calculations based on its specific scale length.
Once frets are installed, their positions cannot be adjusted. This is why accurate calculation and careful measurement before cutting fret slots is critical. If frets are incorrectly positioned, the only fix is to fill the incorrect slots with wood or synthetic filler, re-cut new slots at correct positions, and install new fretsβan expensive and time-consuming repair. Always double-check measurements before making permanent cuts.
Yes, bridge compensation is necessary for proper intonation. While fret positions determine the theoretical vibrating string length, in practice, strings stretch slightly when pressed down, especially wound strings. The bridge saddle must be positioned slightly behind the theoretical scale length endpoint to compensate for this stretching. Most guitars have adjustable bridge saddles that allow individual compensation for each string, typically requiring the saddle to sit 1/16" to 3/16" behind the theoretical scale length position.
Professional fret slotting requires: a fret saw with thin kerf (typically 0.020" width), a precision straightedge or fret jig, measuring tools accurate to 0.001" (digital calipers or specialized fret rulers), and a flat, stable work surface. Many luthiers use CNC routers or pre-slotted fingerboards from specialized suppliers to ensure consistent accuracy. Hand-cutting fret slots demands steady hands, sharp tools, and careful verification of each measurement before cutting.
Use this free guitar fret spacing calculator to determine precise fret positions for your custom guitar project. Whether you're a professional luthier, DIY builder, or instrument repair technician, accurate fret spacing calculations ensure your instrument will play in tune across the entire fretboard. Enter your scale length, select your preferred units, and get professional-grade fret positions instantlyβno complex math required.
"Fret." Wikipedia, Wikimedia Foundation, https://en.wikipedia.org/wiki/Fret. Comprehensive overview of fret history, materials, and installation techniques.
"Equal Temperament." Wikipedia, Wikimedia Foundation, https://en.wikipedia.org/wiki/Equal_temperament. Detailed explanation of equal-tempered tuning mathematics and history.
Siminoff, Roger H. "The Luthier's Handbook: A Guide to Building Great Tone in Acoustic Stringed Instruments." Hal Leonard Corporation, 2002. Professional reference for instrument construction techniques.
"Musical Acoustics." HyperPhysics, Georgia State University, http://hyperphysics.phy-astr.gsu.edu/hbase/Music/musaccon.html. Scientific analysis of sound, frequency, and musical intervals.
"Guitar Scale Length Explained." StewMac, https://www.stewmac.com/video-and-ideas/online-resources/learn-about-guitar-and-instrument-fretting-and-fretwork/. Technical resources and tools for guitar building.
Discover more tools that might be useful for your workflow