In fluid dynamics, the mild-slope equation describes the combined effects of diffraction and refraction for water waves propagating over bathymetry and due to lateral boundaries—like breakwaters and coastlines. It is an approximate model, deriving its name from being originally developed for wave propagation over mild slopes of the sea floor. The mild-slope equation is often used in coastal engineering to compute the wave-field changes near harbours and coasts.
The mild-slope equation models the propagation and transformation of water waves, as they travel through waters of varying depth and interact with lateral boundaries such as cliffs, beaches, seawalls and breakwaters. As a result, it describes the variations in wave amplitude, or equivalently wave height. From the wave amplitude, the amplitude of the flow velocity oscillations underneath the water surface can also be computed. These quantities—wave amplitude and flow-velocity amplitude—may subsequently be used to determine the wave effects on coastal and offshore structures, ships and other floating objects, sediment transport and resulting bathymetric changes of the sea bed and coastline, mean flow fields and mass transfer of dissolved and floating materials. Most often, the mild-slope equation is solved by computer using methods from numerical analysis.
A first form of the mild-slope equation was developed by Eckart in 1952, and an improved version—the mild-slope equation in its classical formulation—has been derived independently by Juri Berkhoff in 1972. Thereafter, many modified and extended forms have been proposed, to include the effects of, for instance: wave–current interaction, wave nonlinearity, steeper sea-bed slopes, bed friction and wave breaking. Also parabolic approximations to the mild-slope equation are often used, in order to reduce the computational cost.
In case of a constant depth, the mild-slope equation reduces to the Helmholtz equation for wave diffraction.
For a given angular frequency , the wavenumber has to be solved from the dispersion equation, which relates these two quantities to the water depth .
Through the transformation
where is the Laplace operator.
This transforms the mild-slope equation in the following set of equations (apart from locations for which is singular):
The last equation shows that wave energy is conserved in the mild-slope equation, and that the wave energy is transported in the -direction normal to the wave crests (in this case of pure wave motion without mean currents). The effective group speed is different from the group speed
The first equation states that the effective wavenumber is irrotational, a direct consequence of the fact it is the derivative of the wave phase , a scalar field. The second equation is the eikonal equation. It shows the effects of diffraction on the effective wavenumber: only for more-or-less progressive waves, with the splitting into amplitude and phase leads to consistent-varying and meaningful fields of and . Otherwise, κ2 can even become negative. When the diffraction effects are totally neglected, the effective wavenumber κ is equal to , and the geometric optics approximation for wave refraction can be used.
The mild-slope equation can be derived by the use of several methods. Here, we will use a variational approach. The fluid is assumed to be inviscid and incompressible, and the flow is assumed to be irrotational. These assumptions are valid ones for surface gravity waves, since the effects of vorticity and viscosity are only significant in the Stokes boundary layers (for the oscillatory part of the flow). Because the flow is irrotational, the wave motion can be described using potential flow theory.
The following time-dependent equations give the evolution of the free-surface elevation and free-surface potential 
From the two evolution equations, one of the variables or can be eliminated, to obtain the time-dependent form of the mild-slope equation:
and the corresponding equation for the free-surface potential is identical, with replaced by The time-dependent mild-slope equation can be used to model waves in a narrow band of frequencies around
Consider monochromatic waves with complex amplitude and angular frequency
with and chosen equal to each other, Using this in the time-dependent form of the mild-slope equation, recovers the classical mild-slope equation for time-harmonic wave motion:
The standard mild slope equation, without extra terms for bed slope and bed curvature, provides accurate results for the wave field over bed slopes ranging from 0 to about 1/3. However, some subtle aspects, like the amplitude of reflected waves, can be completely wrong, even for slopes going to zero. This mathematical curiosity has little practical importance in general since this reflection becomes vanishingly small for small bottom slopes.