Audited 31 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Harmonic Wave Equation Calculator

Find the displacement y = A sin(kx − ωt + φ) of a sinusoidal wave at any position and time from amplitude, wavenumber, angular frequency and phase.

Harmonic Wave Equation Calculator

m
rad/m
m
rad/s
s
rad
Instantaneous displacement
0.4964
Sideways displacement of the medium at the chosen position and time, in metres; positive above the rest line, never larger than the amplitude.
Model scope
One-dimensional monochromatic sinusoidal wave traveling in the positive x direction under the displayed sign convention; superposition, envelopes, dispersion, damping, boundaries, polarization, and measurement uncertainty are outside it.

Background.

Flick one end of a long rope up and down at a steady rhythm and a train of identical humps runs along it. Freeze the motion and the rope traces a sine curve in space; watch one spot on it and that spot bobs up and down as a sine curve in time. The harmonic wave function y(x, t) = A sin(kx − ωt + φ) captures both pictures in a single line, giving the sideways displacement of any point x at any instant t.

Each symbol controls one feature of the wave. The amplitude A is the height of a crest above the rest position. The wavenumber k sets how tightly the crests are packed, since the wavelength is 2π/k. The angular frequency ω sets how quickly each point cycles, since the period is 2π/ω. The phase constant φ slides the whole pattern so that the point at x = 0 can begin its cycle anywhere at t = 0, not just at zero.

The minus sign between kx and ωt carries the direction. As time increases, a crest keeps the same phase only if x increases too, so the pattern moves toward positive x at a speed of ω/k. Swap the minus for a plus and the identical wave runs the other way.

This is the simplest wave possible: one frequency, one dimension, no loss of energy and nothing for it to reflect from. Real waves on strings, in air or on water are sums of many terms like this one, which is why it is worth knowing thoroughly before tackling them.

What is harmonic wave equation calculator?

The harmonic wave function describes a sinusoidal wave travelling in one direction along a line. It gives the transverse displacement y, in metres, of the medium at position x and time t. It is one solution of the wave equation, the differential equation ∂²y/∂t² = v² ∂²y/∂x², with wave speed v = ω/k. Every point of the medium performs simple harmonic motion with the same amplitude and frequency, each one slightly behind its neighbour in phase.

How to use this calculator.

  1. Enter the amplitude in metres and the wavenumber in radians per metre. If you know the wavelength λ instead, k = 2π/λ.
  2. Enter the angular frequency in radians per second. From an ordinary frequency f in hertz, ω = 2πf, so a 2 Hz wave needs 12.566.
  3. Enter the position x in metres, which may be negative, and the time t in seconds, which must be zero or more.
  4. Enter the phase constant in radians; multiply degrees by π/180. A phase of π/2, about 1.5708, makes the point x = 0 start at a crest.
  5. Read the displacement: positive above the rest line, negative below, and never larger in size than the amplitude.

The formula.

y(x,t) = A sin(kx - omega t + phi)

y = A sin(kx − ωt + φ). The bracket is the phase of the wave, in radians. The term kx turns distance into phase, adding k radians for every metre along the line; the term ωt turns elapsed time into phase, removing ω radians every second; φ is the starting offset. The sine of the phase lies between −1 and 1, and multiplying by A scales it to a displacement in metres. Following a point of constant phase, kx − ωt stays fixed, so x moves at ω/k, the wave speed. Wavelength λ = 2π/k, period T = 2π/ω and frequency f = ω/2π follow directly. Because the sine repeats every 2π, shifting x by one wavelength or t by one period leaves y unchanged. Amplitude, wavenumber and angular frequency must be positive.

A worked example.

Example

Take a wave with amplitude 0.5 m, wavenumber 2 rad/m and angular frequency 3 rad/s, phase constant 0.2 rad, and look at the point x = 1 m at t = 0.25 s. The phase is k·x − ω·t + φ = 2 × 1 − 3 × 0.25 + 0.2 = 2 − 0.75 + 0.2 = 1.45 rad. The sine of 1.45 rad is 0.992713, and multiplying by the amplitude gives y = 0.5 × 0.992713 = 0.496356 m, almost the full crest height. This wave has a wavelength of 2π/2 = 3.1416 m, a period of 2π/3 = 2.0944 s and moves at 3/2 = 1.5 m/s. A crest corresponds to a phase of π/2 = 1.5708 rad, so the crest passed x = 1 m about 0.040 s earlier and the point is now on its way down, moving at 0.181 m/s. Half a period later it will sit at −0.496356 m.

time S0.25
position M1
angular Frequency Rad Per S3
wavenumber Rad Per M2
amplitude M0.5
phase Rad0.2

Frequently asked questions.

How do I get the wavenumber and angular frequency from wavelength and frequency?
Use k = 2π/λ and ω = 2πf. A wave with a wavelength of 0.5 m has k = 12.566 rad/m, and one at 2 Hz has ω = 12.566 rad/s. The factor 2π appears because one full wavelength or one full cycle corresponds to 2π radians of phase.
Is the wave speed the same as how fast the rope moves?
No. The wave speed ω/k is how fast the pattern travels along the line. Each piece of rope moves sideways with velocity −Aω cos(kx − ωt + φ), which peaks at Aω as it passes the rest position. In the example both happen to be 1.5 m/s only because A × k equals 1.
My textbook writes sin(ωt − kx). Does that change the answer?
It describes a wave moving the same way, toward positive x, but the sign of the displacement flips: A sin(ωt − kx − φ) is exactly the negative of A sin(kx − ωt + φ). With the example numbers the other form gives −0.496356 m. Phase constants therefore cannot be copied between the two conventions without changing sign.
What does the phase constant actually change?
It shifts the whole wave along the line and in time without changing its shape, speed or height. With φ = 0 the point x = 0 starts at the rest line moving down; with φ = π/2 it starts at a crest, turning the sine into a cosine. Increasing φ by 2π brings you back to the same wave.
Can this describe a standing wave on a guitar string?
Not directly. A standing wave is the sum of two travelling waves moving in opposite directions, and A sin(kx − ωt) + A sin(kx + ωt) = 2A sin(kx) cos(ωt). This page handles a single wave travelling toward positive x, without reflections, damping or dispersion.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
y(x,t) = A sin(kx - omega t + phi)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon