How many studs do I need?
Start with the wall length divided by the stud spacing, plus one. Then adjust: each door or window replaces the studs inside its opening with two king studs (full height, at each side) and two jack studs (holding the header), plus short cripple studs above the header and below a window sill. Each corner adds about two studs, and so does every wall that ties in.
Example: a 16-foot exterior wall, 8 feet tall, studs 16" on center, with one 38" window and one 38" door and corners at both ends. That's 21 full-length studs and 3 more cut into cripples — 27 to buy with 10% extra for crooked ones, plus four 16-foot plates and five sheets of sheathing.
Precut stud lengths
Precut studs are sized so the wall comes out right with a single bottom plate and double top plate: 92 5/8" for an 8-foot wall, 104 5/8" for 9 feet, and 116 5/8" for 10 feet.
Headers
In a bearing wall each opening needs a header — usually two 2x boards on edge with 1/2" plywood between to match the wall thickness. The size depends on the span and the load above; the residential code's header tables (IRC R602.7) give the sizes. Non-bearing interior walls can use a single flat 2x.
Covering the wall afterward? Try the drywall calculator inside and the siding calculator outside.