When you’re building a deck, attaching a porch post to a concrete footing, or anchoring a 4×4 post to a wooden foundation, one of the most common questions I get as an anchor bolt supplier is simple: “What size anchor bolt do I need for a 4×4 post?” It sounds like a small detail, but skip the right size, and you’re looking at wobbly railings, a leaning porch, or even a structural failure down the line. I’ve been selling anchor bolts for over a decade, and I’ve seen every mistake from using a too-short bolt that pulls out after the first winter storm to an over-sized bolt that splits the 4×4 post’s base. Today, I’m breaking this down the way I explain it to every contractor, DIYer, and homeowner who walks through my warehouse doors. Anchor Bolts

First, let’s start with what a 4×4 post actually is, because that’s a trick a lot of people miss. When a lumber store labels a board a 4×4, it’s not 4 inches by 4 inches. Standard nominal lumber (the kind you use for decks, fences, and porch posts) runs a half-inch smaller on each side for the finished dimensions. A typical 4×4 post is actually 3.5 inches wide and 3.5 inches deep. That small difference matters a lot when you’re drilling for an anchor bolt—if you buy a bolt that’s too big, you’ll drill a hole that’s almost the width of the post, and the wood will split. I had a customer two years ago who tried to use a 5/8-inch bolt for a 4×4 post, and when he hammered the bolt into the pre-drilled hole, the entire base of the post split right down the middle. He had to saw off the base, trim it, and start over, which cost him three times what he would have saved buying the right size bolt.
Next, the size of the anchor bolt starts with two main factors: the load the post will carry, and the material you’re anchoring to. Most 4×4 posts are used for light-to-medium structural load: deck rail posts, small porch supports, fence line posts, or pergola posts. Heavy posts, like those supporting a second-story deck or a large covered porch, will need a different calculation, but we’re sticking to standard 4×4 applications here. Let’s start with the basics for concrete footings, which is the most common scenario people ask about.
For a 4×4 post anchored to concrete, the general rule of thumb we use here at the warehouse is this: the anchor bolt’s diameter should be no larger than 3/8 inch for light loads, and 1/2 inch for medium loads. Wait, hold on—let me make that clear, because I know everyone wants a hard number, but context matters. For fence posts or deck rail posts that only need to hold up to a few people leaning on them, a 3/8-inch diameter anchor bolt is perfect. For a porch post that will hold the weight of a small roof, you’ll want to step up to 1/2 inch. And for what you definitely don’t want: a 5/8-inch bolt. I can’t tell you how many times someone has walked in asking for a 5/8-inch bolt because they think “bigger is stronger,” but for a 3.5-inch wide post, a 5/8-inch bolt would leave only 1.45 inches of wood on either side of the hole, which is not enough to hold the post. The grain of the wood will split, and the bolt will pull right out of the post, no matter how much concrete is under it.
That’s not just a rule I made up. The International Residential Code (IRC), which is the standard for most residential construction in North America, lays out specific guidelines for post anchor bolts. For a nominal 4×4 post (actual 3.5 inches), the IRC requires that the anchor bolt be centered on the post, with a minimum of 1.5 inches of wood surrounding the bolt hole on all sides. Let’s do the math: if your bolt is 3/8 inch in diameter, half of that is 0.1875 inches. Add 1.5 inches on each side, plus the diameter of the bolt, and that gives you a total minimum width of 0.1875 + 1.5 + 0.375 + 1.5 + 0.1875 = 3.75 inches. Wait a second—your post is only 3.5 inches wide. That means a 3/8-inch bolt is the absolute maximum diameter you can use without exceeding the 1.5-inch margin? No, that can’t be right. Wait, no, I messed up the margin rule. The IRC says the distance from the edge of the hole to the edge of the post can’t be less than 1.5 inches for posts less than 6 inches wide. If your post is 3.5 inches wide, the total space available for the hole is 3.5 inches. Subtract the hole’s diameter, and you have the remaining space split between two sides: (3.5 – d) / 2, where d is the bolt diameter. So if (3.5 – d) / 2 is at least 1.5, then 3.5 – d = 3, so d = 0.5 inches. Oh, right! That’s where the 1/2-inch number comes in. A 1/2-inch bolt would leave (3.5 – 0.5) / 2 = 1.5 inches on each side, which meets the IRC requirement exactly. A 5/8-inch bolt would leave (3.5 – 0.625) / 2 = 1.4375 inches, which is just under 1.5 inches, so it doesn’t meet code. That’s why you’ll see code references all the time saying 1/2 inch is the maximum for a 4×4 post anchored to concrete.
Now, let’s talk about length, because size isn’t just diameter. The length of the anchor bolt is almost as important as the diameter. Too short, and it won’t embed enough in the concrete to hold the post; too long, and it’ll stick up too far, or you’ll hit rebar in the footing and have to drill a new hole. For concrete footings, the rule is that the anchor bolt should be embedded at least 7 inches into the concrete, and extend at least 3 inches into the bottom of the post. Wait, again, let’s adjust that for a 4×4 post. The bottom of a 4×4 post is usually cut to fit flat on the concrete, so if you’re using a nut and washer to attach the post to the bolt, the bolt needs to extend through the post by at least 2 inches, and then embed 7 inches into the concrete. That adds up to a total bolt length of at least 9 inches. But if the footing is thinner than standard—some smaller footings are 8 inches thick—you’ll need a shorter bolt, or you’ll have to use a different anchor type. For fence posts that are often set in gravel or backfill instead of a full concrete footing, the rule changes: you’ll need a longer anchor bolt, usually 18 to 24 inches, because it has to go through the post, down into the gravel, and have enough length to hold the post from leaning in wind.
Another factor people overlook is the type of anchor bolt. There are expansion anchors, wedge anchors, J-bolts, and sleeve anchors, and the size you choose depends on the base material. If you’re anchoring to concrete, a wedge anchor or a J-bolt is the most common. For wooden beams or posts attached to a wooden ledger, you might use a lag bolt instead of an anchor bolt, but that’s a different scenario. I always tell customers: if it’s a permanent outdoor structure (deck, porch, pergola), use a hot-dip galvanized anchor bolt. Regular galvanizing will rust in a few years, and rust expands, which can crack the concrete or split the post. Hot-dip galvanized bolts are coated with a thick layer of zinc, so they last 20 to 30 years without rusting. That’s not a cost I’d skimp on for a 4×4 post—you don’t want to have to replace the anchor bolts halfway through your deck’s life.
Wait, let’s test this with real examples to make it easier. Suppose you’re building a 10×12 backyard deck with 4×4 rail posts. Each post is anchored to a 10-inch concrete footing. What size bolt do you need? Let’s break it down: load is medium, so diameter is 1/2 inch. Footing is 10 inches thick, so embedment depth is 7 inches, plus 2 inches through the post, plus 1 inch extra for the nut and washer, for a total length of 10 inches. That’s perfect—1/2-inch diameter, 10-inch long hot-dip galvanized J-bolt. That meets IRC code, will hold up to the weight of the deck and people leaning on the rail, and won’t split your 3.5-inch 4×4 post.
Another example: a 6-foot tall fence line post, anchored to 2 feet of backfill and gravel. Load here is light, so 3/8-inch diameter is fine. You’ll need an anchor bolt that’s at least 18 inches long: 6 inches through the post, 12 inches into the ground. A 3/8-inch x 18-inch J-bolt works here, and because it’s only a fence post, you don’t need a 1/2-inch bolt—saving you a few bucks without sacrificing strength.
Now, what are the most common mistakes I see here? First, using a bolt that’s too small. A lot of people will grab a 1/4-inch bolt because it’s cheap, but that’s way too small. A 1/4-inch bolt can only hold a few hundred pounds, and a 4×4 post for a deck can easily carry 1,000 pounds or more from wind and weight. Second, using a bolt that’s too big, which splits the post like I mentioned earlier. Third, not embedding the bolt deep enough in the concrete. If you have a 10-inch footing and your bolt only goes 5 inches into the concrete, it will pull out in a strong wind. Fourth, using a regular zinc-plated bolt instead of hot-dip galvanized. I had a customer last summer who used a 1/2-inch regular bolt for a porch post, and two years later, it was so rusted that the nut came loose and the post wobbled so bad he had to rebuild the porch. Hot-dip galvanized is the way to go, no exceptions.
If you’re still not sure, here’s a quick checklist for your 4×4 post:
- Confirm your post’s actual size: 3.5 inches for standard nominal 4×4 lumber.
- Calculate your load: light (fence rail, small pergola) = 3/8-inch diameter bolt; medium (deck rail, small porch) = 1/2-inch diameter bolt; heavy (second-story support) = check with a structural engineer, but you’ll likely need a 5/8-inch bolt for that, even if it’s a 4×4.
- Get the right length: total bolt length = embedment depth into concrete (min 7 inches) + depth through post (min 2 inches) + 1 inch for nut and washer = min 10 inches for concrete footings; for backfill, 18 to 24 inches total length.
- Pick hot-dip galvanized material for outdoor use.

