The equation of continuity is a consequence of the conservation of mass and it applies to an incompressible fluid. The conservation of mass states that the mass flowing into the pipe is the same as that flowing out. Because the densities of the fluid are the same on both sides, the equation of continuity can be written as , where and are the cross-sectional areas of the pipe and and are the velocities.