Harmonic Wave Equation Calculator

Turn a harmonic traveling wave into numbers: k, omega, speed and the displacement at any x and t, with a waveform plot.

🌊 Harmonic Wave Equation Calculator
Amplitude (A)
m
Phase constant (φ)
°
Wavelength (λ)
m
Frequency (f)
Hz
Wave number (k)
rad/m
Angular frequency (ω)
rad/s
Direction of travel
Position (x)
m
Time (t)
s
Chart shows
Displacement y(x, t)
—
Wave number k
—
Angular frequency ω
—
Wave speed v = ω / k
—
Wavelength λ
—
Frequency f
—
Period T
—
Phase at (x, t)
—
Particle velocity
—
Maximum particle speed Aω
—

🌊 What is the Harmonic Wave Equation?

The harmonic wave equation is the standard mathematical description of a sinusoidal traveling wave: y(x, t) = A sin(k x − ω t + φ). It gives the displacement y of the medium at every position x and every time t. The amplitude A is the largest displacement, the wave number k = 2π / λ counts how much phase the wave gains per metre, the angular frequency ω = 2π f counts the phase gained per second, and the phase constant φ fixes where the wave starts at x = 0 and t = 0. The same expression describes a wave on a string, a sound wave, a ripple on water and the electric field of light, which is why it is the first formula taught in any wave course. This calculator evaluates it for you, in two input styles, and plots the result.

Three results come out of the parameters automatically. The wavelength and the frequency fix the wave speed, v = ω / k = λ f. The sign in front of ω t fixes the direction: a minus sign gives a wave moving toward +x, because the pattern kx − ωt = constant is satisfied by larger x at later times, and a plus sign gives a wave moving toward −x. And the derivative with respect to time gives the velocity of a particle of the medium, −A ω cos(kx − ωt + φ) for the +x wave, which has a maximum of A ω. The distinction between the speed of the pattern and the speed of a particle is the most common source of confusion, and the results panel shows both side by side.

Typical uses include checking homework, designing a signal at a given wavelength, predicting where a crest will be at a later time, and comparing two waves with different phase constants. Because the equation is linear, two such waves can be added to model interference, and the phase constant is exactly the quantity that decides whether they add or cancel. The wave speed ties in with the speed of sound calculator and the speed of light calculator, and the oscillation of a single point is the same simple harmonic motion that governs a pendulum, covered in the physical pendulum calculator.

Keep a few cautions in mind. The equation describes an ideal wave with constant amplitude, so it ignores damping and dispersion. The phase is in radians inside the sine, which is why the phase constant you type in degrees is converted before use. And k and ω are not the wavelength and frequency, they are those quantities multiplied or divided by 2π.

📐 Formula

y(x, t)  =  A sin(k x − ω t + φ)     v = ω / k = λ f
y = displacement of the medium at position x and time t, in the same unit as A (metres here).
A = amplitude, the maximum displacement from equilibrium.
k = wave number = 2π / λ, in rad/m.
ω = angular frequency = 2π f = 2π / T, in rad/s.
φ = phase constant (entered in degrees, converted to radians). For a wave toward −x the argument is k x + ω t + φ.
v = wave speed = ω / k. T = 1 / f is the period.
Particle velocity: ∂y / ∂t = −A ω cos(k x − ω t + φ) for the +x wave, with a maximum of A ω.
Example: A = 0.5 m, λ = 2 m, f = 1.5 Hz gives k = 3.1416 rad/m, ω = 9.4248 rad/s and v = 3.0000 m/s.

📖 How to Use This Calculator

Steps

1
Choose how the wave is described. Pick Wavelength and frequency if you know lambda and f, or k and omega if you know the wave number and the angular frequency.
2
Enter the wave parameters. Type the amplitude, the phase constant in degrees and the direction of travel, together with the two quantities of your chosen mode.
3
Enter the position and time. Type the position x in metres and the time t in seconds where you want the displacement.
4
Read the results and chart. The displacement, k, omega, speed, wavelength, period and particle velocity appear below, with a chart of the waveform or of the oscillation at your point.

💡 Example Calculations

Example 1 — A Wave on a Rope

A = 0.5 m, wavelength 2 m, frequency 1.5 Hz, moving toward +x, at x = 0.5 m and t = 0.1 s

1
k = 2π / 2 = 3.1416 rad/m and ω = 2π × 1.5 = 9.4248 rad/s.
2
v = ω / k = 3.0000 m/s, and the phase is 3.1416 × 0.5 − 9.4248 × 0.1 = 0.6283 rad.
3
y = 0.5 sin(0.6283) = 0.2939 m.
y = 0.2939 m, v = 3.0000 m/s
Try this example →

Example 2 — Starting From k and Omega

A = 0.05 m, k = 20 rad/m, ω = 600 rad/s, φ = 30°, toward +x, at x = 0.1 m and t = 0.002 s

1
v = 600 / 20 = 30.000 m/s, λ = 2π / 20 = 0.3142 m and f = 600 / 2π = 95.493 Hz.
2
Phase = 20 × 0.1 − 600 × 0.002 + 0.5236 = 2 − 1.2 + 0.5236 = 1.3236 rad.
3
y = 0.05 sin(1.3236) = 0.0485 m, and the maximum particle speed is A ω = 30.000 m/s.
y = 0.0485 m, f = 95.493 Hz
Try this example →

Example 3 — A Wave Moving Toward Negative x

A = 2 m, wavelength 4 m, frequency 0.5 Hz, φ = 90°, toward −x, at x = 0.5 m and t = 1 s

