The best size nails to use when tying the bottom plate to the joists depends on a few factors. First, you should consider the lumber size you’re using for the bottom plate and joists. If it’s 2x4 or 2x6, the ideal nail size to use is 8d (2-inch) for 2x4s, and 10d (2-and-a-half-inch) for 2x6s. If a thicker size is used, then larger nails should be used so that they penetrate through both pieces.
Also consider the type of lumber that you’re using. If it’s a treated lumber, then a stainless steel nail is the best to prevent rust and corrosion. If it’s an engineered matter like LVL, then use a power-driven fastener like a lag bolt.
Finally, remember to use 2 nails for every joist at a 45-degree angle. This provides the most strength for the bottom plate connection.
Overall, it’s important to consider the size of lumber you’re using, the type of lumber, and the strength of nails to make sure you achieve the most secure and stable tie-in between the bottom plate and joists.