As with any bolt and thread, a minimum of at least 1 1/2 times the thread diameter should be in the hole for maximum strength.

Joe