Wall framing calculator
calculate_wall_framingUse this when someone plans a stud wall and asks how many studs, plates or headers they need. Lays out one straight wood stud wall and counts its lumber: the stud length (height less the bottom plate and the top plates), a stud at each end and studs on centers measured from the left end, an extra stud beside the end stud at each corner, two studs at each meeting wall, and for each door and window king studs (exterior walls: IRC Table R602.7.5, 1 up to a 4 ft span, 2 up to 8 ft, 3 up to 14 ft, 4 up to 18 ft; interior walls: 1), jack studs, a header and cripples on the layout above it (none above a flat header with 24 in or less to the top plate, IRC R602.7.4); windows also get a flat sill and cripples under it. Doors, windows and meeting walls are spread evenly along the wall, doors and windows in turn. It returns the counts of each kind, the pieces to cut (jacks, cripples, header boards and sills with their lengths), the studs (full-height studs plus the studs the jacks and cripples are cut from), the studs to buy with spares (10 % unless given), the plates in millimeters (the length once for the bottom plate and once for each top plate, plus the sills and a flat header) and the boards of the given length, the wall and rough-opening areas in square meters, the sheets for one face less the openings without waste, and every piece with its place in the wall from the lower left corner. Lumber sizes follow PS 20 (1 1/2 in thick; 2×8 7 1/4 in deep). It does not size headers or jack studs; IRC Table R602.7(1) does for exterior bearing walls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"length": "<length>",
"height": "<height>",
"spacing": "<spacing>",
"stock": "<stock>"
},
"name": "calculate_wall_framing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sill | No | Height of the bottom of a window's rough opening above the bottom of the frame; 876.3 (34 1/2 in) when left out, in millimeters. | |
| doors | No | Number of doors; none when left out. | |
| jacks | No | Jack studs at each side of an opening, 1 or 2; 1 when left out. | |
| sheet | No | Sheet that covers one face: 4x8, 4x10 and 4x12 ft, 1200x2400 and 1250x2000 mm; 4x8 when left out. | |
| spare | No | Percent of studs added as spares; 10 when left out. | |
| stock | Yes | Length of the boards bought for the plates, such as 4876.8 (16 ft), in millimeters. | |
| header | No | flat: one flat 2×4, for nonbearing walls (IRC R602.7.4, openings up to 8 ft); 2x6, 2x8, 2x10, 2x12: two boards on edge. 2x8 when left out. | |
| height | Yes | Height of the frame, from the bottom of the bottom plate to the top of the top plate, in millimeters. | |
| length | Yes | Length of the wall, in millimeters. | |
| corners | No | Ends of the wall at a corner, 0 to 2; each adds a stud beside the end stud. 0 when left out. | |
| meeting | No | Walls that butt into this wall between its ends; each adds a stud at both sides. None when left out. | |
| spacing | Yes | Stud spacing on center, such as 406.4 (16 in), 609.6 (24 in), 400 or 600, in millimeters. | |
| windows | No | Number of windows; none when left out. | |
| exterior | No | True for an exterior wall, whose king studs follow IRC Table R602.7.5; false for an interior wall, with one king stud at each side. True when left out. | |
| doorWidth | No | Width of a door's rough opening; 965.2 (38 in, for a 36 in door) when left out, in millimeters. | |
| thickness | No | Thickness of the lumber; 38.1 (1 1/2 in) when left out, in millimeters. | |
| topPlates | No | Top plates, 1 or 2; 2 when left out. | |
| doorHeight | No | Height of a door's rough opening; 2095.5 (82 1/2 in, for an 80 in door) when left out, in millimeters. | |
| windowWidth | No | Width of a window's rough opening; 914.4 (36 in) when left out, in millimeters. | |
| windowHeight | No | Height of a window's rough opening; 1219.2 (48 in) when left out, in millimeters. |