At the end of the day, the right size anchor bolt for a 4×4 post isn’t just a number—it’s the right combination of diameter, length, and material that meets code and fits your specific project. I’ve helped thousands of customers get this right, and I’m here to help you too. Whether you’re a contractor needing a bulk order or a DIYer working on your first deck, we can walk through your project, confirm the exact bolt size you need, and answer any questions you have about installation, material, or code requirements. Don’t risk a wobbly post or a structural issue—reach out to us to discuss your project and get the right anchor bolts for your needs.
Flat Washers REFERENCES
International Residential Code (IRC) 2021, Chapter 23: Residential Structures.
American Forest & Paper Association (AF&PA) National Design Specification for Wood Construction, 2018.
Concrete Reinforcing Steel Institute (CRSI) Manual of Concrete Practice, 2020.
Handan Jihao Fastener Co., Ltd.
We’re known as one of the most professional anchor bolts manufacturers and suppliers in China. With abundant experience, we warmly welcome you to wholesale customized anchor bolts made in China here from our factory. If you have any enquiry about cooperation, please feel free to email us.
Address: A2, Row 31, Feiyu Screw World, Hebei Pu, Linmengguan Town, Yongnian District, Handan City, Hebei Province
E-mail: wenzhaona0@gmail.com
WebSite: https://www.chinaboltnut.com/