Lumber Calculator

Calculate board feet, linear footage, and project cost for any lumber order — or switch to Wall Framing mode to count studs and plates for a framed wall. Supports 2×4 through 6×6 in Imperial or metric units, with waste allowance and line-item cost breakdown.

Whether you're estimating material for a lumber list or calculating how many studs a wall needs, this calculator handles the math. In Board Footage mode, add as many lumber sizes as your project needs — framing studs, joists, posts, or decking — and get a complete material list with board feet, linear footage, piece count, and total cost. In Wall Framing mode, enter wall length and ceiling height to get an accurate stud count, plate footage, and total board feet. A 10% waste allowance is included by default and can be adjusted.

Project type Board Footage · Wall Framing
Board foot formula
Board Feet = (Thickness × Width × Length) ÷ 144  ·  All measurements in inches
Lumber list Add multiple sizes
LUMBER SIZE LENGTH QUANTITY $/BOARD
Nominal vs. actual dimensions — reference table

Actual dimensions per American Lumber Standard (PS 20). Board feet calculated from actual dimensions using the BF = (T × W × L) ÷ 144 formula.

Nominal size Actual (in) Actual (mm) BF per 8 ft BF per 12 ft BF per 16 ft Dry wt (lb/lin ft) Common use
2×4 ★1½ × 3½38 × 892.674.05.33~0.9Studs, interior framing
2×61½ × 5½38 × 1404.06.08.0~1.4Exterior walls, joists
2×81½ × 7¼38 × 1845.58.010.67~1.8Floor joists, headers
2×101½ × 9¼38 × 2357.010.013.33~2.3Joists, beams, ledgers
2×121½ × 11¼38 × 2868.512.016.0~2.8Beams, stair stringers
4×43½ × 3½89 × 898.1712.2516.33~3.4Posts, fence posts
4×63½ × 5½89 × 14012.8319.2525.67~5.3Beams, headers, posts
6×65½ × 5½140 × 14020.1730.2540.33~8.4Heavy posts, structural beams
1×4¾ × 3½19 × 891.332.02.67~0.45Trim, furring, shelving
1×6¾ × 5½19 × 1402.03.04.0~0.70Siding, fencing, trim
5/4×61 × 5½25 × 1402.674.05.33~0.95Decking boards

Dry weight approximate for SPF (Spruce-Pine-Fir) at 19% moisture content. Green lumber weighs 30–50% more.

Nominal vs. actual lumber dimensions

The most common source of confusion in lumber purchasing — and in any quantity calculation — is the gap between the name on the label and the stick of wood in your hands. A "2×4" is not 2 inches by 4 inches. A "2×6" is not 6 inches wide. This difference has a formal name: nominal versus actual dimensions.

Lumber starts out rough-sawn at approximately the nominal dimension: a 2×4 is cut from a log at roughly 2 by 4 inches (51 by 102 mm). It is then kiln-dried to remove moisture and surfaced on four sides (S4S) at the mill to create smooth, consistent boards. Both processes remove material. Drying shrinks the wood cells; planing removes the surface layer to produce a flat face. The American Lumber Standard Committee’s PS 20 standard defines the resulting actual dimensions that finished softwood lumber must meet, and those dimensions have been stable since they were standardized in 1963–1964.

Nominal size Actual size (in) Actual size (mm) BF per 8 ft Common application
2×41½ × 3½38 × 892.67Studs, interior framing, blocking
2×61½ × 5½38 × 1404.0Exterior walls, floor joists, rafters
2×81½ × 7¼38 × 1845.5Floor joists, headers, ridge boards
2×101½ × 9¼38 × 2357.0Long-span joists, beams, ledger boards
2×121½ × 11¼38 × 2868.5Beams, stair stringers, rim joists
4×43½ × 3½89 × 898.17Posts, fence posts, deck posts
4×63½ × 5½89 × 14012.83Beams, headers, structural posts
6×65½ × 5½140 × 14020.17Heavy structural posts, pergola beams
1×4¾ × 3½19 × 891.33Trim, furring strips, casing
1×6¾ × 5½19 × 1402.0Siding, fencing, shelving
5/4×61 × 5½25 × 1402.67Deck boards, exterior flooring

