# Gambrel roof calculator

> Where do a barn roof’s two slopes meet, and how long is each rafter? Pick the two pitches and see both slopes framed, every rafter listed.

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

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

```json
{
  "calculator": "gambrel-roof-calculator",
  "values": {
    "width": 20,
    "length": 24,
    "lower": 20,
    "upper": 6,
    "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 |
| `lower` | Lower pitch | 12–30 in 12 | 20 |
| `upper` | Upper pitch | 3–10 in 12 | 6 |
| `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

- Each side has two runs of rafters. A steep one rises from the wall to where the slope turns, and a shallow one runs from there to the ridge.
- The slope turns a quarter of the building’s width in from each wall.
- Where the two runs meet they butt a board along the turn, as the upper ones butt the ridge board at the peak.
- Lower rafters are notched over the wall’s plate and run on to the overhang.
- The gable ends are framed up to the roof in studs, and each rake has a barge rafter on lookouts.
- What holds a gambrel’s shape, gussets at the turns or a floor across, is yours to add.

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 are the angles of a gambrel roof?** A steep lower slope near 60° with an upper near 30° is a common barn shape. This starts close to that, and both are yours to change.

**Where does a gambrel roof break?** Here, a quarter of the width in from each wall. The height of the break follows from the lower pitch.

**Does it draw the gussets?** It frames the rafters and the boards they meet on. Gussets and collar ties at the turns are yours to add.

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