Lumber Calculator Formula

Understand the math behind the lumber calculator. Each variable explained with a worked example.

Formulas Used

Board Feet per Piece

board_feet_each = bf_per_piece

Total Board Feet

total_board_feet = bf_per_piece * quantity

Total Linear Feet

total_linear_feet = length_ft * quantity

Estimated Cost

estimated_cost = bf_per_piece * quantity * price_per_bf

Variables

VariableDescriptionDefault
thicknessThickness (nominal)(inches)2
widthWidth (nominal)(inches)6
length_ftLength(feet)12
quantityNumber of Pieces20
price_per_bfPrice per Board Foot(USD)5
bf_per_pieceDerived value= thickness * width * length_ft / 12calculated

How It Works

How to Calculate Lumber

Board Foot Formula

Board Feet = (Thickness × Width × Length) / 12

Thickness and width are in inches (nominal), length is in feet. One board foot is a piece 1 inch thick × 12 inches wide × 12 inches long (or 144 cubic inches). Hardwood lumber is priced by the board foot, while dimensional softwood lumber is often priced per linear foot or per piece.

Worked Example

20 pieces of 2×6 lumber, 12 ft long, at $5 per board foot.

thickness = 2width = 6length_ft = 12quantity = 20price_per_bf = 5
  1. 01Board feet per piece = (2 × 6 × 12) / 12 = 12 BF
  2. 02Total board feet = 12 × 20 = 240 BF
  3. 03Total linear feet = 12 × 20 = 240 lin ft
  4. 04Cost = 240 × $5 = $1,200.00

Ready to run the numbers?

Open Lumber Calculator