Why the gap matters for calculations. Using nominal dimensions in the board foot formula overstates volume: a “2×4” at 2 × 4 × 12 inches = 0.667 BF per nominal calculation versus (1.5 × 3.5 × 12) ÷ 144 = 0.438 BF using actual dimensions — an overstatement of 52 percent. Most lumber pricing at specialty yards uses board feet calculated from actual dimensions. Structural span tables are also built on actual dimensions: the bending capacity of a “2×8” floor joist depends on its actual depth of 7.25 inches (184 mm), not 8 inches (203 mm).

What is a board foot and how to calculate it

A board foot is a unit of lumber volume equal to 1 inch thick by 12 inches wide by 12 inches long — 144 cubic inches. It was developed to provide a single unit that captures thickness, width, and length together, allowing different board sizes to be compared and priced consistently. Hardwood lumber (oak, maple, cherry, walnut) is almost universally sold by the board foot. Dimensional softwood framing lumber (the 2× and 4× material used in house framing) is typically sold by the piece at fixed stock lengths, but suppliers and estimators still use board feet to compare costs and plan material lists.

Board foot formula Board Feet = (T × W × L) ÷ 144 where T = actual thickness in inches, W = actual width in inches, L = length in inches Equivalent: BF = (T_in × W_in × L_ft) ÷ 12

Worked example — 20 pieces of 2×4 at 8 ft:

Using actual dimensions for a 2×4 (1.5 in × 3.5 in):

  • Length in inches: 8 ft × 12 = 96 in
  • BF per board: (1.5 × 3.5 × 96) ÷ 144 = 504 ÷ 144 = 3.5 BF
  • 20 boards: 20 × 3.5 = 70 BF
  • With 10% waste: 70 × 1.10 = 77 BF

In metric, the same 2×4 boards are each 38 mm × 89 mm × 2,440 mm (8 ft converts to 2.438 m). The volume per board is 0.038 × 0.089 × 2.438 = 0.00824 m³. Twenty boards = 0.165 m³ raw, or 0.181 m³ with 10% waste.

Board feet vs. linear feet vs. square feet. Linear feet measures only length — how many feet of board you have regardless of size. Square feet measures area — useful for siding, decking, or flooring where coverage matters. Board feet measure volume and are used to compare the true material content of different board sizes. A 2×4 and a 2×6 are the same linear footage for the same length, but the 2×6 contains 50 percent more wood by volume (4.0 BF per 8 ft versus 2.67 BF per 8 ft).

Wall framing: stud counts, plates, and spacing

Framing a wall with dimensional lumber requires three distinct components: studs (the vertical members), a single bottom plate (the horizontal member the studs sit on), and a double top plate (two horizontal members at the top, lap-joined at corners). Calculating how many pieces you need requires knowing the wall length, ceiling height, and stud spacing.

Wall framing — stud count and total linear footage Stud count = ⌈Wall length ÷ spacing⌉ + 1 Bottom plate = wall length (1 course) Top plate = wall length × 2 (double top plate, 2 courses) Total linear ft = (stud count × stud height) + (3 × wall length)

The ”+ 1” in the stud count formula accounts for the two end studs — one at each end of the wall. Without it, the formula would skip the starting stud (the king stud at the first edge). For a 20-foot (6.1 m) wall at 16-inch (400 mm) on-center spacing:

Worked example — 20 ft wall, 9 ft ceiling, 2×4 studs at 16” o.c.:

  1. Stud count: ⌈(20 × 12) ÷ 16⌉ + 1 = ⌈15⌉ + 1 = 16 studs
  2. Stud linear footage: 16 × 9 ft = 144 lin ft
  3. Plate linear footage: 3 plates × 20 ft = 60 lin ft
  4. Raw total: 144 + 60 = 204 lin ft
  5. With 10% waste: 204 × 1.10 = 224 lin ft
  6. Board feet (2×4 = 1.5 × 3.5 in): 224 × (1.5 × 3.5 ÷ 12) = 224 × 0.4375 = 98 BF

