Five-axis flank milling is applied to manufacture spiral bevel or hypoid gears. Tangency is formulated for cutter envelope and designed surfaces along a given line. An closed-form approximate model is proposed to represent geometric deviations. Geometric deviations are minimized to contact area rather than whole tooth surface.