Mansard Roof Framing Calculator
Count the rafters in both bands of a mansard roof, get both lengths, the inner rectangle and the total framing from the span, length, pitches, runs and spacing.
Quick answer: a 30 by 40 ft mansard at 12:12 below and 5:12 above, with a 5 ft lower run and a 10 ft upper run at 2 ft spacing, needs 74 lower rafters at 8.49 ft and 54 upper at 10.83 ft — 1,212.9 ft in total.
- Rafters on all four sides
- Two bands, two counts
- Inner rectangle reported
Mansard framing inputs and results
If the runs exceed half the span the upper band has nowhere to go and the geometry fails.
Rafters sit on four sides in both bands, which is why the counts follow two perimeters rather than the roof length.
Show calculation
What this mansard roof framing calculator works out
A mansard is a gambrel wrapped around all four sides of a building: a steep lower band from the wall up to a step, and a shallow upper band from the step to the top. The framing therefore runs around two perimeters rather than along one length, which is what makes the counts behave so differently from a gable.
The page returns both rafter lengths, both counts, the inner rectangle the upper band sits on, and the total footage.
It does not work out the purlin or plates that carry the step, the dormers that so often sit in the lower band, the tie detail, or either member size. Those are separate, and on a mansard the step support is usually the most expensive part of the frame.

What each mansard roof framing input and result means
Eight inputs, five results. Four of the inputs describe the two runs in plan; the rest describe the building and how you are framing it.
| Field | Unit | What to enter |
|---|---|---|
| Building span | feet | The shorter plan dimension, outside face to outside face. |
| Building length | feet | The longer plan dimension. |
| Lower pitch | rise per 12 | The steep band, as rise over 12. Usually 12 to 20 on a mansard. |
| Upper pitch | rise per 12 | The shallow band, as rise over 12. Usually 3 to 6. |
| Lower run | feet | Horizontal distance in plan from the wall to the step. This sets how far the upper band is inset on every side. |
| Upper run | feet | Horizontal distance in plan from the step to the top. It is measured on the inner rectangle, not the outer wall. |
| Rafter spacing | feet | Centre-to-centre spacing in feet. 16 in is 1.333, 24 in is 2. |
| Eave overhang | feet | Horizontal projection past the wall. It is added to the lower run only; the upper band has no eave. |
| Result | Unit | What it means |
|---|---|---|
| Lower rafter | feet | Cut length of the steep member, from the eave to the step, overhang included. |
| Upper rafter | feet | Cut length of the shallow member, from the step to the top. No overhang. |
| Lower count | count | Members around the outer perimeter — both long walls and both short ones, at your spacing. |
| Upper count | count | Members around the inner perimeter, which is smaller by twice the lower run on each dimension. |
| Total framing length | feet | Lower count × lower length, plus upper count × upper length. No ridge, purlin or ties. |
Lengths are displayed to two decimal places and counts are whole numbers. The two counts differ because they follow different perimeters, not because of any rounding.
How to use the mansard roof framing calculator
Eight fields, and the results update as you type. The two runs are the ones that decide the shape, so get those right first.
- Span and length are the outside plan dimensions. Span is the shorter one.
- Both pitches as rise per 12 — steep below, shallow above.
- Lower run is measured from the wall inward to the step. It is the same on all four sides, which is what makes the inner rectangle a rectangle.
- Upper run is measured from the step inward to the top. It is not the same as the lower run, and on most mansards it is longer.
- Spacing and overhang in feet and horizontal respectively.
Check the arithmetic before you cut anything: the lower run must be less than half the span, and the two runs together must not exceed half the span. If they do, the upper bands meet before the top and the profile cannot close.
Where they add up to exactly half the span — as they do in the default example — the top is a ridge line rather than a flat. That is a legitimate mansard, but it is not what most people picture, so check which one you are building before you order the ridge.
Mansard roof framing formulas
upper rafter = r2 × √(1 + (p2 ÷ 12)²)
inner length = length − 2 × r1
inner span = span − 2 × r1
lower count = 2×(⌊L÷s⌋+1) + 2×(⌊W÷s⌋+1)
upper count uses the inner dimensions
Each side contributes twice, because there are two long walls and two short ones. That is why the outer count on a 30 by 40 ft building is 74 rather than the 42 a gable of the same footprint would need.
The upper count is smaller because the inner perimeter is smaller. The band steps in by the lower run at every edge, so the inner rectangle is shorter by twice the lower run in each direction — 10 ft off the length and 10 ft off the span in the default example.
Note what the upper rafter does not contain: no overhang term. The upper band sits behind the step and has no eave, so its length is simply the upper run multiplied by the upper pitch factor.
If you only need one of the members rather than the whole frame, each band is a common rafter on its own pitch, and common rafter length gives it directly.
Mansard roof framing: four sides, two bands
The lower band is the visible face of the roof: steep, often carrying dormers, and running right around the building. The upper band is shallower and sits behind it, on a rectangle inset by the lower run.
That inset is why the upper count is lower. On a 30 by 40 ft building with a 5 ft lower run, the outer perimeter is 140 ft and the inner one is 100 — so the same spacing produces 74 members instead of 54.
Does the roof finish on a flat or a ridge?
This is the question the calculator will not answer for you, and it changes the roof you are building. Add the two runs together and compare the total with half the span:
- Less than half the span — the upper bands meet and leave a flat top. On a 30 ft span with a 4 ft lower run and an 8 ft upper run, the flat is 6 ft across.
- Exactly half the span — the bands meet on the centre line and the top closes to a ridge. The default example does this: 5 plus 10 is 15, which is half of 30.
- More than half the span — the profile cannot close. The bands would have to pass through each other, so the numbers stop describing a buildable roof.
How it differs from the other four-sided roofs
A gable roof framing calculation gives you two planes, one pitch and one run of identical rafters per side. A hip roof framing calculator gives you four planes but still only one band, with hips running to the corners. A mansard is the only one of the three with two bands on all four sides, which is why both counts here follow perimeters rather than a single ridge length.
The covering is a separate exercise. Sloped area, squares and waste for this profile are handled by the mansard roof calculator, and the two figures answer different questions: this page counts timber, that one measures surface.

