Nails are classified both by their length in inches and by their "penny" size, written with "D" on the package. Here's how to determine the penny size of a nail. Take the length of the nail you need, subtract a half inch, and then multiply by four. For example, if you need a two and a half inch nail, subtract a half inch which leaves two, then multiply by four. This means you need an eight-penny nail.