Lumber Calculator

Quick answer

A lumber calculator works out how many pieces of stock to buy. It divides the total linear feet you need, plus waste, by the stock length and rounds up. For 240 linear feet in 8 foot stock with 10 percent waste, that is 33 pieces, and the board feet and cost follow.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Lumber, Framing and Carpentry
ft
Add up the length of every run you need, in feet, from your cut list or takeoff.
ft
The length the lumber comes in, in feet. Common stock is 8, 10, 12, 14 and 16 feet.
in
Nominal thickness in inches, for the board feet. A 2×4 enters 2.
in
Nominal width in inches, for the board feet. A 2×4 enters 4.
/pc
Cost of one piece of stock, in your currency. Leave blank to skip the cost.
%
Extra for off-cuts and defects. 10 to 15 percent is common for framing.
Your results

Pieces to buy

—
Board feet—
Total cost—
Linear feet bought—
Stock length—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ
How this calculator works1Your inputs2Verified formulameasurementfactor3Result
How it works: your measurements run through a verified formula to give the result.

How to Use the Lumber Calculator

  1. Enter the total linear feet you need from your cut list.
  2. Enter the stock length the lumber comes in.
  3. Enter the thickness and width for board feet, and a price per piece.
  4. Add a waste allowance and read the pieces, board feet and cost.

Here is what each result line means:

ResultWhat it means
Pieces to buyPieces of stock, with waste, rounded up to whole boards.
Board feetBoard feet in the pieces you buy.
Total costPieces times the price per piece.
Linear feet boughtThe length you actually buy, pieces times stock length.

To price volume stock by the board foot instead, use the concrete formwork calculator for forming lumber, or the concrete slab calculator for the slab that lumber forms.

What Is a Lumber Calculator?

A lumber calculator turns the length of lumber you need into the number of pieces to buy. Framing lumber is sold by the piece in fixed stock lengths, so you cannot buy an exact linear figure; you buy whole boards and cut them down.

The tool adds a waste allowance, divides by the stock length and rounds up to whole pieces. It also totals the board feet and the cost, so you can compare buying in different stock lengths.

How the Lumber Calculator Works

Pieces of stock
pieces = ( linear feet(1 + waste)stock length )

The linear feet you need are grossed up for waste, divided by the stock length and rounded up, because you buy whole boards. The board feet come from the cross-section times the length actually bought.

  1. Add waste to the linear feet you need.
  2. Divide by the stock length and round up for the pieces.
  3. Multiply pieces by stock length for the linear feet bought.
  4. Use the thickness and width for board feet, and the price for cost.

Choosing a stock length that divides your runs with little off-cut saves lumber. The tool assumes one stock length, so run it for each length to compare.

Lumber Example

Suppose you need 240 linear feet of 2 by 4, buying 8 foot stock at 5.00 a piece, with 10 percent waste.

Worked example: 240 linear ft needed, 8 ft stock, 10 percent waste
pieces = ( 2401.108 ) = (33) = 33

Calculation: 240 times 1.10 is 264 feet; divided by 8 is 33 pieces. That is 33 boards, 264 linear feet bought, about 176 board feet, and at 5.00 a piece roughly 165 in total.

The lesson: you always round up to whole boards, so the waste allowance and stock length drive the final count.

Factors That Change the Lumber Count

Stock Length

A stock length that matches your runs wastes less. An awkward length leaves long off-cuts that push the piece count up.

Waste Allowance

Off-cuts, defects and mistakes all add up. Ten to fifteen percent is usual; use more for a complex cut list or rough stock.

Cross-section

The thickness and width set the board feet, which matters when a yard prices by the board foot rather than the piece.

Mixed Lengths

Real jobs use several lengths. This tool assumes one; a cut-list optimizer squeezes more out of mixed stock.

Buying by the Piece vs the Board Foot: a Comparison

Lumber is priced two ways, and the right tool depends on which.

Priced byHow you buyBest tool
The pieceWhole boards in stock lengthsThis lumber calculator
The board footVolume of rough or hardwood stockA board foot calculator

Dimensional framing is usually sold by the piece, while rough hardwood is sold by the board foot. This tool reports both the pieces and the board feet so you can match either pricing.

