Home / Science / Weather, ocean and climate / Physical oceanography / Water wave calculatorTool #139

Wave calculator: wavelength from period and depth, wave speed, power, shoaling, refraction and breaking depth

From a wave's period, height and the water depth, get the wavelength (solving the dispersion relation exactly), phase and group speed, energy and power, orbital velocity at the bed, then follow the wave into shallow water with shoaling and refraction to find where and how high it breaks, and the breaker type.

Keep it one tap away for everyday use.

Bookmark Water wave calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Wave
  2. Wavelength
  3. Shoaling
  4. Breaking
Nothing is uploadedWorks offline once open

Wave and water

Period: the time between crests, from a buoy report or a stopwatch. Height: crest to trough (use the significant height Hs for a sea state, as an approximation). The angle is 0 when the crests run parallel to the shore. γ = 0.78 is McCowan's classic value; 0.6 to 1.2 is seen on real beaches. The example values are made up.

At the measured depth

Into shallower water

Linear (Airy) wave theory over straight, parallel depth contours, with no friction, currents or wind. It is a good first estimate; steep waves in shallow water (a large Ursell number) are better described by nonlinear theories. Not for navigation or safety decisions.

Download

What it does

A wave’s period (the time between crests) hardly changes as it crosses the ocean, but its length, speed and height all change as the water gets shallower. In deep water a 10-second swell is 156 m long and races along at 15.6 m/s; near the beach it slows, shortens, grows taller and finally breaks.

This calculator solves the linear wave dispersion relation, ω² = g k tanh(k h), exactly by Newton’s method for any period and depth, and gives everything that follows from it. It then carries the wave towards the shore over straight, parallel depth contours, applying shoaling (the slowing wave bunches its energy into a taller wave) and refraction (crests turn to line up with the contours), and finds where it breaks.

How to use it

  1. Choose metres or feet.
  2. Type the period in seconds and the height (crest to trough). For a sea state, the significant wave height Hs and peak period from a buoy report give a useful approximation.
  3. Give the depth where that height applies (a buoy’s depth, or a large number such as 200 for deep water).
  4. Angle: 0 if the crests are parallel to the shore; otherwise the angle between the crests and the depth contours.
  5. Shallower depth: where you want to know the height, for example at a pier.
  6. Beach slope (1 in N) for the surf zone width and the breaker type, and the breaker index γ, the ratio of breaking height to depth (0.78 by default).

What the results mean

  • Wavelength and depth class: waves “feel” the bottom once the depth is less than half a wavelength. Below a twentieth of a wavelength they are shallow-water waves and travel at √(g h).
  • Phase speed C is how fast crests move; group speed Cg is how fast the energy (and a group of waves) travels. In deep water Cg is half of C.
  • Energy and power: a regular wave carries ρ g H² / 8 joules per square metre, and its power per metre of crest is energy × Cg. For a real sea described by Hs, the power is roughly half the regular-wave value.
  • Bed orbital speed: the peak back-and-forth water speed at the seabed, which decides whether sand moves.
  • Ursell number: when it is large (above about 25), the wave is too steep for its depth for linear theory to be accurate.
  • Breaker type: gentle beaches give spilling breakers, steeper ones plunging (tubes), and very steep shores surging waves.

Worked example

A made-up swell of period 10 s and height 2 m in 50 m of water: the wavelength is 151 m (h/L = 0.33, intermediate water), the phase speed 15.1 m/s and the group speed 8.55 m/s. The energy is 5.03 kJ/m² and the power about 43 kW per metre of crest. Carried straight in to 5 m depth it shoals to 2.33 m (Ks = 1.163). It breaks in about 3.26 m of water at 2.54 m high, where H reaches 0.78 times the depth. On a 1 in 50 beach that is a surf zone about 163 m wide, and the Iribarren number 0.17 (from the deep-water height of 2.09 m) means spilling breakers. Coming in at 20° instead, refraction trims the breaking height to 2.49 m in 3.19 m of water, with the crests turned to 7°.

FAQ

Why does the period not change? The number of crests passing per second must be the same everywhere, or waves would pile up somewhere.

Is this good enough for design? It is the standard first step, but real coasts have irregular contours, currents, friction and random seas. Use proper wave models and a coastal engineer for design.

Where the numbers come from

  • Linear (Airy) wave theory, dispersion relation, group velocity, energy flux, shoaling and Snell's law refraction: standard results, for example Dean, R. G. and Dalrymple, R. A. (1991), Water Wave Mechanics for Engineers and Scientists, and the US Army Corps of Engineers Coastal Engineering Manual (public domain).
  • Explicit wavelength approximation: Fenton, J. D. and McKee, W. D. (1990), Coastal Engineering 14, 499 to 513. Breaker index 0.78: McCowan (1894). Steepness limit 0.142 tanh(kh): Miche (1944). Breaker types from the Iribarren number: Battjes (1974).
  • Checked against an independent root-finding solution of the dispersion relation (SciPy) written for the tests; no data tables are used.
  • The example wave is made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-08.

