Physics & Chemistry
Ocean Wave Calculator (Wavelength, Speed and Group Velocity)
Surfers, sailors, coastal engineers and forecasters all describe waves by their period, the time between successive crests passing a fixed point, because the period stays constant as a wave travels while its height and length change. Linear wave theory, developed by George Airy in the nineteenth century, links the period to the wavelength and speed through the dispersion relation: the square of the angular frequency equals gravity times the wavenumber times the hyperbolic tangent of the wavenumber times the depth. In deep water, where the depth exceeds half the wavelength, the hyperbolic tangent is almost one and the result is simple: the wavelength equals gravity times the period squared divided by two pi, about 1.56 times the period squared in metres, and the speed equals about 1.56 times the period in metres per second. A ten-second swell is therefore about 156 metres long and moves at roughly 15.6 metres per second, or 30 knots. In shallow water, where the depth is less than a twentieth of the wavelength, every wave travels at the square root of gravity times depth regardless of its period, which is why tsunamis slow dramatically near the coast. Between these limits the relation must be solved numerically. Wave energy travels at the group speed, which is half the phase speed in deep water and equal to it in shallow water. This calculator solves the full dispersion relation for any period and depth and returns the wavelength, phase speed, group speed, speed in knots and the depth regime.
How to use this calculator
- Enter the wave period in seconds, from a buoy report, a forecast or by timing crests.
- Enter the water depth in metres, or leave it blank for deep water.
- Read the wavelength and the phase speed of the crests.
- Read the group speed, the speed at which wave energy and swell trains travel.
- Check the depth regime to see whether the waves are feeling the bottom.
Why period matters for surf
Long-period swell, generated by distant storms, carries more energy for its height and feels the bottom earlier because its wavelength is longer. That is why a 15-second swell often produces much bigger, more powerful surf than a 7-second wind swell of the same offshore height.
Because group speed grows with period, the longest-period waves from a storm arrive first. Forecasters use the change in period over time to estimate how far away the storm was.
Limits of linear theory
Linear theory assumes small waves compared with their length and depth. Steep waves, breaking waves and waves in very shallow water need nonlinear theories such as Stokes or cnoidal waves for accurate results.
Currents also change the observed period and wavelength. Waves running against a strong current steepen and can become dangerous, as at some harbour entrances and tidal races.
Formula & method
Dispersion relation: ω² = g k tanh(k d), k = 2π ÷ L, ω = 2π ÷ TDeep water (d > L/2): L = g T² ÷ 2π ≈ 1.56 T², c = g T ÷ 2πShallow water (d < L/20): c ≈ √(g d)Group speed c_g = c ÷ 2 × (1 + 2kd ÷ sinh 2kd)The calculator solves L = (gT²/2π) tanh(2πd/L) by iteration, then c = L/T and c_g = (c/2)(1 + 2kd/sinh 2kd), with g = 9.80665 m/s².
Worked example
A 10-second swell in deep water and over a 5 m deep sandbar
- Deep water: L = 9.80665 × 10² ÷ 2π = 156.1 m, c = 15.6 m/s
- At 5 m depth the dispersion relation gives L ≈ 67.7 m
- There c ≈ 6.8 m/s, much slower than offshore
Answer: The swell shortens from about 156 m to 68 m and slows to less than half its offshore speed as it reaches shallow water.
Frequently asked questions
What is the difference between phase speed and group speed?
Phase speed is how fast individual crests move. Group speed is how fast a group of waves, and their energy, travels. In deep water the group moves at half the crest speed, so crests appear at the back of a group and vanish at the front.
When is water considered deep?
When the depth is more than half the wavelength. For a 10-second swell that means deeper than about 78 metres, so in most surf zones the waves are in intermediate or shallow water.
How do I measure the wave period?
Time how long it takes for several crests to pass a fixed point and divide by the number of intervals. Buoys report a peak or dominant period, which works well here.
Does wave height affect the speed?
Not in linear theory. In reality, large steep waves travel slightly faster than small ones of the same period, but the difference is usually a few percent.
Why do tsunamis travel so fast?
Their wavelengths are hundreds of kilometres, so even the deep ocean is shallow for them. Their speed is √(g × depth), about 200 metres per second over a 4,000 m deep ocean.
Can I use this for lakes?
Yes. The physics is the same for fresh water. Lake waves usually have short periods of a few seconds, so they are deep-water waves except near the shore.