Three holes, one screw
A correctly driven wood screw uses up to three drill sizes. The clearance hole lets the shank slide through the top board, the pilot hole guides the threads into the bottom board without splitting it, and the countersink seats a flathead flush. Pick the screw gauge and whether the wood is hardwood or softwood and the chart returns all three sizes.
Hardwood wants a bigger pilot
Dense species grip threads so well that the screw can snap or split the board before it seats. The chart drills hardwood pilots one size larger than softwood pilots for the same screw. For a bolt or a lag screw, consult its own chart; these figures cover standard wood screw gauges from #2 through #14.
When in doubt, test
Charts are starting points, not guarantees. End grain, short distances to an edge and brittle species like cherry all raise the risk of splitting. Drill a test joint in a scrap of the same stock and check the screw seats snugly before committing to the project.