Skip to content
LoveToCalc

Theorem — what does that mean?

Roof area from pitch

A sloping roof is always larger than the building beneath it. The cosine of the pitch says exactly how much larger.

In Swedish: Takarea ur taklutning

Roof area from pitch

The relation

A=Bcos(θ)

The area the building covers, divided by the cosine of the pitch. A sloping roof is always larger than the floor beneath it, and this is by how much.

Solve for

A≈138.5641cm²

A equals 120 divided by the cosine of (30 degrees), is approximately 120 divided by 0.866, is approximately 138.5641 cm²

Working3 steps

Practice questions

You are given

  • B=140cm²
  • θ=20°

Round to 1 decimal.

Pick the unit your lengths are in. Areas are then labelled in square units and volumes in cubic units; nothing is converted.

Why the roof is larger than the house

A house with a 120 m² footprint does not have 120 m² of roof. Seen from straight above, the roof covers exactly the footprint — but the roof slopes, and a sloping surface that spans a given width has to be longer than that width. That is what the formula works out, and forgetting it is how an order of roof tiles comes up short.

Take a section straight through the house. The section is a right-angled triangle: the horizontal leg is the width of the building, the sloping hypotenuse is the roof surface, and the angle between them is the pitch. The relation between an adjacent leg and the hypotenuse is what cosine describes:

So the slope is the width divided by the cosine. And because every part of a roof with a single pitch is stretched in the same way, the same holds for the whole surface, not just for the width.

The formula, and which roofs it covers

The footprint is the area the building covers on the ground — the one you read off a floor plan. The roof area is the surface you actually have to put material on.

The formula holds for any roof whose surfaces all share one pitch: a gable roof, a hip roof, a shed roof. A hip roof has four surfaces instead of two, but if all four slope alike they stretch alike, and the total comes out the same.

A mansard roof has two pitches. There you use the formula once per band — the steep band’s footprint at the steep angle, the shallow band’s at the shallow one — and add them. The formula does not change; it is used twice.

Eaves are not included. The footprint stops at the wall, and an overhang of half a metre all round adds a strip you count as a separate rectangle.

Worked examples

A gable roof. The house is 8.0 m wide and 15.0 m long, and the roof has a pitch of 27°. How much roof has to be covered?

The footprint is 8.0 · 15.0 = 120 m². Then divide by the cosine of the pitch:

Fifteen square metres more than the floor, or a little over 12% extra material — a difference that shows up directly in a quote.

The pitch from two areas. A roof measures 96 m² and the house beneath it 80 m². How steep is the roof?

The key is marked cos⁻¹ or acos. The sanity check is easy: the roof area has to be the larger of the two numbers, or no pitch fits them.

Common mistakes

Frequently asked questions

Does this work for a hip roof? Yes, as long as all four surfaces share the same pitch. A hip roof divides the same footprint among more surfaces, but every surface stretches by the same 1/cos θ, so the total is the same as for a gable roof at the same pitch.

What happens at 0° and at 90°? At 0° the cosine is 1 and the roof area is exactly the footprint — a flat roof. At 90° the cosine is 0 and the division cannot be carried out: a roof standing upright covers nothing at all, so there is no footprint to spread across it. The formula applies in between.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
θarccos(BA)arccos(120138.6)30°
BA cos(θ)138.6 cos(30°)120 cm²
ABcos(θ)120cos(30°)138.6 cm²

Last reviewed October 6, 2026 ·How pages are reviewed

Calculate it in practice

TrigonometryAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.