CalcWorks

Home › Lumber

Stud Calculator

Quick start:
Units:Switches the numbers you type and the answers. Diagrams, examples and product sizes stay in feet/inches for now.
Studs needed
—
Top plate length
— ft
Bottom plate length
— ft
Total lumber
— ft
Estimated stud cost
$—

Formula verified · Updated Nov 2026

Results update as you type. Estimates only — confirm final quantities before ordering.

Enter a wall's length and height, the stud spacing and the number of doors or windows, and this calculator gives you the stud count, the top and bottom plate lengths, and the total lineal feet of lumber to buy. Spacing is 16 inches on center by default — the standard for most residential walls — with a double top plate, which is standard on load-bearing walls.

Wooden wall studs framing a house under construction
Embed this calculator

Paste this code into your site to show this calculator on your own page. Adjust the height if the calculator is cut off or leaves a large gap.

The formula

Studs = floor(Wall length × 12 ÷ Spacing) + 1 end stud + 2 × Openings
Top plate = Wall length × 1 (single) or × 2 (double)
Bottom plate = Wall length
Total lumber = Studs × Height + Top plate + Bottom plate
Cost = Studs × Price per stud

The stud count is a planning figure: one end stud closes the run, and each door or window opening adds 2 studs — a king stud and a jack stud on one side of the opening in the simplified count used here (a real opening uses a king and jack on both sides, plus a header and a sill, so count the full opening framing from your plans for the final order). Corners, wall intersections and blocking add a few more studs, so buy two or three spares on a long wall.

Worked example

Example: a 20 ft long, 8 ft high wall at 16 in on center, double top plate, with 1 door opening.

Reference chart

Studs per wall length at 16 in and 24 in on center (before openings — add 2 studs per door or window)
Wall lengthStuds @ 16 in o.c.Studs @ 24 in o.c.Top plate (double)Bottom plate
8 ft7516 ft8 ft
12 ft10724 ft12 ft
16 ft13932 ft16 ft
20 ft161140 ft20 ft
24 ft191348 ft24 ft
Each door / window+2 studs+2 studs——

Frequently asked questions

How far apart should wall studs be?

Sixteen inches on center is the standard for most residential walls — it matches the 4 ft width of drywall and sheathing, so every sheet edge lands on a stud. Twenty-four inches on center is permitted for some 2×6 walls and non-load-bearing partitions under the International Residential Code, and it saves lumber, but drywall and sheathing need to be rated for the wider span. Twelve inches on center is used for tile backer walls and other heavy-duty cases.

How many studs do I need for a 20 ft wall?

At 16 inches on center, a 20 ft wall needs floor(240 ÷ 16) + 1 = 16 studs before openings — 15 spaces plus one end stud. Add 2 studs per door or window opening, so a 20 ft wall with one door needs 18 studs. At 24 inches on center the same wall needs 11 studs before openings. The calculator does this arithmetic for any length, spacing and opening count.

What is a top plate, and why double it?

The top plate is the horizontal board nailed across the tops of the studs; it ties the wall together and carries the joists or rafters above. A double top plate — two boards stacked — is standard on load-bearing walls: the second plate laps over the joints of the first and ties intersecting walls together, which a single plate cannot do. Non-load-bearing partitions can use a single top plate.

Do I need a bottom plate?

Yes — the bottom plate (sole plate) is the horizontal board the studs stand on, nailed to the floor. It anchors the wall, keeps the studs at the right spacing, and spreads the load. On a concrete slab, use pressure-treated lumber for the bottom plate so ground moisture does not rot it, with a foam sill sealer underneath.

What size lumber do I use for studs?

Two-by-fours (1.5 × 3.5 in actual) are standard for interior and most exterior walls. Two-by-sixes (1.5 × 5.5 in) are used for exterior and load-bearing walls where a deeper cavity is needed — for thicker insulation, or for plumbing and ductwork inside the wall. Buy studs the full wall height (8 ft studs for an 8 ft wall, or pre-cut studs at 92-5/8 in for a standard 8 ft wall with plates).

How do doors and windows change the stud count?

Each opening adds studs around it: a king stud and a jack stud that carry the header, plus a sill and cripple studs below a window. This calculator adds 2 studs per opening as a planning figure, which covers the king and jack on one side in the simplified count — for the final lumber order, count the full opening framing from your plans, because a real opening uses a king and jack on both sides plus a header and a sill.

Related calculators

How we verify this

Standard framing practice: 16 in on center stud spacing, 24 in permitted for some 2×6 and non-load-bearing walls (International Residential Code framing practice); double top plate standard on load-bearing walls; 2 extra studs per door/window opening as a planning figure (king + jack studs). Demand: 'stud calculator' 4,400 US searches/mo (WordStream, 13 Nov 2026).