This entirely depends on the material you are working with, but in general we recommend making sure the length of the nail is around three times the length of the material you are nailing through.