In metric: the same 6.1 m wall at 400 mm o.c. spacing uses ⌈6100 ÷ 400⌉ + 1 = 16 studs at 2.74 m height, plus 3 plates × 6.1 m = 18.3 m of plate material, for 43.9 m + 18.3 m = 62.2 m raw. With waste: 68.4 linear metres.

Stud spacing and the IRC. The International Residential Code (IRC) permits 16-inch and 24-inch stud spacing for load-bearing walls in one- and two-story construction, subject to specific height and load conditions. Sixteen-inch on center is the standard choice for most residential framing because it aligns with common sheathing and drywall dimensions (4×8 sheets) and provides adequate stiffness. Twenty-four-inch spacing — called advanced framing or optimum value engineering (OVE) — reduces lumber use by 10–15 percent and creates more cavity space for insulation, but requires engineered sheathing and careful attention to load paths. For any load-bearing wall determination, consult the IRC’s prescriptive tables or a licensed professional — this calculator provides material quantities, not structural design.

2×4 vs. 2×6 exterior walls. Most interior non-load-bearing partitions are framed with 2×4 at 16 inches o.c. Exterior walls are increasingly framed with 2×6 at 24 inches o.c. to allow 5.5 inches (140 mm) of insulation cavity depth, compared to 3.5 inches (89 mm) in a 2×4 wall. The extra insulation depth typically satisfies modern energy codes in cold climates. A 2×6 wall uses roughly 25 percent more board feet of lumber per linear foot of wall than a 2×4 wall framed at the same spacing.

Floor joists and deck framing

Floor joists run between parallel bearing walls or beams, supporting the subfloor and the loads above. The calculation is structurally identical to wall framing, with joist spacing substituted for stud spacing and floor span substituted for wall height.

Floor joist count and linear footage Joist count = ⌈Floor width ÷ spacing⌉ + 1 (per span) Total lin ft = joist count × joist span Add rim joists: 2 × floor width (one at each end)

Worked example — 16 × 24 ft floor, 2×10 joists at 16” o.c.:

  1. Joist count: ⌈(24 × 12) ÷ 16⌉ + 1 = ⌈18⌉ + 1 = 19 joists running the 16 ft span
  2. Joist linear footage: 19 × 16 = 304 lin ft
  3. Rim joists: 2 × 24 = 48 lin ft (one rim joist at each end of the floor)
  4. Raw total: 304 + 48 = 352 lin ft of 2×10
  5. With 10% waste: 352 × 1.10 = 387 lin ft → 25 × 16-ft boards

In metric: a 4.9 m × 7.3 m floor at 400 mm o.c. spacing uses ⌈7,300 ÷ 400⌉ + 1 = 20 joists spanning 4.9 m plus 2 × 7.3 m = 14.6 m of rim joist, for approximately 112.6 m raw of 38 × 235 mm stock.

Joist sizing for spans. The IRC’s Table R802.4 and equivalent span tables define allowable joist spans for each lumber size and species combination. As a general guide for SPF #2 at 16-inch o.c. spacing: 2×8 spans up to approximately 12 ft (3.7 m), 2×10 spans up to 15–16 ft (4.6–4.9 m), and 2×12 spans up to 18–19 ft (5.5–5.8 m). Longer spans or engineered lumber (LVL, I-joists) may be required for open floor plans. Always verify with local code span tables — the actual allowable span depends on species, grade, load, and deflection limits.

Deck framing. A basic deck frame uses the same components: ledger board (attached to the house), rim joist (the outer frame), interior joists, and posts. Decking boards (typically 5/4×6 or 2×6) run perpendicular to the joists. For a 12 × 16 ft deck with 5/4×6 decking boards at 5.5-inch width plus 1/4-inch gap (5.75 in center to center) over a 12-ft span: ⌈(12 × 12) ÷ 5.75⌉ + 1 = 26 decking boards × 16 ft = 416 lin ft of 5/4×6. The framing underneath uses 2×8 or 2×10 joists at 16-inch o.c. plus rim joists and the ledger.

