🔬
🔬 Science & engineering

String Vibration & Standing Wave Calculator

Results update as you type.

Your numbers

Understanding the string vibration and standing wave calculator — concept and principle

A string fixed at both ends, like a guitar, violin or piano string, vibrates only at certain frequencies. This calculator finds the frequency of any harmonic from the string's vibrating length, its tension and its mass per unit length, and also gives the speed of waves along the string. It is used to choose string gauges, estimate the tension needed for a target note and explain why tightening a string raises its pitch.

First harmonic on a 0.65 m stringA 0.65 m string vibrates with nodes at both ends and one antinode, so the wavelength is 1.3 m. With 70 N tension and 1.1 g/m, v ≈ 252 m/s and f₁ ≈ 194 Hz.The string holds half a wavenodenodeantinodeL = 0.65 m → λ = 2L = 1.3 mT = 70 Nμ = 1.1 g/m0.0011 kg/mspeed v = √(70 ÷ 0.0011) = 252 m/sf₁ = 252 ÷ 1.3 = 194 Hz2nd harmonic: twice as high, 388 Hz
Half a wavelength fits on the string: 252 m/s ÷ 1.3 m ≈ 194 Hz.

How it is calculated

L is the vibrating length in metres, T the tension in newtons, μ the linear density, and n = 1, 2, 3 … the harmonic number (n = 1 is the fundamental). The calculator takes μ in g/m and divides by 1000 to get kg/m, so the units come out in m/s and Hz.

The principle

A transverse wave on a stretched string travels at √(T/μ): more tension means a stronger restoring force, more mass means more inertia. When waves reflect from the two fixed ends, they interfere and form a standing wave. Because both ends must stay still (nodes), the string can only hold a whole number of half-wavelengths: L = n · λ/2, so λₙ = 2L/n. Combining with f = v/λ gives fₙ = n·v/(2L). These relations are known as Mersenne's laws: frequency is inversely proportional to length and proportional to the square root of tension, and inversely proportional to the square root of linear density.

Worked example

  1. Inputs: L = 0.65 m, T = 70 N, μ = 1.1 g/m = 0.0011 kg/m, n = 1.
  2. T / μ = 70 / 0.0011 ≈ 63,636.4 m²/s².
  3. Wave speed v = √63,636.4 ≈ 252.26 m/s.
  4. f₁ = 1 × 252.26 / (2 × 0.65) = 252.26 / 1.3 ≈ 194.05 Hz (194.0480689).

This is close to G3 (about 196.0 Hz in standard tuning).

How Frequency (Hz) changes with String length (m)How Frequency changes with String length02004006008000.1630.3250.4870.650.8120.9751.3Example: 194.0480689String length (m)
Each point is the calculator re-run with only “String length (m)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
String length (m)Frequency (Hz)
0.163776.1922756
0.325388.0961378
0.487258.7307585
0.65194.0480689
0.812155.2384551
0.975129.3653793
1.397.02403444

How to read the result

Higher harmonics are exact integer multiples of the fundamental in this ideal model: n = 2 gives about 388.1 Hz, n = 3 about 582.1 Hz. To raise the pitch by one octave you need four times the tension, or half the length, which is why frets work by shortening the string. Because frequency depends on the square root of tension, a 1% change in tension shifts the pitch by only about 0.5%, roughly 8.6 cents.

Common mistakes

Keep in mind: The model assumes a perfectly flexible, uniform string with rigid ends. Real strings have bending stiffness, which makes higher harmonics slightly sharp (inharmonicity), especially in thick piano strings. Never exceed a string's rated tension.

Frequently asked questions

How do I find the tension for a target note?

Rearrange the formula: T = μ · (2Lf / n)². For the fundamental, T = μ(2Lf)².

Why do bass strings have wound wire?

Winding adds mass (higher μ) without making the string much stiffer, so it can reach low notes at a playable tension and length.

Sources: M. Mersenne, Harmonie universelle (1636) · N. H. Fletcher and T. D. Rossing, The Physics of Musical Instruments, Springer

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →