The male hinge usually attaches to the gate post while the female hinge secures to the upright of the gate frame.