# Wall framing calculator

> How many studs does a wall take with a door or window in it? See it framed stud by stud, with every board’s length to cut.

Page: https://hauscraft.app/calculators/wall-framing-calculator/

Run it through HausCraft's MCP server (https://hauscraft.app/mcp, streamable HTTP, no key): call `calculate` with

```json
{
  "calculator": "wall-framing-calculator",
  "values": {
    "length": 14,
    "height": 96,
    "side": 0,
    "studs": 4,
    "door": 30,
    "doorAt": 10,
    "window": 36,
    "windowAt": 4
  }
}
```

A value left out is its start. `covered: true` shows it with finished. It answers with every piece and its size, and a 3D view where the client shows one.

| Key | What | Takes | Start |
|---|---|---|---|
| `length` | Wall length | 3–40 ft | 14 |
| `height` | Wall height | 96 = 8 ft; 108 = 9 ft; 120 = 10 ft | 96 |
| `side` | Wall | 0 = Inside (doors); 1 = Outside (doors and windows) | 0 |
| `studs` | Studs | 4 = 2×4; 6 = 2×6 | 4, only where `side` = 0 |
| `door` | Door | 0 = None; 30 = 30 in; 32 = 32 in; 36 = 36 in | 30 |
| `doorAt` | Door’s middle, from the wall’s start | 1–39 ft | 10 |
| `window` | Window | 0 = None; 24 = 24 in; 36 = 36 in; 48 = 48 in; 60 = 60 in | 36, only where `side` = 1 |
| `windowAt` | Window’s middle, from the wall’s start | 1–39 ft | 4, only where `side` = 1 |

## How it is worked out

- Studs stand 16 in on centre from the wall’s start, on a sole plate and under a doubled top plate, with a stud at each end.
- A door has a king stud each side, a jack stud inside each king, and a header across the jacks. The header is two boards on edge with plywood between them to make up the wall’s depth, and short studs stand over it on the 16 in marks.
- The sole plate is cut out across a doorway.
- A window, in an outside wall, is framed as a door is, with a sill between its jacks and short studs under the sill.
- Plates come up to 20 ft long. A longer wall’s plates are jointed over a stud, and the upper top plate’s joints sit 4 ft or more from the lower one’s.
- A door or window needs room beside it for its king and jack studs. One set too near the wall’s end is turned down, and we say why.

We lay out and count the sizes you pick, close enough to plan a weekend and price the lumber. Span tables, your local code and, on a bigger job, an engineer settle what size each board has to be.

## Questions

**How many studs do I need for a wall?** More than the wall’s length divided by 16 in. Each end, each side of every opening, and the short studs over a header and under a sill all add to the count, and the list has every one.

**Where do I add a window?** Choose Outside for the wall. Windows go in outside walls, and inside walls take doors.

**How long are the studs?** Each is cut to stand between the sole plate under it and the two top plates over it. The list gives their length for the height you choose.

## The MCP server

https://hauscraft.app/mcp: streamable HTTP, open, no key. It answers with every piece and its size, or why it can't be built; nothing is stored, and nothing is sized structurally.

Tools: `guide`, `list_calculators`, `calculate`, `build`.

An owner's own properties are there too, once they sign in to HausCraft on a monthly plan and allow the client (OAuth, asked for the first time one is needed): `list_properties`, `new_property`, `show_property` (the property in 3D as it stands), and each of a property's tools, `get_buildings` first, taking its id. A change is kept, and shown in the editor as it is made.

Claude Code: `claude mcp add --transport http hauscraft https://hauscraft.app/mcp`. Claude, ChatGPT and other clients: add it as a remote (custom) connector at that address.
