A good rule of thumb is that the screw should drive through to about half the thickness of the bottom piece. So a 1" thick piece being screwed to a 2" thick piece should have a 2" screw.
--
For full context, visit
https://www.homeownershub.com/woodwo...-go-83202-.htm