# Saltbox roof calculator

> Move the ridge off centre and what happens to the back slope? See a saltbox roof framed, with the back pitch and every rafter’s length.

Page: https://hauscraft.app/calculators/saltbox-roof-calculator/

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

```json
{
  "calculator": "saltbox-roof-calculator",
  "values": {
    "width": 20,
    "length": 24,
    "ridge": 7,
    "pitch": 10,
    "overhang": 12,
    "oc": 24
  }
}
```

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

| Key | What | Takes | Start |
|---|---|---|---|
| `width` | Building width | 6–40 ft | 20 |
| `length` | Building length | 6–60 ft | 24 |
| `ridge` | Ridge, in from the front wall | 2–38 ft | 7 |
| `pitch` | Front pitch | 3–14 in 12 | 10 |
| `overhang` | Overhang | 6–24 in | 12 |
| `oc` | Spacing | 12 = 12 in on centre; 16 = 16 in on centre; 24 = 24 in on centre | 24 |

## How it is worked out

- The ridge sits off the middle. Short rafters rise steeply from the front wall to it, and long ones fall from it to the back wall.
- Both walls are the same height, so the back slope’s pitch follows from where the ridge is. It is given above the list.
- Rafters are notched over the plate on each wall and run on to the overhang. They butt a ridge board along the peak.
- The gable ends are framed up to the roof in studs, and each rake has a barge rafter on lookouts.
- A back rafter that would need to be longer than a 20 ft board 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

**What is a saltbox roof?** A gable roof with its ridge off the middle, so one slope is short and steep and the other long and shallow.

**How do I get a lower back wall?** Many saltboxes drop the back wall a storey. This one keeps both walls at one height and gets its long back slope from the ridge sitting forward.

**Why was my roof turned down?** Most often the back rafter would be longer than a 20 ft board. Moving the ridge toward the middle or narrowing the building brings it back.

## 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.
