Lumber is priced three ways — by the piece, by the sheet and by the board foot — and framed to spacing rules set by the building code. These calculators turn a wall length, deck size or floor-to-floor height into the pieces you carry out of the yard, with the code limits for each layout shown alongside.