Change log for Water wave calculator

  1. Add the rainfall runoff calculator (#141) Details on GitHub
  2. Add the water wave calculator: dispersion, energy, shoaling, refraction and breaking (#139) Details on GitHub

Every change to fibub

Related tools

Dimensionless numbers calculator #956 Give a fluid, a speed and a length and get the Reynolds, Mach, Froude, Weber, capillary, Bond, Ohnesorge, Prandtl, Péclet, Grashof, Rayleigh, Richardson, Strouhal and Knudsen numbers, each with a plain note on what regime the flow is in. Manning and weir flow calculator #140 Work out the discharge or normal depth in a rectangular, trapezoidal or triangular channel or a part-full pipe with Manning's equation, with velocity, Froude number, critical depth, specific energy, bed shear and a rating curve; and the flow over sharp-crested, V-notch, broad-crested or Cipolletti weirs, or the head for a given flow. SI or US units. Room acoustics calculator #938 Give a rectangular room's size and what its floor, ceiling and walls are made of, and get every room mode up to the frequency you choose (axial, tangential and oblique, with the boomy clusters flagged), plus the reverberation time in six octave bands by Sabine's and Eyring's formulas, with air absorption, the Schroeder frequency and the critical distance. Lattice Boltzmann wind tunnel #957 A live 2D wind tunnel in the browser: pick a cylinder, square, plate or airfoil, or draw your own shape, set the Reynolds number and watch the wake form and shed a Kármán vortex street, with drag, lift and Strouhal number measured as it runs. Trend and anomaly analyser #138 Paste or open a time series (yearly, monthly or any steps) and test for a trend with Mann-Kendall, the Hamed-Rao autocorrelation correction or the seasonal test, get Sen's slope with its confidence interval, a Pettitt change point and anomalies from a baseline period. Wave packet tunnelling #924 Send a Gaussian wave packet at a rectangular barrier, double barrier, step, well or smooth barrier and watch it split into reflected and transmitted parts. The time evolution runs in your browser by the split-step Fourier method, and the reflection and transmission it finds are compared with the exact stationary transmission averaged over the packet's energies. Ultrasound calculator #973 Work out what happens to an ultrasound pulse: acoustic impedance, how much reflects and transmits at a boundary (also at an angle), attenuation and penetration depth, wavelength and axial resolution, near-field length and beam spread, echo timing, and the Doppler shift with its aliasing limit. Darcy flow calculator #128 Groundwater flow from Darcy's law: flux, discharge, seepage velocity and travel time. Find the hydraulic gradient and flow direction from three or more wells, convert K to intrinsic permeability, and estimate K from a sieve curve (d10, Cu, Cc and Hazen). Standing waves calculator #941 Work out the notes a stretched string or an air column plays: the harmonic series with note names and cents, wavelengths and a picture of the first three standing waves. For pipes open at both ends, closed at one or closed at both, with end corrections. Or go the other way and find the string tension or pipe length for a target note. Coupled oscillators and normal modes #907 Line up to 12 masses joined by springs, between walls or floating free, and get every normal mode: its frequency, period and shape. Watch a single mode or any starting push move, see how the energy is shared between the modes, and download the motion. Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Bird song spectrogram #318 Open a WAV recording of a bird, frog, bat (if your recorder captures it) or insect and see its spectrogram. Set the FFT size, window, overlap, frequency range and contrast, then drag over a phrase to get its peak frequency, bandwidth and the length of every note. Your recording never leaves your device. Turing pattern simulator #352 Watch spots and stripes form from noise with the Gray-Scott and Gierer-Meinhardt reaction-diffusion models, with presets, editable parameters, a seed, a Turing stability check and a PNG download. Plus a morphogen gradient from a source with diffusion and decay, and where French-flag thresholds fall. Runs in your browser. Tuning system and cents calculator #421 Compare tuning systems: equal temperament with any number of steps, 5-limit just intonation, Pythagorean and meantone (quarter-comma and others). Get every note's ratio, cents and frequency from your reference pitch, its deviation from 12-TET and from pure intervals, the cents between any two ratios, and hear the notes and chords. Nothing is uploaded. Instrument harmonics analyser #422 Open a recording of one note (or record it with your microphone after pressing a button) and get its spectrum, fundamental frequency and nearest note, the level and tuning of each harmonic, the inharmonicity of stiff strings and the spectral centroid, with charts and CSV. The sound never leaves your device. Ocean currents calculator #507 Work out wind-driven and geostrophic ocean currents: wind stress from the bulk formula, Ekman transport, depth, surface current and spiral; coastal upwelling and Ekman pumping from wind stress curl; geostrophic current from a sea-level slope; thermal-wind current profile across two stations from density or dynamic height; Coriolis parameter and Rossby radii. Circuit simulator #621 Type or paste a SPICE-style netlist of resistors, capacitors, inductors and voltage or current sources, then get the DC operating point, an AC sweep with the Bode magnitude and phase at any node, or the voltage against time with pulse, sine or piecewise sources. Nothing is uploaded. Antenna calculator #632 Work out antenna sizes from the frequency: half-wave dipole and quarter-wave monopole lengths, a rectangular microstrip patch (width, effective permittivity, fringing length, edge resistance and inset feed) and a starting Yagi-Uda layout, with every formula shown. Tide predictor and harmonic analyser #832 Type or paste tidal constituents (amplitude and phase) and get the predicted water level, the times and heights of high and low water and the windows when the water is deep enough, with nodal corrections for the 18.6-year lunar cycle. Paste a water-level record to get its constituents back by least squares. Not for navigation. Quantum dot size (Brus equation) #860 Turn a quantum dot's first absorption peak or band gap into its size with the Brus equation, or a size into its gap and peak wavelength, using your own bulk gap, effective masses and dielectric constant. Shows the confinement and Coulomb terms, the exciton Bohr radius, a plot of gap against diameter, and an optional sizing curve of your own. Thin-film thickness from fringes #865 Work out a thin film's thickness from the interference fringes in its transmittance or reflectance spectrum: Swanepoel's envelope method gives the refractive index at every fringe and the thickness from whole-number orders; with a known index (constant or Cauchy) the fringe positions are enough; or count fringes between two wavelengths.