1
k = 2π / 4 = 1.5708 rad/m and ω = 2π × 0.5 = 3.1416 rad/s, so v = 2.0000 m/s.
2
For the −x wave the phase is k x + ω t + φ = 0.7854 + 3.1416 + 1.5708 = 5.4978 rad.
3
y = 2 sin(5.4978) = −1.4142 m, and the particle velocity is +A ω cos(5.4978) = 4.4429 m/s.
y = −1.4142 m, particle velocity = 4.4429 m/s
Try this example →

Example 4 — An Ocean Swell

A = 1.2 m, wavelength 8 m, frequency 0.25 Hz, toward +x, at x = 3 m and t = 2 s

1
k = 2π / 8 = 0.7854 rad/m, ω = 2π × 0.25 = 1.5708 rad/s, v = 2.0000 m/s and T = 4.0000 s.
2
Phase = 0.7854 × 3 − 1.5708 × 2 = 2.3562 − 3.1416 = −0.7854 rad.
3
y = 1.2 sin(−0.7854) = −0.8485 m, a point below the mean water level.
y = −0.8485 m, T = 4.0000 s
Try this example →

❓ Frequently Asked Questions

What is the harmonic wave equation?+
It is y(x, t) = A sin(k x - w t + phi), the displacement of a sinusoidal wave at position x and time t. A is the amplitude, k the wave number, w the angular frequency and phi the phase constant.
How do you find the wave number k?+
The wave number is k = 2 pi / lambda, in radians per metre. A 2 m wavelength gives k = 3.1416 rad/m. It tells you how much phase the wave gains per metre of distance.
How do you find the angular frequency omega?+
Use w = 2 pi f = 2 pi / T, in radians per second. A 1.5 Hz wave has w = 9.4248 rad/s. It is the phase gained per second at a fixed position.
How do you calculate wave speed from k and omega?+
The speed of the wave pattern is v = w / k, which equals lambda times f. With k = 20 rad/m and w = 600 rad/s the speed is 30 m/s.
What does the minus sign in kx - wt mean?+
It means the wave travels toward the positive x direction. A point of constant phase satisfies k x - w t = constant, so x grows as time grows. With a plus sign the pattern moves toward negative x.
What is the phase constant phi?+
The phase constant sets the displacement at x = 0 and t = 0. For phi = 0 the wave starts at zero going one way, and for phi = 90 degrees it starts at its maximum A, because the sine becomes a cosine.
What is the difference between wave speed and particle speed?+
The wave speed v = w / k is how fast the pattern moves along the medium. A particle only oscillates in place, with a velocity A w cos(phase) that peaks at A w. The two are generally different.
How do you find the displacement at a given x and t?+
Compute the phase k x - w t + phi in radians and take A times its sine. For A = 0.5 m, lambda = 2 m, f = 1.5 Hz, x = 0.5 m and t = 0.1 s the phase is 0.6283 rad and the displacement is 0.2939 m.
Is a negative displacement possible?+
Yes. The displacement swings between +A and -A, and a negative value just means the point is below the equilibrium position at that instant.
Does the wave equation work for sound and light?+
Yes, for any sinusoidal wave. For sound y can stand for pressure or displacement, and for light for the electric field, with the speed v set by the medium.
How far does the wave move in one period?+
Exactly one wavelength. In a time T the pattern advances by v T = lambda. That is why the dashed curve on the snapshot chart, drawn a quarter period later, is shifted by lambda / 4.

What is the harmonic wave equation?

It is y(x, t) = A sin(k x - w t + phi), the displacement of a sinusoidal wave at position x and time t. A is the amplitude, k the wave number, w the angular frequency and phi the phase constant.

How do you find the wave number k?

The wave number is k = 2 pi / lambda, in radians per metre. A 2 m wavelength gives k = 3.1416 rad/m. It tells you how much phase the wave gains per metre of distance.

How do you find the angular frequency omega?

Use w = 2 pi f = 2 pi / T, in radians per second. A 1.5 Hz wave has w = 9.4248 rad/s. It is the phase gained per second at a fixed position.

How do you calculate wave speed from k and omega?

The speed of the wave pattern is v = w / k, which equals lambda times f. With k = 20 rad/m and w = 600 rad/s the speed is 30 m/s.

What does the minus sign in kx - wt mean?

It means the wave travels toward the positive x direction. A point of constant phase satisfies k x - w t = constant, so x grows as time grows. With a plus sign the pattern moves toward negative x.

What is the phase constant phi?

The phase constant sets the displacement at x = 0 and t = 0. For phi = 0 the wave starts at zero going one way, and for phi = 90 degrees it starts at its maximum A, because the sine becomes a cosine.

What is the difference between wave speed and particle speed?

The wave speed v = w / k is how fast the pattern moves along the medium. A particle only oscillates in place, with a velocity A w cos(phase) that peaks at A w. The two are generally different.

How do you find the displacement at a given x and t?

Compute the phase k x - w t + phi in radians and take A times its sine. For A = 0.5 m, lambda = 2 m, f = 1.5 Hz, x = 0.5 m and t = 0.1 s the phase is 0.6283 rad and the displacement is 0.2939 m.

Is a negative displacement possible?

Yes. The displacement swings between +A and -A, and a negative value just means the point is below the equilibrium position at that instant.

Does the wave equation work for sound and light?

Yes, for any sinusoidal wave. For sound y can stand for pressure or displacement, and for light for the electric field, with the speed v set by the medium.