Walls
Stud Calculator
Enter the wall length, height, stud spacing, corners and openings. You get the stud count, the cut length, plate stock and nails.
Enter the wall length to see studs, plates and nails.
How many studs do you need?
A stud wall looks like a row of identical sticks, and the count still catches people out, because the number is not simply length divided by spacing. You need a stud at the far end as well as the near one, an extra at every outside corner, and two at every door and window to carry the header. On a short wall with a door in it, those extras are a fifth of the order.
This calculator takes the wall run, the spacing, the corner count and the opening count, and returns the studs, the cut length, the plate stock and a nail estimate. If you are pricing the board that goes on afterwards, the drywall calculator works out sheets, tape and compound from the same wall area, and the rafter calculator does the same job for the roof above it.
The formula, line by line
- Studs on the layout — wall length in inches divided by the spacing, rounded up, then plus one for the last stud. A 20 foot wall is 240 inches, which is 15 spaces at 16 inches, so 16 studs.
- Corners — one extra stud per outside corner. A corner where two walls meet takes two, one for each wall, so count the corners you are actually building, not the corners of the room.
- Openings — two per door or window: a jack stud each side of the rough opening to carry the header. A window and a door in the same wall is four.
- Waste — five percent, which covers a twisted stud, a miscut, and the cripples above and below a window that nobody counts until they frame it.
16 or 24 inches on centre
This is the decision that changes both the stud count and everything you hang on the wall:
- 16 inches — load-bearing walls, walls with kitchen cabinets, tile backer, anything sheeted in 1/2 inch drywall. The drywall edges land on a stud, which is what stops the joints cracking.
- 24 inches — non-bearing partition walls, sheds, garages, and walls that get 5/8 inch drywall or horizontal strapping. Fewer studs, less thermal bridging, more insulation.
- 12 inches — not a standard wall, but common for a wall carrying a heavy wall-hung item, a TV wall, or tile with large format stone.
Building code sets the minimums, and in most US jurisdictions bearing walls are 16 inches on centre with 2x4 minimum, or 24 with 2x6. That is a code question, not a calculator question — but the calculator will happily show you how many studs either choice costs.
Corners, openings and blocking
The count above covers the frame. Three things sit on top of it and are usually forgotten:
- Headers. Every opening needs one, and its size depends on the span: a 3 foot door in a bearing wall is typically a doubled 2x10 or 2x12. The header is cut from longer stock than a stud, so it is a separate line on the order.
- Blocking. Horizontal pieces between studs for cabinet rails, grab bars, handrails, TV mounts and stair stringers. Work out where they go before the board goes on, because adding them afterwards means cutting the wall open.
- Cripples. Short studs above and below a window. A 4 foot window in an 8 foot wall has roughly 4 feet of cripple above and 2 below, in every bay it spans.
Plates and stud length
Plates are the horizontal boards top and bottom, and there are two or three of them per wall: one bottom plate, one top plate, and a second top plate on any wall that is bearing or that has a corner to tie.
- Bottom plate — length of the wall. Pressure-treated where it touches concrete, and fastened down with anchor bolts or a powder-actuated tool.
- Top plate — one or two runs of the same length. The second one overlaps the joints of the first, which is the whole point of it.
- Stud length — wall height minus the total plate thickness, at 1.5 inches per plate. A 9 foot wall with three plates takes 103.5 inch studs, so 10 foot stock, cut down.
Stock comes in 8, 10, 12 and 16 foot lengths, so the calculator returns plate boards in 8 foot equivalents; buy the longest length that fits the wall and you will waste less.
Common walls, already worked out
- Basement wall, 20 ft, 8 ft high, 16 in centres, 2 corners, 2 openings — 22 studs before waste, 24 to buy, 60 linear feet of plate.
- Shed wall, 12 ft, 8 ft high, 24 in centres, 2 corners, 1 opening — 12 studs, 36 linear feet of plate.
- Garage wall, 40 ft, 8 ft high, 16 in centres, 3 openings, no corners — 39 studs, 120 linear feet of plate.
- Bedroom partition, 12 ft, 8 ft high, 16 in centres, 2 corners, 1 door — 14 studs, 36 linear feet of plate.
Round up at the end rather than per line, and buy one or two extra studs if the wall has a lot of openings and short cripples.
Buying studs
- 2x4 or 2x6. Exterior walls in a cold climate are 2x6, so there is room for insulation. That changes the count: a 2x6 wall at 24 inches needs the same number of studs as a 2x4 wall at 24 inches, but costs more per stud and more per plate.
- Precut 92-5/8 inch studs are sold for 8 foot walls specifically so you do not cut every stud — worth it on any wall longer than a room.
- Pick the straight ones. A stud with a visible bow in the middle will show as a hump in the drywall. Studs marked "stud grade" are straighter than utility grade, and cost a little more.
- Kiln-dried, not green. Green lumber shrinks as it dries, and a wall built from it develops cracks at the joints and popping screws within a year.
Cost, and what the range means
The calculator works in quantities rather than dollars, because lumber prices swing more than any other material on this site. As a rough guide for late 2026 US retail: a 2x4 stud in the mid single digits, plate stock the same per length, and nails and fasteners a few dollars for a whole wall. A 20 foot wall is a two-figure material cost, and the labour to frame it is the real number.
Material only, and no allowance for the header, the blocking or the sheathing that closes the wall in.
What this estimate assumes
Straight walls on one floor, standard rectangular openings, no steel, no engineered beams and no curved or angled runs. Angled walls, bay windows, half-walls and anything carrying a second storey need the plans, because the header and post sizes are structural. Check local code before framing a bearing wall; a stud count from a web form does not replace a stamped drawing.
Last reviewed November 2026. Stud and plate sizes follow standard nominal dimensions in the US; measure the actual boards you buy, because a nominal 2x4 is 1.5 by 3.5 inches and lengths vary by supplier.
Related calculators
- Insulation calculator — bags of batts for the bays this wall creates, by R-value.
- Board foot calculator — board feet and cost when you are cutting the wall from rough stock.
- Drywall calculator — sheets, tape and compound for the same wall area.
Back to the construction calculators — every material list runs in your browser, with no account.
How many studs are in a 20 foot wall?
22 at 16 inches on centre before waste: 16 studs on the layout plus one for the far end, one per outside corner and two per opening. Add 5 percent and you buy 24.
Should studs be 16 or 24 inches apart?
16 inches for any wall that carries a load, holds cabinets or is finished in 1/2 inch drywall. 24 inches is allowed for non-bearing walls and sheds, and needs 5/8 inch drywall or strapping.
How many studs do I add for a door or window?
Two per opening: a jack stud on each side to carry the header. A wide opening over 6 feet also needs a double jack or a post, and the header size is a structural question.
What length do I cut wall studs?
Wall height minus the total plate thickness, at 1.5 inches per plate. An 8 foot wall with a single bottom plate and a double top plate takes 91.5 inch studs, which is why precut 92-5/8 inch studs are sold.