Fasteners with heads that sit above the surface are measured from under the head to the end of the fastener, while fasteners that sit flush with the surface are measured from the top of the head to the end of the fastener.