Lumber Needed Calculator: Studs, Joists, Rafters, Deck Boards

Lumber Needed Calculator

Count the framing pieces you need – wall studs, floor joists, roof rafters, or deck boards – from run length and on-center spacing, then add plates, rim board, corners, openings, and waste.

🔨Real Framing Presets

📝Framing Inputs

Wall length, joist/rafter run, or deck length along the boards.

Each corner or rough opening adds extra studs (kings, jacks, cripples).

Bottom plate + top plate(s) as continuous linear feet of lumber.

Pieces needed 0 base count from spacing
Plates / rim board 0 ft continuous linear feet
Total with waste 0 order this many pieces
On-center used 16 in spacing in the formula

🔢Count Formula Snapshot

LRun length (in)
OCSpacing (in)
+1End member
x2Both roof sides

📏On-Center Spacing Standards

SpacingWhere UsedMembers Per FtNotes
12 in OCHeavy loads, stairs, tile floors1.0 + endStiffest, most lumber
16 in OCWalls, floors, roofs (standard)0.75 + endThe framing default
19.2 in OCEngineered floors, some roofs0.625 + endFive per 8 ft sheet
24 in OCNon-bearing, garages, sheds0.5 + endAdvanced framing

🏗Studs Per Wall Length

Wall Length12 in OC16 in OC24 in OCAdd Corners
8 ft975+2 to 3
10 ft1196+2 to 3
12 ft13107+2 to 3
16 ft17139+3 to 4
20 ft211611+3 to 4
24 ft251913+4 to 6
32 ft332517+4 to 6

📊Joists / Rafters Per Span

RunJoists 16 OCJoists 24 OCRafters 16 OC (x2)Rafters 24 OC (x2)
10 ft961812
12 ft1072014
14 ft1282416
16 ft1392618
20 ft16113222
24 ft19133826
32 ft25175034
40 ft31216242

🪜Deck Board Counts

Deck Width2x6 @ 3/16 Gap2x4 @ 3/16 GapComposite 5.25 inCoverage / Board
8 ft (96 in)1727185.69 in
10 ft (120 in)2233235.69 in
12 ft (144 in)2640275.69 in
14 ft (168 in)3046315.69 in
16 ft (192 in)3453365.69 in
20 ft (240 in)4366455.69 in

🗂Length vs Pieces Comparison

Run Length12 OC16 OC19.2 OC24 OCRafters 16 OC x2
8 ft976514
10 ft1198618
12 ft13109720
14 ft151210824
16 ft171311926
20 ft2116141132
24 ft2519161338
32 ft3325211750
40 ft4131262162

Full Formula Breakdown

Convert lengthRun is converted to inches: feet × 12, meters × 39.3701, or inches as entered.
Base member countpieces = ceil(run_in / OC) + 1. The +1 is the end stud, joist, or rafter that closes the run.
Wall studsAdd extra studs = (corners + openings) × extras-per. Plates = wall length × plate rows in linear feet.
Floor joistsBase count plus 2 rim (band) joists that cap the ends of the joist run.
Roof raftersBase count is one slope; total rafters = base × 2 for both roof sides of a gable.
Deck boardsboards = ceil(deck_width_in / (board_face + gap)). Each board covers face + one gap.
Waste factorTotal ordered = ceil(pieces × (1 + waste%/100)) to cover offcuts and bad boards.

📋Reference Values

ItemCommon ValueHow It Is UsedEffect on Count
End member+1 alwaysAdded after divisionBoth ends of the run
Corner studs2 to 3 eachMultiply by countAdds to stud total
Rough opening3 to 4 eachKings, jacks, cripplesAdds to stud total
Top / bottom plates2 to 3 rowsLength × rowsLinear feet, not pieces
Rim / band joist2 piecesCaps joist endsAdds to joist total
Deck board gap1/8 to 1/4 inAdded to face widthWider gap, fewer boards

💡Practical Framing Tips

16 OC is the standard: Most walls, floors, and roofs are framed 16 in on-center so sheathing and drywall land on a stud at 48 in. Use 24 in only for non-bearing or advanced framing.
Add for openings & corners: The base count assumes a plain wall. Every corner needs 2 to 3 studs and every door or window adds kings, jacks, and cripples – count each and add them in.

