Waves and sound calculator
Type what you know about a wave problem and the tool works out the rest: the wavelength, frequency, period, wave number and angular frequency of a traveling wave and the displacement of a point, the speed of waves on a stretched string, the harmonics of a string or a pipe with their nodes and antinodes, the sound intensity and level at different distances, the Doppler effect and beats. Each result comes with its equation, its substitution and an animated figure.
Theory and worked examples: Waves and sound.
What you can do
- Traveling waves: v = λ f, T = 1/f, k = 2π/λ, ω = 2π f, the maximum transverse speed and acceleration and the wave function y(x, t) = A sin(k x ∓ ω t + φ) at a point and an instant.
- Waves on a string: v = √(F/μ), the linear density from the mass and the length, the time of a pulse, the power a wave carries and the tension from a hanging mass.
- Standing waves on strings fixed at both ends or with one free end and in open or closed pipes: harmonics, fundamental frequency, positions of the nodes and antinodes, two successive resonances and the speed of sound from the air temperature.
- Sound intensity and level: I = P/(4π r²), β = 10 log(I/I₀), the level at another point, N equal sources, two different sources and the pressure amplitude.
- The Doppler effect with a moving source and listener, with or without wind, and a source passing by: its speed from the frequencies heard approaching and receding.
- Beats: the beat frequency and the two possible frequencies of the other source.
- Free data: the unknowns come out one at a time; extra values are checked and, if some are missing, what can be found is shown.
Frequently asked questions
How is the wavelength of a sound found?
With v = λ f: the wave moves one wavelength each period. A 440 Hz sound in air at 343 m/s has λ = 343/440 = 0.7795 m, a period of 0.002273 s, k = 8.06 rad/m and ω = 2765 rad/s.
Which harmonics does a pipe closed at one end have?
Only the odd ones: the closed end is a node and the open end an antinode, so n quarter waves fit with n = 1, 3, 5… and fn = n v/(4L). A 25 cm closed pipe with v = 343 m/s has f₁ = 343 Hz and its third harmonic at 1029 Hz. Open at both ends, a 60 cm pipe with air at 20 °C (v = 343.2 m/s) has f₁ = 286 Hz and the second harmonic at 572 Hz.
How many decibels does sound lose with distance?
20 log(r₂/r₁): 6.02 dB each time the distance doubles and 20 dB each time it is multiplied by 10. If 80 dB are measured at 10 m, there are 60 dB at 100 m. A 2 W loudspeaker gives 98.04 dB at 5 m and 86 dB at 20 m. Levels add through the intensities: four 85 dB machines give 91.02 dB, and two sources of 70 and 75 dB give 76.19 dB.
How much does the frequency change in the Doppler effect?
f′ = f (v + vR)/(v − vF), with the velocities positive towards the other. An ambulance at 30 m/s with a 700 Hz siren is heard at 767.1 Hz while it approaches a person at rest. If a train is heard at 520 Hz approaching and 480 Hz receding, it moves at 343·40/1000 = 13.72 m/s and its horn emits 499.2 Hz.
Guide: waves, sound, harmonics and the Doppler effect
A wave carries energy from one place to another without carrying matter: each point of the medium oscillates about its position and the shape moves on. This guide explains the relations of a harmonic wave, waves on a string, standing waves on strings and in pipes, sound intensity and level in decibels, the Doppler effect and beats, with examples checked in the tool.
A traveling harmonic wave
The wave repeats in space every wavelength λ and in time every period T. In one period it moves one wavelength, so its speed is v = λ/T = λ·f. The wave number k and the angular frequency ω are the same things measured in radians:
v = λ·f T = 1/f k = 2π/λ ω = 2π·f v = ω/k
A wave moving towards +x is written y(x, t) = A·sin(k·x − ω·t + φ), with a + sign if it moves towards −x. Each point moves in simple harmonic motion of amplitude A: its transverse speed is at most ω·A and its acceleration ω²·A. That speed is not the wave's: a point of a string moves up and down, it does not travel.
Waves on a string
On a stretched string the speed depends only on the string: v = √(F/μ), with F the tension and μ the mass per meter. The frequency is set by whatever makes it vibrate and the wavelength adjusts, λ = v/f. A harmonic wave carries an average power P = ½·μ·v·ω²·A².
Standing waves on strings and in pipes
The wave going one way and the one reflected at the ends add up into a standing wave, with nodes that do not move and antinodes that oscillate the most. Only the frequencies for which the ends fall where they must resonate:
- Both ends alike (string fixed at both, pipe open at both): n half waves fit, λn = 2L/n and fn = n·v/(2L), with n = 1, 2, 3…
- One end different from the other (pipe closed at one end, string with one free end): n quarter waves fit with n odd, λn = 4L/n and fn = n·v/(4L), with n = 1, 3, 5…
In a pipe one speaks of the displacement of the air: an open end is a displacement antinode and a closed one a node (where the displacement has a node, the pressure has an antinode). The speed of sound in dry air, as an ideal gas, is v = √(γ·R·T/M), about 343 m/s at 20 °C.
Sound intensity and level
A point source spreads its power over ever larger spheres: I = P/(4π·r²). The ear responds logarithmically, which is why the level in decibels is used, β = 10·log(I/I₀) with I₀ = 10⁻¹² W/m². Each factor of 10 in intensity is 10 dB; doubling the distance lowers the level by 6.02 dB. Levels add through the intensities: N equal sources raise it by 10·log N, and two different sources give 10·log(10β₁/10 + 10β₂/10).
The Doppler effect
The listener hears as many crests per second as reach it. If the source moves, it leaves the crests closer together ahead of it; if the listener moves towards them, it meets them more often. With the velocities positive towards the other and the wind positive from the source to the listener:
f′ = f·(v + vwind + vR)/(v + vwind − vF)
A source passing by a person at rest is heard at fa = f·v/(v − u) while approaching and at fr = f·v/(v + u) while receding; dividing, u = v·(fa − fr)/(fa + fr). If the source moves at the speed of sound or faster the formula does not apply: a shock wave forms.
Beats
Two sounds of nearby frequencies are heard as one, at the average frequency (f₁ + f₂)/2, whose loudness rises and falls |f₁ − f₂| times per second. If one frequency and the beats are known, the other has two possible values.
Worked examples
- A wave on a rope with A = 2 cm, λ = 0.5 m and f = 8 Hz. v = 0.5·8 = 4 m/s, T = 0.125 s, k = 12.57 rad/m and ω = 50.27 rad/s; the points reach 1.005 m/s and 50.53 m/s². At x = 0.3 m and t = 0.1 s the phase is 12.57·0.3 − 50.27·0.1 = −1.257 rad: the point is at y = −0.01902 m and moves at −0.3107 m/s.
- From the equation y = 0.03·sin(2.5x − 40t). A = 0.03 m, λ = 2π/2.5 = 2.513 m, f = 40/2π = 6.366 Hz and v = 40/2.5 = 16 m/s; a point reaches at most 40·0.03 = 1.2 m/s.
- An 80 g, 2 m string stretched by 50 N. μ = 0.04 kg/m and v = √(50/0.04) = 35.36 m/s: a pulse travels it in 0.05657 s. With μ = 0.05 kg/m and 80 N, v = 40 m/s; at 60 Hz and 6 mm amplitude it carries P = 5.116 W.
- A 65 cm guitar string with f₁ = 110 Hz. v = 2·0.65·110 = 143 m/s; the third harmonic sounds at 330 Hz with λ₃ = 0.4333 m, and has 4 nodes (0, 0.2167, 0.4333 and 0.65 m) and 3 antinodes.
- A 25 cm closed pipe with v = 343 m/s. f₁ = 343/(4·0.25) = 343 Hz and there are only odd harmonics: the third is at 1029 Hz. A closed pipe with two successive resonances at 375 and 625 Hz has f₁ = (625 − 375)/2 = 125 Hz (two successive ones are 2·f₁ apart), is L = 343/(4·125) = 0.686 m long, and those resonances are harmonics 3 and 5. A 60 cm open pipe with air at 20 °C (343.2 m/s) gives f₁ = 286 Hz and its second harmonic at 572 Hz.
- A 2 W loudspeaker. At 5 m, I = 2/(4π·25) = 0.006366 W/m² and β = 98.04 dB; at 20 m, 86 dB: 12.04 dB less, which is 20·log 4. If 80 dB are measured at 10 m, the level drops to 60 dB at 100 m.
- Adding sources. Four equal 85 dB machines give 85 + 10·log 4 = 91.02 dB; two different sources of 70 and 75 dB give 76.19 dB, not 145. A 60 dB sound (10⁻⁶ W/m²) in air with ρ = 1.20 kg/m³ and v = 343 m/s has a pressure amplitude of 0.02869 Pa.
- An ambulance at 30 m/s with a 700 Hz siren. Approaching a person at rest it is heard at 700·343/313 = 767.1 Hz. A 1000 Hz source moving away at 20 m/s is heard at 944.9 Hz, and with a 10 m/s wind towards the listener, a 500 Hz source at rest and a listener approaching at 15 m/s give 521.2 Hz.
- A train heard at 520 Hz approaching and 480 Hz receding. u = 343·40/1000 = 13.72 m/s and the horn emits 2·520·480/1000 = 499.2 Hz.
- Beats. Two tuning forks of 256 and 260 Hz give 4 beats per second (one every 0.25 s) at a pitch of 258 Hz. A 440 Hz fork and a string giving 3 beats per second: the string is at 443 or 437 Hz.
How to use the tool
- Under Kind of problem, choose the Problem: traveling wave, waves on a stretched string, standing waves, sound intensity and level, Doppler effect or beats. Depending on the case, choose the Direction of travel, the System (fixed string, one free end, open or closed pipe) or the Situation of the Doppler effect.
- Under Data, type what you know and leave empty what you are looking for. The groups of the panel (the amplitude, another point, the wind, two successive resonances…) only enter if you type one of their values. If not everything comes out from what you typed, the tool shows what does and says what is missing. Clear empties the data.
- Press ▶ or move the slider to watch the wave travel, the standing wave oscillate or the wavefronts of the moving source.
- Check the Step by step, where every step names the equation it uses, and open the Detailed solution (PDF). The cases of this guide are under Examples.
Common mistakes
- Mixing up the speed of the wave and that of a point. v = λ·f is how fast the shape moves; the transverse velocity of a point reaches ω·A and changes all the time.
- Using degrees in the phase. In y = A·sin(kx − ωt + φ) the phase is in radians.
- Putting even harmonics in a closed pipe. There are only odd ones; that is why two successive resonances are 2·f₁ apart.
- Adding decibels. The intensities add: two equal sources raise the level by 3.01 dB, not double it.
- Getting the Doppler signs wrong. Approaching raises the frequency, moving away lowers it; the tool uses velocities positive towards the other.
- Forgetting that the source sets the frequency. Going into another medium (or another string) changes the speed and the wavelength, not the frequency.
Further reading
The chapters on mechanical waves, sound and standing waves of any university physics textbook. On Simuveliq, pendulums and SHM explains the harmonic motion of each point, interference and diffraction studies light waves that add up and geometric optics light as rays.
More tools
Versión en español
About Simuveliq · How we verify the calculations · Terms of use · Privacy policy · Contact