For structural deck applications — post sizing, beam spans, ledger connections — the IRC Chapter 5 prescriptive tables or a structural engineer should be consulted. An improperly designed deck can detach from the house or collapse under load.

Lumber species, grades, and weight

The strength, weight, and cost of framing lumber depend on the species group and grade. In North America, most residential framing lumber comes from two major species groups.

Spruce-Pine-Fir (SPF) is the most widely sold framing lumber in the US and Canada. It is light, easy to work, and takes fasteners well. SPF includes spruce, pine, and fir species from Canada and the northern US. Because of its origin, it is typically kiln-dried to low moisture content and machines cleanly. SPF is lighter than Douglas Fir — approximately 0.9 lb per linear foot for a 2×4 (0.46 kg/m) in dry condition.

Douglas Fir-Larch (DF-L) is denser, stiffer, and stronger than SPF, making it the preferred choice for beams, headers, and long-span applications where deflection matters. It is the dominant species group in the Pacific Northwest and much of the western US. A dry 2×4 in Douglas Fir weighs approximately 1.0 lb per linear foot (0.51 kg/m) — about 10 percent heavier than SPF.

Pressure-treated (PT) lumber is dimensional lumber (usually Southern Yellow Pine) that has been impregnated with preservatives to resist rot, fungi, and insects. It is required by code for all ground-contact framing, deck posts, ledger boards, and any framing within 6 inches of grade. Pressure-treated lumber is significantly heavier than dry dimensional lumber — a PT 2×4×8 weighs approximately 13–15 lb (5.9–6.8 kg) compared to 9–10 lb (4.1–4.5 kg) for dry SPF.

Species group Fb (psi) — #2 grade Dry wt, 2×4 (lb/lin ft) Dry wt, 2×4 (kg/m) Typical use
SPF #2~1,100–1,150~0.9~0.46Interior framing, studs, joists
Douglas Fir-Larch #2~1,500~1.0~0.51Beams, headers, floor joists
Hem-Fir #2~1,050–1,100~0.85~0.43Interior framing, similar to SPF
Southern Yellow Pine #2~1,500–1,650~1.1~0.56Decks, PT applications, high-load floors
Pressure-treated SYPsame grade~1.6–1.8~0.82–0.92Ground contact, decks, ledgers

Lumber grades. Within each species group, grade determines strength and appearance. Select Structural (SS) is the top grade with the highest allowable stresses; #1 is just below it; #2 is the standard framing grade used in most residential construction; #3 is used for non-structural blocking and utility applications. Most home improvement stores stock #2 framing lumber. For beams and headers where strength matters, verify the species and grade before accepting a substitution — SPF #2 and Douglas Fir #2 have meaningfully different bending values. Green (unseasoned) lumber is cheaper but heavier, will shrink as it dries, and can cause nail pops and squeaky floors if used before seasoning.

Waste allowances and ordering strategies

Every lumber project requires ordering more material than the raw calculation produces. Waste arises from multiple sources: end cuts to achieve the required length from a longer board, kerf loss (about ⅛ inch / 3 mm per saw cut), boards rejected for defects at the lumber yard or on-site, and miscuts. Ordering strategy also plays a role — you can sometimes reduce waste by choosing a stock length that divides evenly into your needed cut lengths.

5% waste is appropriate when all cuts are simple square cross-cuts from boards that are close in length to the required dimension. Example: buying 8-foot studs for a 7-foot-8-inch stud height leaves only a small offcut, and if cuts are clean and layout is simple, 5 percent accounts for the small end waste.

10% waste is the standard allowance for typical residential framing — wall framing, floor joists, deck framing, and similar projects where some angled or multiple cuts per board are common. This is the calculator’s default.

