Lumber Calculator
Enter the span to cover, member length, and spacing to get piece count, total linear feet, and board feet. Works for wall studs, floor joists, deck joists, rafters, and fence rails. Add a price per linear foot to get total material cost.
Know your piece count before you order. Enter your framing dimensions and spacing — get the number of boards, linear feet, and board footage in one calculation.
Wall length (for studs) · Room/deck length parallel to beams (for joists) · Fence run length (for rails)
Length of each board — stud height for walls, joist span for floors/decks
16″ OC is standard for wall studs and floor joists · 24″ OC reduces count on deck joists and roof rafters
BF per LF shown for reference — used to convert linear feet to board feet
10% standard for straight framing · 15% for diagonal decking or complex cuts
2026 retail: 2×4 $0.51–$0.66/LF · 2×6 $0.84/LF · 2×10 $1.98–$2.03/LF
Enter your span and spacing
to calculate lumber quantity
Related Construction Calculators
More lumber and material tools
How the calculation works
Framing lumber quantity is a function of three numbers: the distance you are spacing members across, the spacing interval, and the member count needed to cover it. Every residential framing takeoff — walls, floors, ceilings, rafters — reduces to the same formula.
Lumber Piece Count Formula
Pieces = ⌈Span (ft) ÷ (Spacing (in) ÷ 12)⌉ + 1 × (1 + Waste %)
The +1 accounts for the end member — a 16-foot wall framed at 16″ OC needs 12 stud bays plus the closing stud at the far end. Omitting it is one of the most common material shortages on framing jobs. The ceiling function (round up) ensures you always have enough — never round down on a lumber order. For complex take-offs with multiple sizes and runs, each line item is calculated separately and summed.
This calculator gives you the structural member count only — wall studs, joists, or rafters. It does not include plates, headers, rim joists, blocking, or bridging. Those components are added separately based on your specific layout. For a full deck framing take-off including beams, posts, and footings, use the deck material calculator. For the total board foot volume of your order, use the board foot calculator after you have your piece count and member length. For a deeper explanation of lumber measurements and volume units, see the lumber measurement guide.
Piece count quick reference
This table shows the number of structural members required at each spacing for common span lengths, calculated without waste. Add 10% to all figures for your actual order quantity.
| Span | 12″ OC | 16″ OC | 24″ OC |
|---|---|---|---|
| 8 ft | 9 pcs | 7 pcs | 5 pcs |
| 10 ft | 11 pcs | 9 pcs | 6 pcs |
| 12 ft | 13 pcs | 10 pcs | 7 pcs |
| 16 ft | 17 pcs | 13 pcs | 9 pcs |
| 20 ft | 21 pcs | 16 pcs | 11 pcs |
| 24 ft | 25 pcs | 19 pcs | 13 pcs |
| 32 ft | 33 pcs | 25 pcs | 17 pcs |
Switching from 16″ OC to 24″ OC on a 24-foot span saves 6 members per run — but only where code and structural calculations permit. Residential floor joists over 10-foot spans typically cannot use 24″ OC without upsizing the joist. Wall framing at 24″ OC is permitted under IRC for many configurations but requires thicker exterior sheathing. Always verify your local code before reducing spacing.
For fence rail quantities, the spacing input represents post spacing (typically 8 feet). With 2 rails per section for a 4-foot fence or 3 rails for a 6-foot fence, multiply the piece count by the rail count per bay. The fence board calculator handles the full fence take-off including posts, rails, and concrete.
Lumber pricing per linear foot
Retail framing lumber pricing varies by species, treatment, and length. Longer boards carry a slight per-linear-foot premium over shorter stock of the same species and grade. All figures are early 2026 US national retail.
| Nominal size | Species / Treatment | Price per LF | BF per LF |
|---|---|---|---|
| 2×4 | SPF #2 (8 ft) | $0.51 | 0.67 |
| 2×4 | SPF #2 (12–16 ft) | $0.66 | 0.67 |
| 2×4 | SYP #2 (8 ft) | $0.45 | 0.67 |
| 2×6 | SPF #2 (all lengths) | $0.84 | 1.00 |
| 2×8 | PT SYP #2 Ground Contact | $1.79 | 1.33 |
| 2×10 | DF-L #2 (12 ft) | $1.98 | 1.67 |
| 2×10 | DF-L #2 (16 ft) | $2.03 | 1.67 |
| 2×10 | PT SYP #2 Ground Contact | $2.33 | 1.67 |
| 2×12 | PT SYP #2 Ground Contact | $2.65 | 2.00 |
| 4×4 | PT SYP (post stock) | $1.75 | 1.33 |
| 6×6 | PT SYP (post stock, 8 ft) | $3.98 | 3.00 |
Pressure-treated lumber carries a premium over untreated stock of the same size due to the ACQ or CA chemical treatment process. PT pricing varies more than untreated framing lumber because SYP availability and chemical commodity prices both influence the final cost. For a full cost estimate including labour and materials, enter your local price per linear foot in the calculator above. To compare your lumber costs against a project budget, use the lumber cost calculator which handles multi-line orders across different sizes and species.
Lumber weight per linear foot
Estimating load weight matters for delivery logistics, crane and lift capacity, and dead load calculations. The figures below are for dry lumber at approximately 12% moisture content. Pressure-treated lumber and green lumber weigh 20–50% more than the dry figures shown.
| Nominal size | SYP (lb/LF) | DF-L (lb/LF) | SPF (lb/LF) |
|---|---|---|---|
| 2×4 | 2.18 | 2.00 | 1.78 |
| 2×6 | 3.27 | 3.00 | 2.67 |
| 2×8 | 4.36 | 4.00 | 3.56 |
| 2×10 | 5.45 | 5.00 | 4.45 |
| 2×12 | 6.54 | 6.00 | 5.34 |
| 4×4 | 4.36 | 4.00 | 3.56 |
| 6×6 | 9.81 | 9.00 | 8.01 |
A bundle of 25 pieces of 2×10×16 DF-L weighs approximately 2,000 lbs dry — meaning a standard flatbed delivery of 10 bundles approaches the 20,000 lb limit of most residential driveways. If your order includes PT lumber or recently treated stock, budget for substantially heavier loads. For large timber orders where volume and weight both matter, the timber volume calculator outputs board feet, cubic feet, and estimated weight together.
Waste factor guide
Framing lumber waste comes from three sources: end cuts (every board has two ends that may be unusable), defective boards pulled from the bundle at the job site, and planning errors. The right waste percentage depends on the complexity of the project.
| Project type | Recommended waste | Reason |
|---|---|---|
| Straight wall framing | 10% | Predictable cuts, standard lengths |
| Floor / deck joists | 10% | Consistent spans, few angles |
| Diagonal decking | 15% | 45° cuts waste more per board |
| Irregular room shapes | 15% | Non-rectangular layouts add cuts |
| Roof rafters (complex hip) | 15% | Hip cuts and valley cuts increase waste |
| Rough estimate / early budget | 20% | Pad for scope uncertainty |
Buying short on a framing order is always more expensive than a slight overage. A second lumber delivery costs a flat delivery fee plus the price per piece for the shortage — often $200–$400 in combined costs. Overbuying by 2–3% generates usable off-cuts for blocking and bridging. The 10% default in this calculator is appropriate for most residential framing scenarios.
Frequently asked questions
How does this lumber calculator work?
Enter the span to cover (wall or floor length in the direction you are spacing members), the length of each member, your spacing in inches on centre, and the lumber size. The calculator outputs piece count with waste, total linear feet, board feet, and weight. For cost, add a price per linear foot. It covers wall studs, floor joists, deck joists, rafters, and fence rails.
How do I calculate the number of studs for a wall?
Divide the wall length in feet by the stud spacing in feet, round up, and add 1 for the end stud. At 16 inches OC (1.333 ft), a 12-foot wall needs ceil(12 ÷ 1.333) + 1 = 10 studs. This gives vertical member count only. Add double top plate (2 × wall length) and single bottom plate (1 × wall length) as separate line items when ordering.
What is 16 inches on centre and why is it the standard framing spacing?
On centre (OC) means the distance is measured from the centre of one member to the centre of the next. 16 inches OC became standard because 4×8 sheet goods (plywood, OSB, drywall) divide evenly over this spacing — sheet edges land on stud centres at exactly 4 feet and 8 feet. 24 OC uses fewer members but requires thicker sheathing and is only code-compliant under specific load conditions.
Should I order extra lumber for waste and how much?
Yes. A 10% waste allowance is the standard for straight framing projects. Increase to 15% for diagonal decking, irregular room shapes, or hip roof framing where angled cuts increase off-cut volume. Never order without a waste factor — running short mid-frame costs significantly more than a 2–3% overage at the time of initial order.
How many pieces of lumber do I need per linear foot of span?
At 12″ OC: approximately 1 piece per linear foot plus 1. At 16″ OC: approximately 0.75 pieces per linear foot plus 1. At 24″ OC: approximately 0.5 pieces per linear foot plus 1. The +1 accounts for the end member. Precise count: ceil(span_ft ÷ (spacing_in ÷ 12)) + 1.
How do I calculate floor joist quantities?
The span to cover is the room length parallel to the bearing walls. The member length is the joist span — the distance joists travel from beam to beam. For a 20×14 room with joists running the 20-foot direction at 16″ OC: span = 20 ft, member length = 14 ft. Result: ceil(20 ÷ 1.333) + 1 = 16 joists × 10% waste = 18 pieces of 2×8 or 2×10 at 14 ft.
What is the typical cost of framing lumber per linear foot?
Early 2026 US retail: 2×4 SPF runs $0.51–$0.66/LF. 2×6 SPF is consistently $0.84/LF. 2×8 PT SYP (deck joists) is approximately $1.79/LF. 2×10 DF-L runs $1.98–$2.03/LF; PT SYP 2×10 is $2.33/LF. 2×12 PT SYP is $2.65/LF. Enter your local price per LF above to get a project-specific cost estimate.
References
American Wood Council. (2024). National Design Specification for Wood Construction (NDS). AWC. awc.org
Home Depot. (2026). Dimensional Lumber pricing. homedepot.com
DBS Lumber. (2026). Pressure Treated Dimensional Lumber pricing. dbslumber.com
National Association of Home Builders. (2025). Cost of Constructing a Home. NAHB.
Hood Distribution. (2026). Product Weights — Lumber Reference. hooddistribution.com