How do you calculate fret length?
Divide any scale’s open string length by 17.817, and the result is the distance from the front edge of the nut to the first fret. For several centuries, this number was rounded to 18 and referred to as the “rule of 18.” For example, a typical guitar scale length (Fender Telecaster) is 25.5 inches (648 mm).