Last updated
How many 2x4s to build a shed depends on size and roof. Framed at 16 in on center with a gable roof, an 8×8 shed takes about 70, an 8×10 about 77, a 10×12 about 93 and a 12×16 about 121. A 10×12 lean-to needs about 52 2x4s, but adds 2×6 rafters.
Those counts are whole boards you carry out of the store, at 8, 10, 12, 14 or 16 ft, not cut pieces. They come from the 3DSHEDPLANS plan generator, which models every stud, plate, rafter and block of a shed, then packs the cut lengths onto real board lengths. Below are the counts for 15 sizes, where the boards go, and how to check your own list. None of the counts include spares.
How many 2x4s to build a shed, by size
Sizes read depth first: a 10×12 is 10 ft front to back and 12 ft along the ridge. Every row below uses the same settings: 94 1/2 in walls (studs cut to 90 in), studs, joists and rafters at 16 in on center, one door and one window, a floor on pressure-treated 4×4 skids with 2×6 joists, and a 6/12 roof on the gables and hip. The lean-to rows use an 80 in low wall and a 3/12 roof instead. Floor joists and skids are pressure-treated and are not in the 2×4 count.
| Shed and roof | 2×4 boards | Full-height wall studs | Rafter size |
|---|---|---|---|
| 8×8 gable | 70 | 30 | 2×4 |
| 8×10 gable | 77 | 33 | 2×4 |
| 8×12 gable | 83 | 36 | 2×4 |
| 10×10 gable | 88 | 37 | 2×4 |
| 10×12 gable | 93 | 39 | 2×4 |
| 10×16 gable | 106 | 44 | 2×4 |
| 12×12 gable | 106 | 40 | 2×4 |
| 12×16 gable | 121 | 45 | 2×4 |
| 12×20 gable | 146 | 52 | 2×4 |
| 12×24 gable | 160 | 57 | 2×4 |
| 16×24 gable | 120 | 63 | 2×6 |
| 10×12 lean-to | 52 | 40 | 2×6 |
| 12×16 lean-to | 55 | 46 | 2×6 |
| 10×12 hip | 76 | 39 | 2×4 commons and jacks, 2×6 hips |
| 12×16 hip | 95 | 45 | 2×4 commons and jacks, 2×6 hips |
The 10 ft deep sizes (10×10, 10×12, 10×16 and the 10×12 lean-to and hip) include 2 extra 2×4 x 8 ft for blocks under the floor decking seams, because their floors are longer than one 8 ft sheet. Add about 5 to 10 percent for spares: a 10×12 gable becomes roughly 98 to 102 boards. Doubled 2×6 door and window headers are bought on their own lines and are not in the count. The 12×20, 12×24 and 16×24 also take 2 pressure-treated 2x4s as splice plates for their long skids, which are not counted here.
Temporary boards come on top of every row, and you can reuse them later. Every size needs 8 straight 2×4 x 12 ft for wall braces. Gables with a ridge 16 ft or longer (10×16, 12×16, 12×20, 12×24 and 16×24) add 1 more 2×4 x 12 ft as a ridge post, and the hips add 2 ridge posts at 12 ft plus 4 post braces at 8 ft.
Where the 2x4s go in a 10×12 gable shed
The 10×12 gable sits in the middle of the table, so here is how its 93 boards split up. These are cut pieces, so one board often yields two parts.
| Job | Pieces | Cut length |
|---|---|---|
| Full-height wall studs | 39 | 90 in |
| Bottom plates and top plates | 8 | 113 to 144 in |
| Cap plates (second top plate) | 4 | 120 to 137 in |
| Door and window trimmers, cripples, sill | 13 | 6 to 77 in |
| Rafters and fly rafters | 24 | about 77 in |
| Rafter ties and collar ties | 12 | 120 in and about 45 in |
| Gable end studs | 14 | 7 to 27 in |
| Frieze and lookout blocks | 34 | 2 1/2 to 14 in |
As a shopping list, that becomes 57 2×4 x 8 ft, 6 at 10 ft, 14 at 12 ft and 14 at 14 ft, plus 2 at 8 ft for decking seam blocks. The 14 ft boards each yield two 77 in rafters, and the short blocks come out of offcuts. Our 10×12 shed material list walks through the whole list, including sheets, shingles and nails.
How many studs: the formula vs the real count
Framing calculators use one formula per wall: length in inches divided by 16, plus 1. For a 10×12 shed that is 10 for each 12 ft wall and 8.5, rounded to 9, for each 10 ft wall, about 38 in all. The older rule of thumb, one stud per foot of wall, gives 44 and pads for corners and openings.
The generator counts 39 full-height studs. The door and window take wall space and get trimmers and short cripples instead. So the formula is 1 stud low here and the rule of thumb is 5 high. Some sheds frame walls at 24 in on center, which cuts the studs by about a third; check the span rating stamped on your siding and follow your plan before you change the spacing.
The catch is that studs are only 39 of the 93 boards on a 10×12 gable. The rest are plates, which run three courses around the walls (bottom plate, top plate and cap plate), opening framing, and the whole roof.
How roof style changes the count
At 10×12 the roof style moves the 2×4 count from 52 to 93, though part of that is a swap to 2×6 lumber. Here is what changes between the three roof styles:
- Gable (93 boards). 2×4 rafters at 16 in, a rafter tie at each interior pair, collar ties, and stepped gable studs in each triangle. See our gable shed plans.
- Hip (76 boards). Common rafters and short jack rafters are 2×4, but the four hip rafters are 2×6. There are no gable triangles to fill, so the gable studs disappear.
- Lean-to (52 boards). The rafters are 2×6 because each one spans the full depth of the shed, so the list carries 16 2×6 boards in all: 12 at 12 ft for rafters and fly rafters, the rest for blocking and the window header. That makes 68 framing boards against 95 for the gable (93 2x4s plus a 2×6 ridge and header). There is no ridge, no gable framing and no rafter ties. The high wall uses longer studs, up to about 105 in on a 10×12. See our lean-to shed plans.
On a 10 ft deep gable each rafter is about 77 in, so one 14 ft board gives two rafters. On a 12 ft deep gable each rafter is about 90 in, so it takes a whole 8 ft board. That is why the 12×12 needs 13 more boards than the 10×12, even though it is only 2 ft deeper.
Larger sheds can also switch lumber. At 16 ft deep the generator moves the rafters from 2×4 to 2×6 to stay within its span check, so the 16×24 gable needs fewer 2x4s (120) than the 12×24 (160), but adds 2×6 rafters on their own line. Rafter size depends on span, spacing, grade and snow load. Check the AWC span calculator or your local permit office before you change a rafter size in any plan.
What size is a 2×4, and which length to buy?
A 2×4 is named by its nominal size, not its finished size. It measures about 1 1/2 in by 3 1/2 in, as the American Wood Council explains. With 2×4 walls, a 12 ft wide shed is about 137 in wide inside the studs, not 144.
Buy by line, not by total. Ten 2×4 x 12 ft are not the same as fifteen 2×4 x 8 ft, even though both add up to 120 ft, because a 137 in cap plate will not come out of an 8 ft board.
Many stores also sell precut studs, often 92 5/8 in long, sized for 8 ft house walls. The studs in this article are cut to 90 in, so precuts work only if you trim each one. Check the tag against your plan’s stud cut length before you load the cart.
Boards twist and cup as their moisture changes, as the USDA Wood Handbook explains. Frame soon after delivery and keep the stack flat, off the ground and covered.
How to estimate 2x4s for your own shed
If your size is not in the table, you can get close with five steps.
- Studs: one per foot of wall at 16 in on center, or (length in inches / 16) + 1 per wall. Subtract about 2 for each door or window.
- Plates: 3 boards per wall (bottom plate, top plate, cap plate), each as long as the wall. Walls longer than 16 ft need spliced plates.
- Door and window framing: about 3 boards per opening. Each trimmer takes most of an 8 ft board; cripples and sills come from what is left.
- Rafters: for a gable, (width in inches / 16 + 1) x 2, plus 4 fly rafters at the rakes. Count how many rafters fit on each board.
- Ties, gable studs and blocks: add about a third of the total so far.
For a 10×12 gable that gives 40 studs, 12 plate boards, 6 boards of opening framing and 12 rafter boards (two rafters per 14 ft board): 70, plus a third, is about 93. The same steps give about 73 for an 8×8 and 133 for a 12×16, against 70 and 121 in the table, so treat the result as a ceiling and compare it with the closest row.
Common mistakes that leave you short
- Buying one length. A pile of 8 ft boards cannot make 12 ft plates. If you must splice a plate, land each joint on a stud and keep the top plate and cap plate joints at least 4 ft apart, as our plans do.
- Forgetting the temporary boards. Walls need diagonal braces until the siding goes on, and longer ridges need a post while the rafters go up. Budget 8 to 14 straight boards you can reuse later.
- Using crooked boards for plates. Set aside the straightest boards for plates and trimmers. Install rafters and ties crown up, and cut badly crowned boards into short blocks.
- Mixing up treated and plain lumber. In the generator lists the skids, rim joists and floor joists are pressure-treated. The wall and roof 2x4s are plain framing lumber, so keep the two piles apart and use fasteners rated for treated lumber where they meet.
Plans that fit
Every 3DSHEDPLANS plan PDF includes a printable material list by board length and a cut list. A plan’s own list can differ a little from these generator counts with its door and window layout, so shop from the plan.
- 8×8 gable shed plan: about 70 2x4s.
- 8×10 gable shed plan: about 77 2x4s. You can download the free 8×10 preview PDF first.
- 10×12 gable shed plan: about 93 2x4s.
- 12×16 gable shed plan: about 121 2x4s.
- 10×12 hip roof shed plan: about 76 2x4s plus four 2×6 hips.
To compare all lumber, sheets and shingles at once, try the shed material calculator, or see our guide on how to read a shed material list. All sizes and roof styles are on the shed plans page.
Frequently asked questions
How many 2x4s do I need for an 8×10 shed?
About 77 for an 8×10 gable shed with 94 1/2 in walls, a 6/12 roof and framing at 16 in on center: 49 at 8 ft, 13 at 10 ft, 11 at 12 ft and 4 at 14 ft. Add 8 more 2×4 x 12 ft if you want temporary wall braces.
How many 2x4s do I need for a 12×16 shed?
About 121 for a 12×16 gable shed: 92 at 8 ft, 7 at 12 ft, 16 at 14 ft and 6 at 16 ft. That covers 45 wall studs, plates, door and window framing, 2×4 rafters, ties and gable studs. Add 8 temporary braces and 1 temporary ridge post.
How many studs do I need for a shed wall?
Per wall, divide the length in inches by 16 and add 1. A 10×12 shed comes to about 38 that way, and one per foot of wall gives 44. Our generator counts 39 full-height studs, because trimmers and cripples around the door and window replace some studs.
How many 2x4s do I need for a 10×16 shed?
About 106 for a 10×16 gable shed: 66 at 8 ft (2 of them for floor seam blocks), 6 at 10 ft, 11 at 12 ft, 17 at 14 ft and 6 at 16 ft. Add 8 temporary wall braces and 1 temporary ridge post, all 2×4 x 12 ft.
Should I buy extra 2x4s?
Yes. Add about 5 to 10 percent, as one or two spares per board length, for split or badly crowned boards. Temporary boards come on top: 8 wall braces for every size, 1 ridge post on gables with a 16 ft or longer ridge, and 2 posts plus 4 post braces on a hip.
Shed building guides
- 10×12 Lean-To Shed Material List: Lumber, Sheets, Hardware
- 10×10 Shed Designs: Layouts, Ideas and Floor Plans
- 12×24 Shed Material List: Lumber, Sheets and Hardware
- What Size Shed Do I Need? Size Chart by What You Store
- Shed Material Calculator: Lumber, Sheets, Shingles by Size
- 12×20 Shed Material List: Lumber, Sheets and Hardware
