A guitar string sounding pitch is set mainly by vibrating length, tension, and linear density. Shorten the free length or tighten the string and the pitch rises; use a heavier string at the same length and tension and the pitch falls. The fretting hand, the tuning pegs, and the string gauges are three practical handles on one formula.
Editorial note: this page was prepared with writing assistance and reviewed by a human editor with acoustics teaching background before publication. It is an educational explainer, not a field survey or medical opinion.
Watch a player tune an open A string, then fret at the twelfth fret and play again. The fretted note sounds an octave higher: the vibrating length halved, so the fundamental frequency roughly doubled. That kitchen-table experiment is Mersenne’s relation in street clothes. Ideal flexible strings under tension obey f₁ = (1 / 2L) √(T / μ), where L is vibrating length, T is tension, and μ is mass per unit length. Pitch, for a given string family, is the audible face of that frequency.
Everyday scene: restringing a guitar on a weekend afternoon. You choose a heavier gauge set (larger μ) and must raise tension to reach the same concert pitches, which is why the neck feels different and the pegs take more turns. Capo the neck and you shorten L for every string at once; all pitches jump. Bend a string and you briefly raise T; the note sharp-swoops. Three parameters, three gestures.
Length: frets as rulers
The nut and bridge (or fretted point and bridge) define L. Equal temperament frets are placed so that each semitone multiplies frequency by the twelfth root of two, which corresponds to shortening length by that same factor if tension and density stay fixed. Players feel this as “half the string, up an octave” at the midpoint. Inharmonicity and stiffness add small corrections on real wire, especially at high fret numbers, but the length story remains the first lesson.
Scale length—the full open-string L—differs between classical, steel-string, and bass guitars. Longer scales need different tensions or gauges to land in a comfortable pitch and feel zone. Builders are balancing the same square-root formula the physics classroom writes on a board.
Tension and linear density
Tuning pegs change T. Because frequency depends on the square root of tension, doubling tension does not double pitch; it multiplies frequency by √2, about a tritone-ish step in ratio terms (not a musical recommendation—just the math). Linear density μ is chosen when you buy strings: wound low strings pack more mass into each meter so they can sound low without absurd slack. A plain steel high-E is thin (small μ) so it can sing high at manageable tension.
Walk through a quick estimate. Suppose an open string at length L sounds frequency f. Capo at the twelfth fret and L halves, so f doubles if T and μ hold—an octave up. Instead keep L fixed and tighten until the electronic tuner reads a semitone sharp: frequency multiplies by 2^(1/12) ≈ 1.059, which means tension must rise by about that factor squared, roughly a 12 percent increase. Players feel that as a firmer string long before they recite the exponents. Gauge charts from string makers are essentially tabulated compromises among target pitch, scale length, and preferred tension in pounds or newtons.
Wound strings achieve high μ without making a bar-thick rod: a hex or round core carries a wrap wire that adds mass while keeping flexibility. That flexibility matters because the ideal-string formula assumed no bending stiffness. The wrap is a density trick wrapped around a playable core.
Harmonics ride the same three dials
An ideal string also supports modes at 2f₁, 3f₁, and higher, with nodes dividing the length into equal parts. Plucking near the bridge brightens the mix of those partials; plucking nearer the midpoint favors the fundamental. Yet every partial still scales when you change L, T, or μ, because the whole harmonic ladder stretches or shrinks together. That is why fretting a chord shape preserves musical intervals even as absolute frequencies move: each string formula is scaled by shared geometry and related tensions.
Bassists feel the density dial most acutely. A floppy low B on a short-scale neck often means μ is too small for the desired pitch at a comfortable T, or L is simply short. Switching to a heavier set or a longer scale restores tension headroom. Classical players choosing gut versus nylon versus fluorocarbon are likewise choosing μ and modulus, which change both pitch-for-tension and feel under the fingertip.
What the formula leaves out—and what it still teaches
Real strings have stiffness, so partials stretch slightly sharp; fretting adds a little extra tension; temperature and neck relief shift tuning. The body couples vibration to air and colors timbre. None of that erases the primary controls. If a note is flat, you still reach for tension or effective length first. If a low string flops, you reach for heavier gauge or higher tension rather than blaming the room.
Compare a piano: longer bass strings, heavier winding, and enormous frame tensions are the same three variables written at furniture scale. A harp pedals retune by changing effective vibrating length along the string. Across the string family the pedagogy rhymes even when the furniture differs.
Demo: capo octave and tuner spreadsheet
Tune an open string to a stable reference with a chromatic tuner. Capo at the twelfth fret (or pinch a harmonic node there) and confirm the reading jumps one octave within a few cents. Measure open scale length L with a ruler. Predict fretted frequencies at frets 1, 3, 5, 7, and 12 using f = f_open × 2^(n/12) for equal temperament, then measure. Large misses usually mean a poorly cut nut, wrong intonation saddle, or extreme action raising tension when fretted—not a failure of Mersenne’s law in the abstract.
Second column: keep the capo off, raise pitch one semitone with the peg, and estimate the tension ratio T₂/T₁ ≈ (f₂/f₁)² ≈ 1.12. Players who “only tune by feel” still obey that square law; the demo merely makes the cost of sharp tuning visible as extra neck load.
Gauge charts as tabulated Mersenne
String manufacturers publish suggested tensions for each pitch and scale length. Those tables are the ideal-string formula solved for T given target f, L, and μ (with empirical tweaks for winding and feel). Switching from a .010 to a .011 plain string at the same pitch and scale raises μ and therefore needed T—hence the tighter feel. Drop-tuning a set without changing gauges lowers T; the string feels floppy and may buzz because the formula’s √T fell while L and μ stayed put.
Bass short-scale versus long-scale debates are the same algebra: shorter L demands larger μ or higher T for the same low F♯. Builders who “just know” which set works on a 30-inch bass are carrying Mersenne in muscle memory.
Inharmonicity and why pianos stretch octaves
Stiff strings behave a little like bars: higher partials run sharp of exact integer multiples. Piano technicians stretch octaves partly to reconcile that inharmonicity with musical ears. Guitarists meet a milder version when high frets sound sharp despite a perfect open tuning—stiffness plus fretting stretch. The ideal formula remains the first dial set; inharmonicity is the fine print for intonation obsessives.
Wound strings reduce the stiffness penalty for a given mass compared with a solid rod of equal μ, which is why bass courses can be heavy yet still musical. Core-to-wrap design is μ engineering with playability constraints.
Temperature, humidity, and slow dial drift
Gut and nylon shift with humidity and temperature more than steel; effective tension and slight length changes move f₁ overnight. Steel still drifts as the neck bows and the plate breathes. None of that invents a fourth primary variable—it slowly edits T and L. Morning retuning is Mersenne maintenance.
Electric versus acoustic bodies change radiation and sustain, not the open-string frequency formula. A solid body can sound quiet acoustically while the string still vibrates at (1/2L)√(T/μ); the pickup reads motion, not air power. Keep pitch physics and loudness physics on separate clipboards.
Lab card: three knobs only
When a note is wrong, ask: Did L change (finger, capo, saddle)? Did T change (peg, bend, temperature via neck)? Did μ change (wrong string, unraveling wrap)? If the answer is “none,” look at tuner error, octave confusion, or a sympathetic false note—not a mysterious fifth parameter. That triage is the practical gift of the ideal-string equation.
Limits: this note addresses the ideal-string fundamental that guides fretting and string choice. It is not a luthier setup manual, not medical advice about hearing, and not a claim that timbre equals pitch. Pitch here means the fundamental frequency the ear locks onto for a clear plucked tone.
Bending, vibrato, and temporary tension
A whole-step bend on a light-gauge electric string can demand a large fractional rise in T because f scales only with √T. Players choose gauges partly for how far they can bend before tension feels like a workout. Vibrato is a small periodic T (and slight L) modulation that the ear reads as expressive pitch shimmer—the same formula, oscillating in time. Classical vibrato on fretted notes is mostly fingertip rolling that micro-varies effective length and tension together.
Whammy bars and floating tremolos rewrite T for many strings at once; returning to pitch is a mechanical promise that the bridge geometry restores the original tensions. When it fails, Mersenne tells you why every string lands sharp or flat together.
Oral quiz: name the three dials; state what halves when you capo at the twelfth fret; state whether doubling tension doubles pitch (it does not—√2 only). Correct answers mean the formula is ready for the practice room, not only the exam.
Optional shop math: weigh a known length of plain string to estimate μ, measure L and f with a tuner, then solve T = μ (2 L f)² and compare to a tension chart. Agreement within tens of percent is a win for an ideal-string lab; larger errors invite stiffness, winding, and measurement humility. Write L, T, μ, and f₁ in the same notebook row whenever you change gauges so the three-dial story stays attached to the instrument on the bench.
Drop-tune a whole step without changing gauges and feel √T fall; the floppy complaint is Mersenne, not a defective neck. Heavier strings or a longer scale are the formula’s remedies.
Capo math reprise: each fretted semitone multiplies f by 2^(1/12) when T and μ hold, which means L shortens by that factor on an ideal string. Intonation errors at high frets add stiffness and stretch—fine print after the three dials are set.