Saved

Press the star next to a tool's name to save it.

All my tools

Harmonic Wave Equation Calculator

Use this harmonic wave equation calculator to find the displacement of a sinusoidal wave at any point and time, with the wavenumber, frequency and period.

Restored your last values ·

Enter the amplitude, the wavelength and the speed of the wave. Add a position, a time and an initial phase to get the displacement there. The wavenumber, angular frequency, frequency and period are shown with it.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the amplitude, the wavelength and the wave speed, then press Calculate.

See full result

A harmonic wave equation calculator gives the displacement of a sinusoidal travelling wave at any point and time. Enter the amplitude, the wavelength, the wave speed and, if you wish, a position, a time and an initial phase. You also get the wavenumber, the angular frequency, the frequency and the period.

How to use the harmonic wave equation calculator

  1. Enter the amplitude, wavelength and wave speed.
  2. Add the distance x and the time t at which you want the displacement, and an initial phase if the wave does not start at zero.
  3. Choose the direction of travel and press Calculate.

The harmonic wave equation

A harmonic wave is a smooth sine wave. This calculator uses y = A sin(2π ÷ λ × (x − vt) + φ), where A is the amplitude, λ the wavelength, v the wave speed, t the time, φ the initial phase and x the distance from the source. Wikipedia writes the same travelling sine wave as y = A sin(kx − ωt + φ) for a wave moving to the right [1]. The result y is the displacement of the medium at that place and time. The two forms agree because k = 2π ÷ λ and ω = k v.

Wavenumber and angular frequency

The part 2π ÷ λ is the angular wavenumber k, the number of radians of phase per unit of distance [2]. The wavenumber page also gives the link k = ω ÷ v for the angular frequency ω and the phase velocity v [2]. So the equation can be written y = A sin(k x − ω t + φ). The calculator shows k, ω, the frequency f = v ÷ λ and the period T = λ ÷ v. The last two are our own working from the same relations.

A worked example

Take an amplitude of 14 mm, a wavelength of 60 mm, a speed of 5 mm per second and no initial phase. At x = 0 and t = 1 s the phase is −5 × 2π ÷ 60, which is −30 degrees, so y = 14 × sin(−30°) = −7 mm. At x = 10 mm the phase is +30 degrees, so y = +7 mm. These are the two displacements for this example.

The direction of travel

The sign between x and vt sets the direction. With x − vt the pattern moves towards larger x, so a crest seen at one place is later seen farther along. With x + vt it moves towards smaller x. Wikipedia gives the minus sign for a wave moving to the right and the plus sign for one moving to the left [1]. Pick the option that matches your wave. The wavenumber, the frequency and the period do not change, but the displacement at a given time does.

The initial phase

The phase φ shifts the wave along the x axis and in time. A phase of 90 degrees turns the sine into a cosine, so the displacement is at its maximum at x = 0 and t = 0. A phase of 180 degrees flips the wave upside down. You can enter the phase in radians or degrees. The calculator converts degrees by multiplying by π ÷ 180, and it shows the total phase of the point.

Period, frequency and speed

Every harmonic wave obeys v = f λ. If you know the frequency instead of the speed, multiply it by the wavelength to get v. The period is the time of one complete cycle, the inverse of the frequency. For the example above, the frequency is 0.083333 per second and the period is 12 seconds. The angular frequency is ω = 2π ÷ T = 2π f [1]. Use the frequency converter if you need hertz.

Wavenumber calculator use

If you only need the wavenumber, enter any amplitude, such as 1, with the wavelength and speed. The calculator shows k = 2π ÷ λ in radians per length unit. This is the angular wavenumber. A second kind, the spectroscopic wavenumber, is 1 ÷ λ, the number of wavelengths per unit distance [2]. To get that, divide the angular value by 2π. It is the quantity used in spectroscopy, usually quoted per centimetre.

Units and limits

Pick one length unit and one time unit, and use them in every box, for example metres and seconds. The displacement comes out in the unit of the amplitude. The calculator assumes an ideal wave of a single frequency that does not lose energy as it travels. Real waves can damp, disperse or reflect, and then the simple equation is only an approximation. Check results against the physics of your medium.

Using the calculator

Fill in the three required boxes, then add the point you care about. Change the time to see how the displacement at a fixed place oscillates, or change the distance to see the shape of the wave at a fixed instant. Try a negative distance to look behind the source. The copied result gives the displacement with its position and time, ready to paste into notes.

Reading the result

The displacement tells you how far the medium is from rest at that point and instant. When it equals the amplitude, you are at a crest; when it equals minus the amplitude, at a trough. A value of zero means the point is passing through its rest position. To plot a wave, run the calculator at several distances for a fixed time, then at several times for a fixed distance. The two views, a snapshot and a time trace, show the same sinusoid. The motion of a single point is simple harmonic motion, a sinusoid in time with the angular frequency ω, which is why ω appears in the result.

Common mistakes

  • Mixing the length units of the wavelength and the speed. They must match.
  • Mixing seconds with minutes. The speed and the time share one unit.
  • Entering degrees as radians. Check the phase unit.
  • Choosing the wrong direction. A plus sign moves the wave the other way.

What next

Use this often? Add Harmonic Wav to your Home screen.

Frequently asked questions

What is a harmonic wave equation calculator?

A tool that gives the displacement of a sinusoidal wave from its amplitude, wavelength, speed, position, time and phase.

What is the harmonic wave equation?

y = A sin(2π ÷ λ × (x − vt) + φ), with the amplitude A, the wavelength λ, the speed v and the initial phase φ.

How do I find the wavenumber?

Divide 2π by the wavelength: k = 2π ÷ λ, in radians per unit of distance.

How are the angular frequency and the wave speed related?

ω = k v, so ω = 2π v ÷ λ.

Which way does the wave travel?

Towards larger x when the equation has x − vt, and towards smaller x when it has x + vt.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Unit Converters