Stud Spacing Calculator
Work out how many studs a wall takes at 16 or 24 in on centre, the length to cut them to for your plates, and the lumber to order — including the extras at openings and corners.
Studs are one more than the spaces
A stud wall is the fencepost problem in its plainest form, and it catches out more people than any other part of framing.
You chalk a wall from one end. The first stud goes at the end, then one every 16 in after it, and then — this is the part people drop — one more at the far end. A 16 ft wall at 16 in on centre is 192 in divided by 16, which is 12 spaces, and 12 spaces need 13 studs. Count the spaces, add one.
Walls are rarely a whole number of spaces. A 17 ft wall is 204 in, which is 12.75 spaces at 16 in. You do not nudge every stud to spread that out; you chalk twelve full spaces and let the last one come up 12 in short. That is how a wall is actually laid out, and the calculator reports the short space rather than hiding it, because it is where a sheet of sheathing or drywall will end up with an unsupported edge.
One thing the layout cannot fix: a wall needs a stud at each end whatever the arithmetic says, because that is where the sheathing edge, the drywall edge and the corner all land. Which is why the count is spaces plus one and not spaces.
The stud is not as long as the wall
An 8 ft wall is 96 in. The stud in it is 91½ in.
The plates sit inside the wall height, not outside it. An 8 ft wall with one bottom plate and two top plates has 4½ in of plate in it — three plates at 1½ in each — so the stud takes what is left. Take the plates off the height to get the stud, every time:
- Stud length = (wall height × 12) − (bottom plate) − (top plates × 1½ in)
This is why studs are sold pre-cut. Nobody rips a 96 in stud down to 91½ in on site; the yard sells studs already cut for the common plate arrangements, and they are shorter than the nominal wall height for exactly this reason. The mistake to avoid is ordering "8 foot 2 × 4s" for an 8 ft wall — you will spend the day cutting every one of them, and a stud cannot be joined end to end to make up a short one.
Change the plate arrangement and the stud length changes with it. A single top plate takes 1½ in less off the stud, so an 8 ft wall wants 93 in studs instead of 91½ in. Decide the plates before you order the studs, because it is the one decision on this page you cannot take back at the saw.
What the spacing is actually for
The number on the tape is the distance from the centre of one stud to the centre of the next. It is written 16 in o.c. — on centre — and it is not the clear gap between studs, which is 14½ in at that spacing.
Three spacings are tabulated: 12, 16 and 24 in. Which ones a wall is allowed to use is prescriptive in IRC Section R602, and the table is indexed by four things at once — stud size, species, grade and wall height. A 2 × 4 in one species at one height is allowed 24 in; the same 2 × 4 in a lower grade or a taller wall is not. That table is not reproduced here, deliberately. Look yours up.
What the spacing is really doing is setting how far everything attached to the wall has to span:
- 16 in is the default for a bearing wall, and it is what standard sheathing, drywall and siding is sized and tested for. Nothing needs a second thought.
- 24 in saves real money on studs — a 16 ft wall drops from 13 to 9 — but it is not free. Drywall at 24 in usually wants to be thicker or fastened on a different pattern, and some siding and sheathing products have a maximum support spacing that rules it out entirely. Take the saving on the studs and spend it on the finishes and you have gained nothing.
- 12 in is for walls that have to hold something fixed anywhere along them: a lot of tile, a heavy run of cabinets, a grab bar that could land between any two studs. On an ordinary wall it is studs bought for nothing.
The one thing that does not change with spacing is where studs have to line up: over the framing below, under the framing above, and on any layout line the plans call out. Get the first stud right and the wall follows.
Stud length by wall height
You do not have to take the pre-cut on faith. Here is the arithmetic, and here is what it gives for the usual wall heights:
| Wall height | Stud, two top plates | Stud, one top plate |
|---|---|---|
| 8 ft | 91½ in | 93 in |
| 9 ft | 103½ in | 105 in |
| 10 ft | 115½ in | 117 in |
| 12 ft | 139½ in | 141 in |
Notice how far these sit from a round number. An 8 ft stud is 4½ in too long for an 8 ft wall with a double top plate, and that 4½ in is exactly the three plates. This is the reason the yard sells 92⅝ in studs and not 96 in ones, and it is worth knowing before you order a bundle of "8 foot 2 × 4s" and spend the day at the mitre saw.
The studs nobody counts
The layout gives you the field studs. It does not give you everything the wall needs, and the gap is bigger than people expect.
Openings
Every window and every door takes four studs beyond the layout: a king stud on each side running the full height of the wall, and a trimmer next to each king carrying the header. On an ordinary 3 ft window that is four studs where the chalk line promised none.
Four is the count for the calculator, but the honest picture is slightly less on a window: the trimmers sit under the header and above the sill, so they are two short pieces rather than one full-length stud, and the offcuts usually go back in as cripples. Counting them long is the right way to order, because those offcuts are never the length you need.
What this page does not count, and what you should price separately, is everything else that comes with an opening — the header itself, the sill, the cripples under a sill and above a header. They are cut from different stock than the studs and they are a separate line on the order.
Corners and intersections
A corner looks like it should need nothing. Two walls meet, each ends with a stud, done.
It does not work, because the end stud of one wall is buried inside the other. The inside corner — the side facing into the room — has no framing under it for sheathing or drywall to land on, so it takes a third stud. That is one extra per corner.
The calculator adds one stud per corner you enter. Where a wall runs into another wall mid-length rather than at a corner, the same logic applies at the T, and the count is the same. If a corner is a corner in more than name — a chase, a jog, anything with a return — count that return as its own corner, because it is.
Blocking and backing
Nothing on this page touches it, and it is worth a moment. Rows of blocking between studs are what stiffen a tall wall and what some exterior finishes require at the edges. Backing is the extra framing behind a cabinet, a grab bar, a towel rail or a boiler flue. Both are real lumber and neither comes out of a stud count. If anyone has specified them, add them on top.
Studs by wall length
Field studs only — no openings, no corners. These are real outputs from the calculator, and they are the count you would get walking the wall with a chalk line.
| Wall length | 12 in o.c. | 16 in o.c. | 24 in o.c. |
|---|---|---|---|
| 8 ft | 9 | 7 | 5 |
| 12 ft | 13 | 10 | 7 |
| 16 ft | 17 | 13 | 9 |
| 20 ft | 21 | 16 | 11 |
| 24 ft | 25 | 19 | 13 |
| 30 ft | 31 | 24 | 16 |
The last row is the one to look at. A 30 ft wall at 16 in o.c. is 22½ spaces, so it rounds up to 23 spaces and the last one comes up 8 in short. The calculator flags that, because an 8 in space is narrower than half a sheet and it is where your sheathing will land on nothing.
Worked example: a 16 ft wall
A 16 ft wall, 8 ft tall, studs at 16 in on centre, two top plates, two windows and two corners. Ten percent waste.
Sixteen feet is 192 in. At 16 in on centre that is 12 spaces, and twelve spaces take 13 studs — the fencepost problem again, one more stud than there are spaces. The last space is a full 16 in, so the layout lands square.
The two windows add 8 studs, four each. The two corners add 2 more. That is 23 studs to frame the wall.
The wall is 96 in tall and the plates take 4½ in of that, so the studs cut to 91½ in. Twenty-three of them at 91½ in is 175.4 linear ft of stud.
The plates are the easy half and the half people under-buy. One bottom plate at 16 ft, two top plates at 16 ft each, so 48.0 linear ft. At the 16 ft stock length almost every yard carries, that is 3 boards — and buy them long rather than short, because every joint in a plate has to land over a stud, and a joint in the second top plate has to lap the joint in the first by a full bay.
Twenty-three studs plus 10% for miscuts and for the ones that turn out bowed comes to 26 studs. Order 26, three 16 ft plates, and the extra lumber the windows need — headers, sills and cripples — which is not in any of these numbers.
Does the building code cover stud spacing?
Yes, and it is prescriptive. Stud size, spacing, height and the plates on top of them are all in IRC Section R602. So is the rule that a stud has to be continuous — no scarfing two studs together to reach a wall height, which is exactly the mistake a miscut pushes you toward.
The table in R602 is indexed by four things at once: stud size, species, grade, and the wall height above the plates. That combination is why this page does not print it. A number copied off a generic table for the wrong species or the wrong wall height is worse than no number, because it looks authoritative. Look yours up — your lumberyard, your building department and the code book itself all have it, and all three are free to look at.
Three things on this page that are not code, and are worth knowing anyway:
- Studs are one more than the spaces. Arithmetic, not code. It is right every time and it is the single most common miscount in framing.
- The stud is shorter than the wall. Also arithmetic — the plates sit inside the wall height. The length the code cares about is the one you order, so get it wrong and no table will save you.
- Corners take a third stud. Trade practice, not a code citation, and it is why a framing takeoff never matches the bare chalk-line count.
What is genuinely outside any table is whatever the wall has to carry. A wall holding up a floor above it, a wall carrying a beam, a wall with a big opening and a lot of roof load landing over it — those are load paths, not spacing questions, and they want an engineer rather than a bigger number from a table. Say so at the counter when you pull the permit and let someone look at it. That conversation is free.
Frequently asked questions
How many studs do I need for a 16 ft wall?
Thirteen at 16 in on centre, before openings and corners. Sixteen feet is 192 in, which is 12 spaces of 16 in, and 12 spaces take 13 studs because there is one at each end as well as one between every pair. That is field studs only — each window or door adds four more, and each corner adds one. Enter the real numbers above and it will do the additions.
How far apart should studs be?
Sixteen inches on centre is the ordinary answer for a bearing wall, and it is what standard sheathing, drywall and siding is sized and tested for. IRC Section R602 tabulates 12, 16 and 24 in, but which of those a given wall may use depends on stud size, species, grade and wall height together — that table is not reproduced here and should not be guessed at. Twelve inches is for walls that have to hold something fixed anywhere along them; 24 in saves studs but everything attached to the wall has to be able to span it.
How long is a stud for an 8 ft wall?
91½ in with a single bottom plate and two top plates, or 93 in with a single top plate. The wall is 96 in; the plates sit inside that height, not outside it, so the stud takes what is left. Three plates at 1½ in each is 4½ in, which brings 96 in down to 91½ in. This is why studs are sold pre-cut, and why ordering "8 foot 2 × 4s" for an 8 ft wall means cutting every one of them.
Do I need a double top plate?
For a bearing wall, yes — and the reason is joints rather than strength. A plate has to be spliced somewhere, and a joint in a single plate is a hinge: the wall will find it. The second top plate is laid over the first with its joints offset by a full stud bay, so no joint in either plate lines up with a joint in the other. On a non-bearing partition a single top plate is common, which is why the calculator lets you switch it — but switching it adds 1½ in to every stud, so decide before you order.
How many extra studs does a window or door need?
Four: a king stud on each side running full height, and a trimmer beside each king carrying the header. On a window the trimmers are two short pieces rather than one full-length stud, so counting four is slightly generous — and that is the right way to order, because the offcuts are never the length you need next. Headers, sills and cripples are not in that four and are worth pricing separately.
What does 16 inches on centre mean?
It is the distance from the centre of one stud to the centre of the next — written 16 in o.c. It is not the clear gap between them, which at 16 in o.c. is 14½ in once you take off the 1½ in thickness of a stud. Getting this wrong is how a wall ends up 1½ in short over ten bays, which is enough to put a sheet of sheathing off a stud at the far end.
Should I frame at 24 in on centre?
Only if everything attached to the wall can span 24 in. It is a real saving — a 16 ft wall drops from 13 studs to 9 — but drywall at 24 in usually wants to be thicker or fastened on a different pattern, and some sheathing and siding products have a maximum support spacing that rules it out entirely. The stud spacing is also constrained by IRC Section R602 for your stud size, species, grade and wall height. Take the saving on the studs and spend it on the finishes and you have gained nothing, so check the finishes first.
How much lumber do I need to frame a wall?
The studs, plus the plates, plus the headers, sills and cripples that openings need. Studs are cut to the wall height less the plates, so a 16 ft wall 8 ft tall with 23 studs is 175.4 linear ft of stud at 91½ in each. Plates are easier than people expect and more often under-bought: one bottom plate at 16 ft and two top plates at 32 ft is 48.0 linear ft, which is 3 boards of 16 ft stock. Buy the plates long rather than short, because every joint has to land over a stud and the second top plate has to lap the first.