How to calculate it yourself
Studs: (wall length in ft × 12 ÷ 16 spacing) + 1 per wall, summed across walls minus shared corners. Plates: (perimeter × 2 for double top + perimeter for bottom) ÷ 12 ft per board. Add 5-8 boards per opening (doors and windows). Multiply total by 1.10 for waste. For platform framing, add joists (separate calculation by 16" o.c. across the floor span).
Common scenarios
Bedroom build-out (10×12, 8 ft ceil., 1 door, 1 window)
34 studs + 11 plate boards + 6 for door + 5 for window = 56 + 10% = 62 boards. At $4-6 per 2×4×8 ft, that is $250-380 in lumber. Buy 65 to allow for spare and grade-out (rejects).
Garage interior wall (10 ft long, 9 ft tall, no openings)
8 studs + 3 plate boards = 11 boards + 10% = 12 boards. Simple stud wall, often built on the ground and tilted up. About $50-70 in lumber for a single-wall partition.
Basement framing (1,000 ft² perimeter)
Approximately 130 ft of perimeter × 0.75 studs/ft + plates + openings = ~150-180 2×4s. Much cheaper to buy in 1,000 ft contract bundles ($3.20-4.20/board) than retail.