Worked mansard roof framing examples
Example 1 — 30 by 40 ft, 5 ft lower run, 10 ft upper
- Lower rafter
- (5 + 1) × 1.4142 = 8.49 ft
- Upper rafter
- 10 × 1.0833 = 10.83 ft
- Outer counts
- 2×21 + 2×16 = 74
- Inner rectangle
- 30.0 by 20.0 ft
- Inner counts
- 2×16 + 2×11 = 54
- Total
- 74×8.49 + 54×10.83 = 1,212.9 ft
Seventy-four lower rafters against fifty-four upper, because the band steps in on all four sides.
Example 2 — a smaller building at tighter spacing
- Inputs
- 24 by 36 ft, 14:6, 4 ft and 8 ft runs, 1.5 ft spacing
- Lower rafter
- (4 + 1.5) × 1.5366 = 8.45 ft
- Upper rafter
- 8 × 1.1180 = 8.94 ft
- Outer counts
- 2×25 + 2×17 = 84
- Inner rectangle
- 28.0 by 16.0 ft
- Total
- 84×8.45 + 60×8.94 = 1,246.6 ft
A smaller roof with more framing, because the tighter spacing raises both counts.
Example 3 — a mansard that finishes on a flat
- Inputs
- 30 by 40 ft, 12:12 below, 5:12 above, 4 ft lower run, 8 ft upper run, 2 ft spacing, 1 ft overhang
- Lower rafter
- (4 + 1) × 1.4142 = 7.07 ft
- Upper rafter
- 8 × 1.0833 = 8.67 ft
- Outer counts
- 2×21 + 2×16 = 74
- Inner rectangle
- 32.0 by 22.0 ft
- Inner counts
- 2×17 + 2×12 = 58
- Flat on top
- 22 − 16 = 6.0 ft across, 32 − 16 = 16.0 ft long
- Total
- 74×7.07 + 58×8.67 = 1,025.9 ft
Four plus eight is twelve, which is less than half the 30 ft span, so the bands stop short and leave a 16 by 6 ft flat. Move the lower run out to 5 ft and the upper to 10 ft and that flat disappears entirely, on the same building.
Moving the step, keeping the top closed
The same 30 by 40 ft building with the two runs always adding to 15 ft — the half span — so every row closes to a ridge. Only the split between the bands changes.
| Lower run | Upper run | Lower rafter | Upper rafter | Inner rectangle | Upper count | Total |
|---|---|---|---|---|---|---|
| 3 ft | 12 ft | 5.66 ft | 13.00 ft | 34 × 24 | 62 | 1,224.6 ft |
| 4 ft | 11 ft | 7.07 ft | 11.92 ft | 32 × 22 | 58 | 1,214.5 ft |
| 5 ft | 10 ft | 8.49 ft | 10.83 ft | 30 × 20 | 54 | 1,212.9 ft |
| 6 ft | 9 ft | 9.90 ft | 9.75 ft | 28 × 18 | 50 | 1,220.1 ft |
| 7 ft | 8 ft | 11.31 ft | 8.67 ft | 26 × 16 | 46 | 1,235.9 ft |
The total barely moves — about 2% across the whole range — while the profile changes completely. A mansard with a 3 ft lower band and one with a 7 ft lower band are different buildings, and the timber cost tells you almost nothing about which you have chosen. Decide the profile on how it looks and how the rooms work, then use the footage to price it.
Mansard roof framing limitations
- Rafters only. The step framing, the top deck or ridge, ties and blocking are separate. The step support is usually the largest of them.
- Equal pitches on all sides. A different pitch at the ends needs its own calculation, and the inner rectangle stops being a rectangle.
- No dormers. They interrupt the lower band, and each one is framed separately. A mansard with four dormers has four extra framing jobs.
- No waste. The total is member length before cutting. A two-band roof generates more offcut than a single-band one, because the upper members come out of the same stock at a different angle.
- No sizing. The two bands almost always need different member sizes — a steep short lower rafter and a shallow long upper one are not the same member.
- Rectangular plan only. An L-shaped mansard is several roofs joined together, with valleys where they meet.
- No gable ends to frame. A mansard has none, which is part of why it is chosen. If your building has a gable section, that portion needs its own gable end framing calculator.
- No top detail. Whether the roof finishes on a flat or a ridge is decided by the two runs, and the member that closes it is not in this count.
Roof Pitch Resources and Guides
Reference values for the two pitches this roof uses.
Roof Pitch Chart
Every common pitch in one table: degrees, slope percentage, pitch factor and rafter length per 12 of run.
Read the reference6/12 Roof Pitch
26.57°, a 50% slope and a pitch factor of 1.118 — the pitch used in most worked examples.
Read the reference4/12 Roof Pitch
18.43° and a 33.33% slope. A moderate roof near the shallow end for many coverings.
Read the reference3/12 Roof Pitch
14.04° and a 25% slope, common on porches, lean-tos and outbuildings.
Read the reference2/12 Roof Pitch
9.46° and a 16.67% slope — the shallow end of what is usually still called a pitched roof.
Read the reference8/12 Roof Pitch
33.69° and a 66.67% slope. A steep roof with noticeably more surface per square foot of footprint.
Read the reference12/12 Roof Pitch
45°, a 100% slope and a pitch factor of 1.414, where rise equals run.
Read the referenceFrequently asked questions
A gambrel has two planes on the two long sides and gable ends. A mansard has the same two bands on all four sides, so rafters also run on the short walls. That is why the count is perimeter-based rather than length-based.
Because the lower band runs around the outside of the building and the upper band runs around a smaller rectangle inside it. On the default example that is 74 lower against 54 upper, from an outer perimeter of 140 ft and an inner one of 100 ft.
Each side is shortened by twice the lower run, because the band steps in on both ends of every side. So the inner rectangle is length minus 2×r1 by span minus 2×r1.
Yes. The eave overhang lengthens the lower rafter, which is the one that reaches the wall plate. The upper band finishes at the top of the slope, so it has no overhang.
The inner rectangle shrinks. If 2×r1 exceeds the span, there is no top left at all and the geometry fails. The page reports the inner dimensions so you can see this before ordering timber.
Because rafters run on all four sides. The long walls give one count and the short walls another, and the total is twice each. A gambrel only needs the length, because the ends are gables.
Lower count times lower length, plus upper count times upper length. The two bands are separate because they have different counts and different lengths. On the default example that is 628 ft plus 585 ft.
It depends on the two runs. If they add up to half the span on each side, the top closes to a point or a ridge; if they do not, a flat deck is left. The page reports the inner rectangle, which is that flat top.
No. Dormers are separate frames in their own right, cut into the lower band. They also interrupt the rafter run, which is a layout consideration rather than a quantity one.
No. The lower band is steep and short, the upper is shallow and long, and they usually need different sizes. Sizing is a span-table question, and the step between the bands is a structural point.
That is a design decision, and the calculator does not touch it. The upper band lands at the step and delivers load there, so the step needs something to carry it — a purlin on posts, a plate on the inner wall line, or a framed curb. It is the same problem a gambrel has at its break, and it is where most of the structural cost of a mansard sits.
The arithmetic allows it, but you would not call the result a mansard. The profile exists because the lower band is steep — near vertical, which is what creates the usable space inside — and the upper band is shallow enough to shed water and take a covering. Two equal pitches give you a plain hipped roof with an odd step in it.
Because it covers a longer run, not because of its pitch. In the default example the upper run is 10 ft against the lower run's 5 ft, so even at a much shallower pitch the member comes out longer. Swap the runs and the relationship reverses — it is the run that drives the length, and the pitch only scales it.
Where these numbers come from
Each band is a right triangle on its own run and pitch. The counts follow from the outer and inner perimeters and the spacing you enter. Nothing depends on a rule of thumb.
No table is involved and no member is sized. The two runs are design inputs, not values the page chooses, and whether the roof closes on a flat or a ridge follows from their sum.
- Your own measurement of the span and length, taken outside face to outside face.
- The two design pitches and the two runs, from the drawings.
- A span table or designer for the two member sizes, and for the step support.
- International Residential Code, Chapter 8 — Roof-Ceiling Construction (International Code Council), for rafter sizing under R802.4.1 and the continuous-tie requirement in R802.2. The IRC has no mansard-specific clause, which is why this profile needs a designer.
Only two sides?
A gambrel runs the same two planes on the long sides only, with gable ends.