When to Use a Lumber Calculator

Framing Takeoffs

Turn a run of studs, plates or joists into boards to buy.

Decking and Fencing

Count boards for rails, pickets or deck boards from the linear feet.

Comparing Stock Lengths

Run different stock lengths to see which wastes the least.

Budgeting

Get the piece count and cost before a trip to the yard.

Common Mistakes When Buying Lumber

1. Buying the Exact Linear Feet

You buy whole boards, not a linear total. Always round up to whole pieces.

2. Skipping Waste

Off-cuts and defects are real. Leaving out the allowance leaves you short before the job is done.

3. Ignoring Off-cut Length

A stock length that leaves a long, unusable off-cut wastes money. Match the stock to your runs.

4. Confusing Pieces and Board Feet

Pieces are for piece pricing; board feet are for volume pricing. Use the one your yard charges by.

5. Forgetting Defects

Some boards are too bowed or split to use. A waste allowance covers the ones you set aside.

Accuracy and Limitations

The count is exact for a single stock length, but real jobs mix lengths and cuts, so treat it as a planning estimate and refine with a cut list.

What it calculates

  • Pieces of one stock length, with waste
  • Board feet and linear feet bought
  • Cost at your price per piece

What it does not do

  • Optimize cuts across mixed lengths
  • Account for defects beyond the waste allowance
  • Convert nominal to actual size
  • Pick grade or species

How We Calculate Lumber

Method
Pieces = ceil(linear feet x (1 + waste) / stock length). Linear bought = pieces x stock. Board feet = thickness x width x linear bought / 12. Cost = pieces x price.
Inputs used
Linear feet needed, stock length, thickness, width, price per piece and waste.
Constants
1 board foot = 144 cubic inches; pieces always round up to whole boards.
Rounding
Pieces rounded up; board feet to one decimal; cost by the site currency.
Edge cases
Zero or blank linear feet returns a prompt; stock defaults to 8 ft; blank thickness, width or price skips those outputs.
Sources
See the Sources list below.
Last reviewed
2026-10-24.

Frequently Asked Questions About Lumber Quantities

How many pieces of lumber do I need?

Add your runs for the total linear feet, add waste, divide by the stock length and round up. For 240 feet in 8 foot stock with 10 percent waste, that is 33 pieces.

How do I convert linear feet to pieces?

Divide the total linear feet, with waste, by the stock length and round up to whole boards. You cannot buy a part board, so always round up.

How much waste should I add for framing?

About 10 to 15 percent for off-cuts and defects. Use the higher end for a complex cut list, rough stock or an inexperienced crew.

What stock length should I buy?

Pick a length that divides your runs with little off-cut. Common stock is 8, 10, 12, 14 and 16 feet. Run the tool for each to compare waste.

How do I get board feet from pieces?

Multiply thickness by width in inches by the total length bought in feet and divide by 12. The tool does this from the pieces and stock length.

Should I buy by the piece or the board foot?

Dimensional framing is usually sold by the piece. Rough and hardwood stock is sold by the board foot. Use the pricing your yard quotes.

Does the calculator optimize mixed lengths?

No. It assumes one stock length. For mixed lengths, a cut-list optimizer packs the cuts to waste less across different boards.

How many 2×4 studs in a wall?

That depends on the wall length and stud spacing. This tool counts pieces from linear feet; a stud calculator spaces studs along a wall.

Is nominal or actual size used for board feet?

Board feet usually use the nominal size you are charged by. For weight or a tight fit, use the actual milled size instead.

Is my data saved?

No. The calculation runs entirely in your browser and nothing you enter is stored or sent anywhere.

Sources
Reviewed and sourcedClear, comparable resultsReviewed and sourced
Every figure is checked against cited sources and reviewed by a qualified expert.

Related Calculators

Working out a lumber order?

Explore all framing calculators

This calculator estimates lumber pieces, board feet and cost for planning only. It assumes a single stock length and does not optimize cuts across mixed lengths, so a cut list and your supplier’s stock lengths may change the count. Prices vary by grade, species and market. Spotted an error? Let us know.