15% waste is appropriate for projects with many angled cuts (hip roofs, raked walls), complex geometric layouts, or expensive specialty lumber where you want extra on hand to avoid running short. It is also reasonable when the lumber yard has inconsistent quality and you expect to reject 5–10 percent of boards on-site.

The cost of running short. A second lumber delivery adds time and cost, and matching pressure-treated or naturally weathered boards to existing ones mid-project can be difficult. For most projects, it is worth ordering 10 percent extra and returning unused boards to the store. Most home improvement stores accept returns on unused lumber; specialty lumber yards may not.

Stock length optimization. If your stud height is 9 feet (2.74 m), buying 10-foot (3.05 m) boards wastes 1 foot (0.3 m) of kerf and offcut per stud. Buying 9-foot or precut studs (typically 92⅝ inches / 2,353 mm for 8-foot plate height, or 104⅝ inches for 9-foot) eliminates this waste entirely. Check whether your lumber yard stocks precut studs in the length you need before defaulting to 8-foot boards with cuts.

Common mistakes to avoid

Lumber quantity errors tend to be systematic — they repeat across every board in the project — so even a small per-board mistake compounds into significant material shortfalls or surpluses.

Using nominal instead of actual dimensions in board foot calculations. This is the single most common error. If you use 2 × 4 instead of 1.5 × 3.5 in the formula, you overstate board feet by 52 percent for 2×4 lumber. Always use the actual dimensions listed in the PS 20 standard or in this calculator’s reference table.

Forgetting the double top plate. A standard load-bearing wall uses one bottom plate and two top plates, not one. The double top plate ties walls together at corners and provides a continuous horizontal bearing surface. Forgetting it means you will be 1.0 wall length short of plate material — on a 20-foot wall, that is 20 linear feet of lumber missing from the order.

Not accounting for openings. Windows and doors create openings in wall framing that require jack studs (trimmer studs), king studs, cripple studs above and below, and a header. A 3-foot door opening at 16-inch spacing removes one regular stud position but adds 2 jack studs + 2 king studs + header material. If you have several openings, rough framing adds back nearly as much material as the opening removes. Add roughly 5 linear feet of lumber per window opening and 8 linear feet per door opening to your wall framing estimate.

Using the wrong spacing formula. Some estimators forget the “+1” in the stud count formula and arrive at one fewer stud than needed. On a 20-foot wall at 16-inch spacing, that is 15 studs instead of 16 — one missing end stud. Check by multiplying: (stud_count − 1) × spacing should equal the wall length.

Ordering by pieces without confirming stock length. If your supplier has only 16-foot boards in stock when you planned for 12-foot boards, your piece count changes. Always confirm available stock lengths before finalizing the piece count. A 12-foot board and a 16-foot board contain very different amounts of wood and cost accordingly.

Mixing up rough-sawn and dimensional lumber. Rough-sawn (green) lumber is sold at nominal dimensions — a rough-sawn 2×4 really is close to 2 × 4 inches. If you are buying from a sawmill or timber framer, verify whether the material is rough or S4S (surfaced), and apply the corresponding dimensions in your board foot calculation.

Skipping engineering review on structural members. This calculator handles material quantities for any project. It does not determine whether a given lumber size, grade, or span is structurally adequate. For load-bearing walls, floor systems with spans beyond typical ranges, deck structures, headers over garage-door-width openings, and any structure subject to unusual loads (heavy snow, seismic, wind), consult IRC span tables and, when in doubt, a licensed structural engineer. The cost of an engineering review is trivial compared to the cost of a structural failure.

