I'll let wikipedia explain it...
In any real moving fluid, energy is dissipated due to friction; turbulence dissipates even more energy for high Reynolds number flows. This dissipation, called head loss, is divided into two main categories, "major losses" associated with energy loss per length of pipe, and "minor losses" associated with bends, fittings, valves, etc. The most common equation used to calculate major head losses is the Darcy–Weisbach equation. Older, more empirical approaches are the Hazen-Williams equation and the Prony equation.