A common rule-of-thumb is to provide a minimum length of thread engagement equal to the (major) diameter of the fastener. A more conservative rule-of-thumb is to use a thread engagement length of 1-1/2 times diameter.