Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Stud Calculator

Stud calculator works out Pieces needed and Pieces from the spacing alone from Wall length (or roof length for rafters), Unit for lengths and Spacing on centre. The default figures on this page give pieces needed of 16; change any entry and the result, the working and the sources update together.

Pieces needed
16
Wall Stud & Rafter Calculator
Pieces from the spacing alone
16
Extra pieces for corners, intersections and openings
0
Plate material (bottom plate plus double top plate)
60.00 ft
Cost of the pieces
0.00 USD
Worked out from International Residential Code (IRC), Chapter 6 Wall Construction and Chapter 8 Roof-Ceiling Construction and 2 other sources.
Cripple studs above and below openings, blocking, and headers are not counted. Header size must come from a span table or an engineer’s design.
A quantity and geometry take-off only. It does not size any member and does not check spans, loads, bracing, uplift connections or header sizes; those must come from a licensed engineer’s design or from the prescriptive span tables of the code adopted where you build (e.g. IRC Tables R602.3(5) and R802.4).

Your figures

Updates as you type
A three-stud corner adds two studs beyond the one the layout already places there; a two-stud California corner adds one.
A king stud and a jack (trimmer) stud each side is four. Cripples above and below are extra and are not counted here.
Half of it is deducted from each rafter run. A dressed 2x is 1.5 in thick under PS 20.

How this is worked out

4 steps
  1. Layout: floor(240 in / 16 in) + 1 = 16 studs per wall, x 1 wall(s) = 16.
  2. Extras: 0 corner(s) x 2 + 0 intersection(s) x 2 + 0 opening(s) x 4 = 0.
  3. Total studs = 16 + 0 = 16.
  4. Plates: one bottom plate and a double top plate, so 3 x 20 ft x 1 = 60 linear feet.

Its 4 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

3 sources
International Residential Code (IRC), Chapter 6 Wall Construction and Chapter 8 Roof-Ceiling Construction
2021 · Stud spacings of 12, 16 and 24 in o.c. and the double top plate of R602.3.2. Member sizing is not taken from here - only the layout conventions.
Pythagoras: a common rafter is the hypotenuse of the run and the rise
Line length = run x sqrt(1 + (rise/12)^2); plumb cut angle = atan(rise/12) from vertical.
US Department of Commerce Voluntary Product Standard PS 20, American Softwood Lumber Standard
Dressed (actual) lumber sizes, used for the plate stock length arithmetic.

Keep this result

Save it, change one figure, then compare the two

The calculation stays free. Save this scenario, adjust one assumption, save that too, and put them side by side to see exactly what the change costs you. A free account keeps 5 scenarios and 2 comparisons; Personal makes both unlimited and adds exports and private links. Nothing is saved unless you press Save.

1 · Calculate2 · Save3 · Compare4 · Export5 · Share
Open workspace

What the stud calculator calculates

Counts wall studs at 12, 16, 19.2 or 24 inches on centre with corner, intersection and opening allowances plus plate material, and computes common rafter length, count and cut angles from the roof pitch and span.

How to use this stud calculator

Enter Wall length (or roof length for rafters), Unit for lengths, Spacing on centre and Number of identical walls. Pieces needed updates as you type. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Pieces needed, Pieces from the spacing alone and Extra pieces for corners, intersections and openings.

The method follows International Residential Code (IRC), Chapter 6 Wall Construction and Chapter 8 Roof-Ceiling Construction, Pythagoras: a common rafter is the hypotenuse of the run and the rise and US Department of Commerce Voluntary Product Standard PS 20, American Softwood Lumber Standard.

What you can compare

Change one input at a time to see how it affects Pieces needed, Pieces from the spacing alone and Extra pieces for corners, intersections and openings. The inputs you can vary are Wall length (or roof length for rafters), Unit for lengths, Spacing on centre, Number of identical walls, Corners and Extra studs at each corner.

Understanding Pieces needed, Pieces from the spacing alone and Extra pieces for corners, intersections and openings

A quantity and geometry take-off only. It does not size any member and does not check spans, loads, bracing, uplift connections or header sizes; those must come from a licensed engineer’s design or from the prescriptive span tables of the code adopted where you build (e.g. IRC Tables R602.3(5) and R802.4).

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

What information do I need for the stud calculator?

You need Wall length (or roof length for rafters), Unit for lengths, Spacing on centre, Number of identical walls, Corners, Extra studs at each corner, Partition intersections and Extra studs at each intersection. The page opens with default figures that give pieces needed of 16, so you can see the scale before entering your own.

What does this stud calculator show?

It shows Pieces needed, Pieces from the spacing alone, Extra pieces for corners, intersections and openings, Plate material (bottom plate plus double top plate), Rafter length including overhang, Rafter line length, ridge to plate, Rafter run and Rafter rise, with the working and any warnings for your entries.

Can I check how the stud calculator result was calculated?

Yes. The “How this is worked out” section shows the calculation steps, and the sources section identifies the references used for the method.

Related calculators

View all related calculators10 more