Inharmonicity Calculator

Inharmonicity Calculator

Estimate stiff-string inharmonicity coefficient B, partial sharpening, octave stretch, and tuning offsets from speaking length, diameter, tension, and material stiffness.

🎹 String Presets

Preset use: Load a common piano, guitar, bass, violin, cello, harp, or dulcimer string, then adjust length, gauge, tension, material, fundamental, and target partial.

Inharmonicity Inputs
Changing units converts length, diameter, and tension.
Young's modulus and core factor set bending stiffness.
Active vibrating length between bridge points.
For wound strings, use an effective core/stiffness diameter.
Higher tension lowers the inharmonicity coefficient.
Use the actual tuned pitch or first partial reference.
Higher partials show more sharpening from stiffness.
Shows the cents offset from an exact octave stack.
B Coefficient
91 ppm
0.000091 dimensionless
Selected Partial
3521 Hz
8th partial frequency
Partial Sharpness
5.0 c
above the exact harmonic
Octave Stretch
1.3 c
at the 4th partial checkpoint

Calculation Breakdown

📊 Current String Spec Grid
205 GPa
Effective Young's modulus
91 ppm
Inharmonicity strength
11th
Partial near 5 cents sharp
15th
Partial near 10 cents sharp
🎚 Live Partial Stretch Table
PartialIdeal HarmonicStiff String FrequencySharpness
2880 Hz880.2 Hz0.4 cents
📐 Inharmonicity Range Reference
Instrument Or String AreaTypical B RangeAudible ResultUseful Reading
Violin, viola, and light bowed strings1 to 20 ppmPartials stay close to harmonicUsually low stretch unless the string is very short or stiff
Classical and electric guitar plain strings5 to 40 ppmUpper partials sharpen slightlySetup changes in scale, tension, and gauge are easy to compare
Piano midrange plain wire50 to 300 ppmOctaves need visible stretchThe tuning curve follows partial matching, not pure octaves
Piano tenor and bass wound strings100 to 800+ ppmUpper partials can sit very sharpEffective core stiffness matters more than outer winding diameter
Short scale experimental strings300 to 2000+ ppmStrong bell-like inharmonicityRaise length or tension, or lower stiffness, to reduce stretch
🧪 Material And Core Model Reference
Material ModelYoung's Modulus UsedCore FactorBest Use
Piano music wire205 GPa1.00Plain piano strings and high-tension music wire
Plain steel200 GPa1.00Guitar plain strings, violin E, steel test strings
Wound steel core estimate205 GPa0.32Piano bass, cello, and bass strings when only outer gauge is known
Bronze wound core estimate110 GPa0.30Acoustic guitar wound strings and bronze-wound courses
Nickel wound core estimate200 GPa0.34Electric guitar and electric bass wound strings
Gut, nylon, fluorocarbon3 to 5 GPa1.00Flexible harp, classical guitar, and historical strings
🎹 Common String Comparison
Preset ScenarioLengthTensionExpected Behavior
Piano A4 plain wire0.39 m690 NModerate B; octave stretch is part of normal piano tuning
Piano A0 bass string1.90 m800 NWound core model; upper partials can drive bass stretch decisions
Guitar high E plain steel0.648 m73 NLow but measurable upper-partial sharpening
Bass guitar G wound string0.864 m190 NOuter winding adds mass, but core stiffness controls much of B
Violin E plain steel0.328 m75 NShort length raises B, but thin gauge keeps it controlled
Harp gut middle string0.720 m180 NFlexible material produces small inharmonicity for its diameter
📘 Formula And Tuning Use
QuantityFormula UsedMeaningHow To Read It
B coefficientB = pi^3 x E x d^4 / (64 x T x L^2)Dimensionless stiffness term for a round string estimateMore B means more partial sharpening
Partial frequencyfn = n x f1 x sqrt(1 + B x n^2)Frequency of the nth stiff-string partialCompare against n x f1 for cents offset
Sharpness cents1200 x log2(fn / (n x f1))How far the partial sits above a harmonic multiplePositive values indicate stretched upper partials
Stretch checkpointSame cents formula at 2nd, 4th, 8th, or 16th partialOctave-stack reference for tuning comparisonsUseful when matching upper partials across notes
Piano tip: Real piano tuning stretch is set by matching partials between neighboring notes, so this B estimate is a diagnostic starting point rather than a complete temperament map.
Wound string tip: Wound strings are not solid cylinders. Use measured partials when available, or lower the effective diameter/core factor until the calculator matches the observed spectrum.

