Framing Calculator
Count the studs a wall needs from its length and OC spacing, then price them.
Five length units, a 15% waste default and 20 currencies.
Updated October 21, 2026
Overview
This page turns one straight run of wall into the two numbers you order studs with: how many pieces the layout needs at your on-center spacing, and what they cost once you add a waste allowance. It is a material count for the run you describe, not a layout drawing for the wall.
It fits the ordinary case: an interior partition, a shed or garage wall, or any straight frame with studs at a uniform spacing. The count depends on the length of the run and on the spacing, not on the stud size. What changes the answer is how the wall is broken up. Every door or window interrupts the spacing, and each solid run between openings is counted on its own.
Both answers work in reverse. If you already know the count you need or the budget you have, type it into that box and the page adjusts the spacing, the wall length, the price or the waste rate to keep the arithmetic true. That makes the page useful before a plan is complete: a budget can tell you how tight the spacing would have to be.
Three things come back, and all of them stay editable
- Studs needed — the exact count at your spacing, including the fraction when the run is not a whole number of bays.
- Total cost — the price per stud applied to that exact count, with the waste allowance added.
- A way back — a target count or budget resolves to the spacing, the run, the price or the waste allowance.
Two equations
Stud count and stud cost, solved both ways
5 length units
Runs and spacings in metric or imperial units
20 currencies
The price and the total can read in different currencies
Quick start
Four inputs are enough to get both answers. The example below uses the page’s default 40 cm spacing and 15% waste rate, plus a wall length and a stud price.
Measure the run you are framing
Take the length along the top and bottom plates, from one end of the run to the other. A door or window breaks the run, so frame and count each solid piece separately and add the opening’s own framing afterwards.
Set the spacing the plan calls for
40 cm is loaded as a default. If the plan is written in inches or feet, switch the spacing box to that unit and enter the number there rather than rounding it to a metric value. On a long wall those small differences turn into whole studs.
Enter what a stud costs
Use the currency of the quote you have. The price and the total each carry their own currency menu, so you can read the quote in one currency and the total in another.
Choose a waste allowance
15% is a starting point for off-cuts, defects and miscuts. A wall with many openings or short runs generally needs more; a simple run cut from long stock may need less.
Read the two answers
Studs needed is the exact count for the grid, fraction included. Total cost is the price multiplied by that count and the waste allowance.
A 5 m wall on 40 cm centers
The run divides into 12.5 bays, and the count is one more than the number of bays:
With studs at 4 USD each and a 15% waste allowance, the material cost is:
13.5 is a material count, not a piece you can buy
Order 14 studs for the grid. The cost above follows the exact count, so a whole-stud order lands a little higher. That gap is normal, and it is worth knowing before you compare the figure with a quote.
Counting the studs
The stud count comes from one division. The wall run is divided by the on-center spacing, and one stud is added for the far end of the run.
The division counts the bays between studs. Each bay has a stud at both ends, so a run of ten bays needs eleven studs: the interior studs are shared by the bays on either side, and the two end studs belong to this run alone. That single added stud is the whole difference between a bay count and a stud count.
When the run is a whole number of bays, the count is a whole number. When it is not, the division leaves a fraction and the count falls between two pieces. The fraction is the partial bay at the far end of the run: a real material quantity, even though it is not a piece you can hand to a supplier. On the 5 m example, 12.5 bays plus the end stud gives 13.5 studs.
Center to center, not face to face
The spacing is measured from the middle of one stud to the middle of the next. A tape held between the faces of two studs reads the clear gap, which is one stud thickness less than the center-to-center distance. Entering that gap makes the layout look tighter than it is, and the calculator returns more studs than the wall needs. Measure one stud’s center to the next stud’s center.
The metric default is not an imperial spacing
They are close enough to look interchangeable and different enough to change a count. and , so a plan written in inches does not convert to a round metric number. Enter the imperial spacing in inches, or its exact centimeter value, rather than rounding it to 40 or 60 cm.
A 24 ft run on 16 in centers needs 19 studs. The same run on a 40 cm grid needs about 19.3, and on a 60 cm grid about 13.2. On a wall this long, treating 16 in as 40 cm changes the count from 19 to about 19.3, which rounds up to 20 studs.
When the spacing is longer than the wall
A spacing wider than the whole run produces fewer than two studs, and a wall cannot be framed with fewer than two: there would be no room for a stud at each end. The page keeps the number on screen, marks it in red and explains why. On a 3.6 m wall, a 5 m spacing gives 1.72 studs. That is usually a unit mix-up rather than a real design, so check both lengths before trusting the count.
Working out the cost
The cost applies the price of one stud to the exact count, then adds the waste allowance as a share of that count.
Waste is a share of the studs, not of the price. On the example above it adds about two studs’ worth of material to the 13.5 the grid needs. The price you enter is for one stud, so fasteners, delivery and tax are not part of this figure.
The cost follows the exact count
The multiplication uses the exact count, fraction included, so the total measures the layout rather than a whole-piece order. That is the number to compare with a supplier’s material price; the order itself is rounded up separately.
Two money boxes, two currency menus
The price box and the total box each carry their own currency menu. Enter the quote in the currency your supplier uses and read the total in the currency you think in; the page converts with the exchange-rate data noted under the inputs. A supplier’s own rate can differ by a little, so treat the converted total as an estimate rather than a settlement.
Working backwards from a budget or a count
The same relationships hold in the other direction, so the page can start from an answer instead of an input. A budget resolves to a count, and a count resolves to the spacing or the wall length that fits it:
Type the value you want to drive and it stays; the boxes that can absorb the change are recalculated. A budget in one currency can therefore drive a price in another when the price box is left for the page to solve.
Two worked examples
One forward example in imperial units, and one that starts from a budget and works back to the layout.
A 24 ft garage wall on 16 in centers
Situation: A garage wall measures 24 ft along the plates and the plan puts the studs at 16 in on center. Studs are quoted at 3.50 USD each and the waste allowance is 10%.
Inputs
Result
In practice: The grid is exact at this spacing, so 19 studs covers the run with nothing to round. The total is material only: plates, headers over openings, corner studs and fixings are extra.
A 300 USD budget for an 8 m partition
Situation: An 8 m partition is to be studded at 6 USD per stud with a 20% waste allowance, and the material budget is 300 USD. Enter the wall length, the price and the waste rate first, then the budget.
Inputs
Result
Check the round trip: comes back to about 300 USD, which is the budget the count and spacing were solved from.
In practice: A 19.67 cm grid is tighter than the 40 cm default. At 40 cm the same wall would take 21 studs and cost 151.20 USD at this price and waste rate. The page has done the arithmetic; whether a 19.67 cm spacing suits the wall is a design decision.
Buying the studs
The two answers cover the field studs in the run you typed. A real order usually has a few more things to count alongside them.
Count the rest of the frame separately
Top and bottom plates, headers over openings, the doubled studs that line each side of a door or window, blocking between studs and the shorter cripple studs above and below an opening are not part of this count. Neither are nails, screws or anchors.
Break the wall at every opening
A door or window interrupts the spacing. Measure each solid run between openings on its own and add the opening framing on top. Entering the whole wall as one run overstates the field studs and says nothing about the trimmers.
Measure the run, not the room
The page needs the length of the wall itself, along the plates. A room’s inside measurement is shorter by the thickness of the adjoining walls, and where two walls meet the corner needs its own studs beyond the count for either run.
Check the spacing before trusting the count
A small spacing error moves the count more than the same error in the wall length, so the spacing is worth checking twice. It comes from the wall’s design rather than from this page: use the value on the plan, or confirm it with the person responsible for the structure.
Where to take the numbers next
Square Footage Calculator
Take this wall run and the wall height there to work out the sheathing or drywall area.
DIY Shed Cost Calculator
If the wall belongs to a shed, total the floor, wall and roof areas and their material costs there.
Both work in metric or imperial units, so the measurements you already have can be carried across without converting them by hand.
Limits and assumptions
- This is a material estimate for one straight run, not a framing plan, a layout drawing or a structural check.
- It counts only the studs in the run you describe. Plates, headers, trimmers and king studs at openings, blocking, cripple studs, corner and intersection studs, sheathing, fasteners and labor are not included.
- It does not choose a spacing or a stud size. Those come from the design and from the rules that apply where you build. Load-bearing walls, large openings, tall walls and work that needs a permit are for a qualified person to check.
- The count is exact but not rounded, and it assumes a uniform grid across the whole run. Mixed spacing, a wall that changes direction or a stepped wall need separate runs and a separate count.
- Costs are only as good as the price and the waste rate you enter. Supplier prices vary by region and time, and the total excludes tax, delivery and fixings.
- Currency conversion uses the exchange-rate data shown under the calculator, so a supplier’s own rate may differ slightly from the total you see here.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.
Glass Weight Calculator
Weigh a glass pane or rod from its shape, its dimensions and the density of the glass itself. Eight shapes, nineteen glass densities, a custom density for anything not listed, and the total for any number of identical pieces.
Cubic Yards to Tons Calculator
Convert a volume in cubic yards to a mass in metric tons using the substance’s density. Pick from foods, metals, non-metals, gases, and liquids, enter a custom density, or convert tons back to cubic yards with metric and imperial mass and volume units.
Feet and Inches Calculator
Add, subtract, multiply, and divide lengths entered as feet and inches. Get the result in feet and inches, square feet, or square inches with full precision.
Livestock Fence Cost Calculator
Estimate the total cost of building a livestock fence. Calculate posts, wire rolls, staples needed, and total construction cost based on fence dimensions and material prices.