About Decks & Framing Calculations
Framing is geometry plus spacing. Studs and joists sit at standard 16 or 24 inches on center, so a wall or floor count is its length divided by the spacing, plus one, plus extras for openings, corners, and blocking. Miss the extras and you're short framing the first window.
Rafters and stairs are where the triangle math shows up. A rafter's length isn't the building's width, it's the hypotenuse, which depends on the roof pitch, plus the overhang past the wall. Stairs work the same way: total rise divided into equal steps, each within code, then the run that follows. Get the rise uneven and the stairs feel wrong and can fail inspection.
Beams and headers carry load, and sizing them is not a place to eyeball. Span tables tie beam size to the load and the distance it spans. These calculators give you a starting size, but anything load-bearing should be checked against local code and, for big spans, an engineer. That's the line between an estimate and a spec.
Lumber comes in standard lengths, so your real order rounds up to the next 8, 10, 12, or 16-foot board, which drives a little waste. Figure your studs, joists, rafters, and beams in one pass, add 5 to 10% for cuts and culls, and build once. Always pull a permit for structural work.