Standing in the lumber aisle with a two-by-four in hand, attempting to mentally calculate its length times however-many-walls-you-havent-built-yet is a special sort of panic attack. Bad estimates can be costly during construction. Too few and you’re making an additional trip back to yard. Too many and you’re paying for wood that’ll become scrap in your garage or firewood. And it shouldn’t be a guess. It should be an exact count, one that includes everything: studs, rafters, joists, no wiggle room. While the math isn’t hard (it’s easier than it appears), our human brains are not very good at doing long feet divided by short inches when we’re standing in a loud hardware store.

First, select an on-center spacing, meaning how far apart the studs, joists, or rafters will be from each other. Most house framing use sixteen inches as the spacing because that’s what matches sheet sizes of drywall and siding, etc., perfectly. Switching to twenty-four inch spacing reduce your amount of wood but can make it harder to attach your finish materials. Second, determine your run length, or how much span of room you plan to cross, such as twelve foot across a floor bay or twenty feet along an exterior wall. The calculator above does all the division and conversion for you, so you won’t have to do it on a napkin.

Why You Should Use a Lumber Calculator

“Counting up the bases is not as important as knowing how many get added to it.” The most overlooked part of any wall is its end. Framed with 16-inch centers, a typical eight-foot-tall wall has six spaces in it. So there will be seven studs … plus one more. That last one completes the circle. You also have corners, where you need extra pieces. Code typically require a double stud in every corner or a special arrangement that totals two or three extra pieces per joint.

The worst part is openings. Just one window demands king studs on either side, jack studs supporting the header, and cripple studs above and below. Before you know it, one rough opening has cost you four or five pieces, right off the bat. This is by far the most common reason why someone runs short.

And then there are plates. Plates don’t get enough attention. Vertical studs yes, but you’re also purchasing horizontal top and bottom plates, which cap and anchor wall to the floor respectively. Many codes call for double top plates as well, which tie intersecting walls together. So you now have linear footage requirements equivalent to wall length times 3 to cover the plates alone. The tool accounts for this, taking that linear requirement and translating it into an actual number of boards given your selected lumber length. This separates out the horizontal bindings from the vertical pieces and lets you know exactly how much volume you’re getting, keeping the math honest.

Then there’s roofing: You’re working on two slopes per run, which adds some complexity all its own. On a gabled roof, for example, you’re actualy creating rafters on both sides, which effectively doubles your count compared to a single wall of the same width. So even though it looks like only one side, if you have a forty-foot span and you space your rafters every sixteen inches, you’re going to use a lot more wood than you might think. Thankfully, the calculator takes symmetry into account, by itself. And it lets you add a factor for waste, too.

Off-cuts are inevitable with framing. You might have boards with poor knots, mistakes, or angular cuts. Adding ten to fifteen percent to your overall figure isn’t just a suggestion. It’s insurance against being mid-project on a Saturday afternoon and discovering you’ve got no lumber left in the yard because the place is closed. That’s insurance against being mid-project on a Saturday afternoon and discovering you’ve got no lumber left in the yard because the place is closed.

The math works the same way with decks except instead of height (vertical) it’s width (horizontal). With decks, your variables are the gap between each board and their width (face). For expansion and drainage reasons, a three-sixteenth inch gap is typical. To cover the same amount of deck, the fewer the number of boards required, the greater their width. Enter the width of the boards into the tool, change to studs or deck boards, and it immediately re-calculates according to the new dimensions you set. No more guessing about how many 5 foot long boards vs. 10 foot ones will be needed.

If you’re like me and want to double-check their math before placing an order, they include a set of reference tables in the tool that demonstrate exactly how many pieces get scaled by the spacing and length. This helps reinforce why using tight spacing will eat into your budget faster, and it’s just a nice sanity check. I know it seems like a small thing, but when you’re working on a budget for this project, it matters.

Knowing the exact number means you can purchase only what you actualy need. Stop guessing and get everyone working together. And that peace of mind is worth a couple minutes inputting your own numbers.

Lumber Needed Calculator: Studs, Joists, Rafters, Deck Boards