Frequently asked questions
What is a board foot of lumber?
A board foot is a unit of lumber volume equal to 1 inch thick by 12 inches wide by 12 inches long — 144 cubic inches. The formula is: Board Feet = (thickness in inches × width in inches × length in inches) ÷ 144. A standard 2×4 at 8 feet works out to (1.5 × 3.5 × 96) ÷ 144 = 3.5 board feet. Board feet are used to price hardwood and to compare the material content of different lumber sizes. Softwood framing lumber is usually sold by the piece at fixed lengths, but board feet remain useful for estimating total volume.
Why does a 2×4 measure 1½ × 3½ inches, not 2 × 4 inches?
Lumber is named by its rough-sawn (nominal) dimensions — the size of the board right off the saw at the mill. It is then kiln-dried to reduce moisture content and surfaced on four sides (S4S) to create smooth, flat faces. Both processes remove material: drying causes the wood cells to shrink, and the planer removes additional surface material. The result is a finished board smaller than its name implies. These actual dimensions are defined by the American Lumber Standard (PS 20) and have been stable since 1963–1964. Always use actual dimensions in any board foot or structural calculation.
How many studs do I need for a wall?
The formula is: stud count = ⌈wall length ÷ spacing⌉ + 1. The +1 accounts for the end stud at both edges of the wall. For a 20-foot wall at 16-inch on-center spacing: ⌈(20 × 12) ÷ 16⌉ + 1 = 15 + 1 = 16 studs. Add to this one bottom plate (1 × wall length) and a double top plate (2 × wall length). If the wall has windows or doors, add jack studs, king studs, cripple studs, and header material for each opening — roughly 5 linear feet per window and 8 linear feet per door opening.
What does 16 inches on center (o.c.) mean in framing?
On center (o.c.) means the distance from the centerline of one stud to the centerline of the next. At 16 inches o.c., studs are spaced so their centers are exactly 16 inches apart — the clear gap between stud faces is approximately 14.5 inches (16 in minus the 1.5-in stud thickness). On-center spacing is used in drawings, codes, and specs because it gives a consistent measurement regardless of stud thickness. The most common residential framing spacing is 16 inches o.c., which aligns with 4×8 sheet goods and satisfies IRC prescriptive requirements for most load-bearing applications.
Should I frame walls with 2×4 or 2×6 studs?
Interior non-load-bearing partitions are almost always 2×4 at 16 inches o.c. — lighter, cheaper, and sufficient for the loads they carry. Exterior load-bearing walls are commonly built with 2×4 or 2×6 depending on climate. A 2×6 wall at 24 inches o.c. provides a 5.5-inch (140 mm) cavity for thick batt insulation, which modern energy codes require in many cold climates. The trade-off is higher lumber cost and slightly reduced interior floor area. In mild climates, 2×4 exterior walls with continuous foam sheathing can also meet energy code. Check your local energy code requirements before deciding.
How much waste should I add to a lumber order?
Add 10 percent for most residential framing — this is the standard allowance and accounts for end cuts, occasional miscuts, and a few defective boards. Use 5 percent for very simple projects where boards need only one square cut per piece and the lengths are close to available stock. Use 15 percent for complex layouts with many angled cuts (hip roofs, curved decks), or when you are working with expensive hardwood and want extra material to minimize waste in layout. It is almost always worth ordering extra: returning unused lumber is easy at most stores, but making a second trip mid-project costs time and delays.
What lumber grade should I use for framing?
#2 grade is the standard for structural framing in residential construction — studs, joists, rafters, and blocking. It has well-defined allowable stress values listed in span tables and design standards. Select Structural (SS) and #1 grade are stronger and appear in designs requiring higher stress capacity, but they are more expensive and rarely necessary for routine framing. For blocking, bridging, and non-structural backing, #3 or utility grade is acceptable and cheaper. Pressure-treated lumber for ground contact and deck framing is typically Southern Yellow Pine; verify the treatment type (above-ground vs. ground-contact) based on where the lumber will be used.
What is the difference between board feet and linear feet?
Linear feet measures only the length of a board — a 2×4 and a 2×10 that are both 8 feet long are both 8 linear feet. Board feet measures volume by combining thickness, width, and length: Board Feet = (T × W × L) ÷ 144. An 8-foot 2×4 is 3.5 board feet; an 8-foot 2×10 is 9.25 board feet — the same length but very different amounts of wood. Linear feet is useful for ordering standard framing pieces at fixed sizes; board feet is useful for comparing the cost of different sizes, pricing hardwood, and understanding total material volume in a project.