A quantitative theory is described for the formation mechanism of sand bars
under surface water waves. By assuming that the slopes of waves and bars a
re comparably gentle and sediment motion is dominated by the bedload, an ap
proximate evolution equation for bar height is derived. The wave field and
the boundary layer structure above the wavy bed are worked out to the accur
acy needed for solving this evolution equation, It is shown that the evolut
ion of sand bars is a process of forced diffusion. This is unlike that for
sand ripples which is governed by an instability. The forcing is directly c
aused by the non-uniformity of the wave envelope, hence of the wave-induced
bottom shear stress associated with wave reflection, while the effective d
iffusivity is the consequence of gravity and modified by the local bed stre
ss. During the slow formation, bars and waves affect each other through the
Bragg scattering mechanism, which consists of two concurrent processes: en
ergy transfer between waves propagating in opposite directions and change o
f their wavelengths. Both effects are found to be controlled locally by the
position of bar crests relative to wave nodes. Comparison with available l
aboratory experiments is discussed and theoretical examples are studied to
help understand the coupled evolution of bars and waves in the field.