String inharmonicity are the phenomenon that causes strings that are tuned to a specific frequency to sound slightly out of tune. String inharmonicity is the result of the stiffness of the string. As the string is bent, the string create resistance against the bending of that string.

This resistance causes the overtones (partials) of that string to be higher than they would of be if the string were an ideal string. The higher the partials of the string are tuned, the more noticeable the issue become, particalurly in the higher octaves of the instruments strings. There are four specific factor that contribute to the amount of sharpening (increasing frequency) of the partials caused by string inharmonicity.

Why Strings Can Sound Out of Tune

These four factors are the length of the vibrating string, the diameter of the string core, the tension of the string, and the resistance of the string material to bending. Shorter lengths of vibrating strings, cores with a thicker diameter, and strings composed of metals with high resistance to bending will increase the amount of sharpening. Higher tension applied to the string and longer lengths of speaking string will reduce the effect of string inharmonicity.

The calculator can calculate each of these four variable. String inharmonicity is noticeable when musicians attempt to tune octaves of a stringed instrument. On a piano, technicians do not tune the octaves to pure tones since the overtones of the upper octave string do not align to the overtones of the lower octave string.

Instead, the technician will tune the upper overtones of the lower string to the lower overtones of the string of the higher octave. The calculator will demonstrate to the technician how far the overtones have moved. This will allow the technician to begin tuning the piano strings by ear.

String inharmonicity also occur on a guitar, however, it is generaly much milder. Octaves of high E strings will generaly not require compensation on a guitar with a long scale-length. However, on short scale parlor guitars with heavy gauge strings, compensation for the inharmonicity of the string may be required at the eighth or tenth partial of the high E strings.

This will affect how the guitar sounds at the twelfth fret. Wound strings presents a specific situation in calculating string inharmonicity. Wound strings have a core string and an outer winding.

The outer winding adds to the mass of the string, but adds very little resistance to the bending of the string. Therefore, the diameter and material of the core string become the most important variables in the calculation of the inharmonicity of wound strings. Using the outer diameter of the wound string as the diameter of the wound string will create an overestimation of the inharmonicity of that string.

Therefore, presets for bass strings, electric bass strings, and bronze wound strings are provided that allow for calculation of the inharmonicity of wound strings. The material of the string is a very important factor in string inharmonicity. For instance, music wire have a resistance to bending of 205 GPa while nylon has a resistance of only roughly 3 GPa.

Each of the different string materials can be selected in the calculator. By changing the material of the string, the calculator can demonstrate the effect that different materials will have on the resistance to bending of that string. A gut-strung harp will have a thicker string than a harp with steel strings of the same length because gut has a lower resistance to bending than steel.

This affects the clarity of the higher overtones of the instruments. There are also some real-world conditions that will affect string inharmonicity. For instance, changes in the temperature will change the tension of the string.

Changes in the humidity will change the thickness of the strings of gut or nylon materials. Finally, the bridge and nut may change the length of the vibrating string by a few millimeter. The calculator will provide an estimation of the inharmonicity of the string.

However, you should make adjustments with your ear and a spectrum analyzer to the string vibrations. Run the number through the calculator to determine any variables, but then verify with your instrument. Through the calculator, it is possible to see the effect that changing only one of the variables will have on the inharmonicity of the string.

For instance, if the vibrating length of the string is lengthened by 10%, the coefficient of string inharmonicity will decrease more than if the tension of the string was increased by 10%. This is due to the fact that the vibrating length of the string is squared within the equation for the coefficient of string inharmonicity. Understanding the relationship between each of these four variables will allow the person building the stringed instrument to make an informed decision as to whether to lengthen the neck of the instrument or to increase the gauge of the strings.

Inharmonicity Calculator

Leave a Comment