CalcWorks

Home › Roofing

Roofing Calculator

Quick start:
Units:Switches the numbers you type and the answers. Diagrams, examples and product sizes stay in feet/inches for now.
Roof area
— ft²
Roofing squares
—
Shingle bundles
—
Ridge cap
— ft
Underlayment rolls
—
Drip edge
— ft
Estimated replacement cost
$—
Metal panels (both slopes)
—
Expected lifespan
— years

Formula verified · Updated Nov 2026

Results update as you type. Estimates only — confirm final quantities before ordering.

Enter your roof footprint and pitch to get the true sloped roof area, the number of roofing squares, how many shingle bundles — or, for metal, how many panels — to buy, ridge cap, underlayment rolls and drip edge — and, if you enter prices, a full replacement estimate (materials + tear-off + labor per square). All three price fields are optional and default to $0, so you can use the quantities alone for a materials-only shopping list. Pick standing-seam or corrugated metal in the material list for a metal roof: panels are counted per slope from the ridge length, and the calculator also gives the expected lifespan so you can compare metal against shingles over the life of the roof.

Roofer installing shingles on a new roof with a nail gun
Embed this calculator

Paste this code into your site to show this calculator on your own page. Adjust the height if the calculator is cut off or leaves a large gap.

The formula

Slope factor = √(1 + (Pitch ÷ 12)²)
Roof area = Length × Width × Slope factor
Squares = ceil(Roof area ÷ 100 × (1 + Waste))
Bundles = Squares × bundles per square (3 for 3-tab and architectural, 4 for designer)
Ridge cap = Roof length (gable ridge, in feet)
Underlayment rolls = ceil(Roof area × (1 + Waste) ÷ 400)
Drip edge = ceil(2 × Length + Width × Slope factor)
Replacement cost = Squares × (Materials + Tear-off + Labor per square)

One roofing square is 100 square feet of roof area. The slope factor is the same geometry as the roof pitch calculator: a 6/12 pitch multiplies the flat footprint by 1.118, so a 1,200 ft² footprint is 1,342 ft² of roof. Ridge cap is the roof length for a simple gable roof — add the hip lengths on a hip roof. Drip edge runs along both eaves (2 × length) plus the two sloped rakes (width × slope factor). All quantities round up, because you cannot buy part of a bundle, roll or square.

Rafter length (ft) = Horizontal run (ft) × Rafter factor
Rafter factor = √(1 + (Pitch ÷ 12)²)  — the same factor this page gives above
Plumb-cut angle = Roof angle = arctan(Pitch ÷ 12)
Tail (ft) = Horizontal overhang (ft) × Rafter factor
Buy length = Rafter length + Tail, rounded UP to the next standard lumber length (8 / 10 / 12 / 14 / 16 ft)
Rafter pairs per side = floor(Building length (in) ÷ Spacing (in)) + 1  •  Total rafters = Pairs × 2

The factor above only gives the multiplier — this section turns it into lumber: the actual rafter length, the tail past the wall, the board length to buy, and how many rafters the roof needs. The count is pairs plus one: a 30 ft wall at 16 in on-center has 22 spaces between rafters and 23 rafters on each side. Buy length is always rounded up to the next standard board — a 14.53 ft rafter needs a 16 ft board, never a 14 ft one.

Metal panels (per slope) = ceil(Ridge length ÷ Panel coverage width)
Metal panels (both slopes) = 2 × Panels per slope
Standing-seam panel coverage width = 16 in (1.33 ft)  •  Corrugated panel coverage width = 26 in (2.17 ft, after overlap)
Shingle bundles = 0 for metal (no shingles are used)

Metal roofing is sold by the square (100 ft²) just like shingles, so the squares and the replacement-cost math above work the same way — enter the metal price per square (standing seam about $1,000–$1,600 per square installed, corrugated about $500–$1,000 per square installed in 2026). The panel count is separate: panels run from ridge to eave, so the number per slope is the ridge length divided by the panel's coverage width, rounded up, and a gable roof has two slopes. Standing-seam panels are typically 12–18 in wide (16 in used here); corrugated panels are 36 in wide but only about 26 in of that covers the roof after the overlap. Lifespans are planning midpoints: 3-tab shingles about 20 years, architectural about 25, designer about 30, standing-seam metal about 50 (published 40–70 years) and corrugated metal about 30 (published 25–40 years) — asphalt shingles generally last 15–25 years, so a metal roof typically outlasts two to three shingle roofs.

Worked example

Example: a 30 ft × 40 ft gable roof, 6/12 pitch, 10% waste, 3-tab shingles, materials $450 per square.

Worked example — rafter length, count and buy length: a 30 ft long building, 12 ft horizontal run, 6/12 pitch, rafters 16 in on-center, 12 in overhang.

FigureWorkingAnswer
Rafter factor (6/12)√(1 + 0.5²) = √1.251.118
Rafter length12 × 1.11813.42 ft
Tail (12 in overhang)1 × 1.1181.12 ft
Total length to buy13.42 + 1.12 = 14.53 ft16 ft boards
Rafters at 16 in on-centerfloor(360 ÷ 16) + 1 = 23 pairs46 rafters
Rafters at 24 in on-centerfloor(360 ÷ 24) + 1 = 16 pairs32 rafters
Plumb-cut anglearctan(0.5)26.57°

Same roof at 24 in spacing: 16 pairs, 32 rafters, still 16 ft boards. The plumb cut — the angle cut at the ridge — is the roof angle itself, 26.57° for a 6/12 pitch.

Worked example — standing-seam metal: the same 30 ft × 40 ft gable roof, 6/12 pitch, 10% waste, standing-seam metal at $1,300 per square installed (materials + labor, tear-off $0).

Corrugated metal on the same roof: ceil(30 ÷ 2.167) = 14 panels per slope, 28 panels total, lifespan 30 years, and at $750 per square installed the cost is 15 × $750 = $11,250.00.

Reference chart

Slope factor by pitch, and shingle and underlayment coverage per square
Pitch / materialFactor or bundlesPer 100 ft² footprint / per squareNotes
4/12 pitch1.054105.4 ft² roof areaLow slope
6/12 pitch1.118111.8 ft² roof areaCommon pitch
8/12 pitch1.202120.2 ft² roof areaSteep
10/12 pitch1.302130.2 ft² roof areaVery steep
12/12 pitch1.414141.4 ft² roof area45°
3-tab shingles3 bundles / square100 ft² = 1 squareRidge cap ~33 ft per bundle
Architectural shingles3 bundles / square100 ft² = 1 squareRidge cap ~33 ft per bundle
Designer / premium shingles4 bundles / square100 ft² = 1 squareHeavier, thicker shingles
#15 felt underlayment1 roll / 400 ft²400 ft² per rollSynthetic underlayment covers more — check the roll label
Standing-seam metal16 in panel width1 panel covers 1.33 ft of ridge40–60 yr lifespan
Corrugated metal26 in coverage width1 panel covers 2.17 ft of ridge25–40 yr lifespan
Standing-seam metal, installed$10–$16 / sq ft$1,000–$1,600 / square2026, HomeGuide
Corrugated metal, installed$5–$10 / sq ft$500–$1,000 / square2026, HomeGuide

Frequently asked questions

What is a roofing square?

One roofing square is 100 square feet of roof area. A 1,500 ft² roof is 15 squares. Shingles, underlayment and roofing labor are all priced per square, which is why the calculator converts your roof area into squares first.

How many bundles of shingles are in a square?

Three bundles per square for 3-tab and architectural shingles, and four bundles per square for designer or premium shingles, which are thicker and heavier. A bundle covers about 33.3 ft² for 3-tab and architectural, and 25 ft² for designer.

How many squares is my roof?

Divide the sloped roof area by 100 and round up, after adding waste. A 30 ft × 40 ft footprint at 6/12 pitch is 1,342 ft² of roof, which is 13.42 squares before waste and 15 squares with 10% waste. Use the calculator — the pitch makes a bigger difference than most people expect.

How much waste should I allow for shingles?

10% is standard for a simple gable roof. Allow 15% for a roof with hips, valleys, dormers or many cuts, and 5% only for a plain rectangle with no features. The waste covers cut pieces, starter strips and the ridge cap.

How many rolls of underlayment do I need?

One roll of #15 felt covers 400 ft², so divide your roof area (with waste) by 400 and round up. A 1,342 ft² roof with 10% waste needs ceil(1,476 ÷ 400) = 4 rolls. Synthetic underlayment comes in larger rolls — often 1,000 ft² — so check the roll label.

How much does a roof replacement cost?

It varies widely by region, material and roof complexity, which is why this calculator does not assume a price — enter your own per-square figures for materials, tear-off and labor. As a rough 2026 guide, an architectural-shingle replacement commonly runs $400–$700 per square installed in total, so a 15-square roof is roughly $6,000–$10,500, but get local quotes before budgeting.

How long should I buy rafters?

Add the rafter length to the tail, then round up to the next standard lumber length (8, 10, 12, 14 or 16 ft) — never down. For a 12 ft run at 6/12 pitch with a 12 in overhang, the rafter is 13.42 ft and the tail is 1.12 ft, so the total is 14.53 ft and you buy 16 ft boards. The offcut is not waste in the usual sense — it is the price of buying whole boards, and the pieces are useful for blocking and lookouts.

How many rafters do I need for a 30 ft wall?

Divide the wall length in inches by the spacing and add one pair: floor(360 ÷ 16) + 1 = 23 pairs at 16 in on-center, which is 46 rafters for both sides of the roof. At 24 in on-center it is floor(360 ÷ 24) + 1 = 16 pairs, or 32 rafters. Add a couple of spares for a split or badly crowned board, and remember gable-end framing and any valleys or hips need extra lumber beyond the common rafters counted here.

How many metal roofing panels do I need?

Divide the ridge length by the panel's coverage width and round up, then double it for the two slopes of a gable roof. Standing-seam panels cover about 16 inches each, so a 30 ft ridge needs ceil(30 ÷ 1.333) = 23 panels per slope, 46 in total. Corrugated panels cover about 26 inches after overlap, so the same ridge needs 14 per slope, 28 in total. Panel length is the slope length from ridge to eave — order panels cut to that length, plus the waste allowance.

Is a metal roof worth the extra cost over shingles?

On upfront cost, no — a standing-seam metal roof at $10–$16 per square foot installed (2026, HomeGuide) costs roughly two to three times an architectural-shingle roof. On lifetime cost it usually is: standing seam lasts 40–70 years against 15–25 for asphalt shingles, so one metal roof outlasts two to three shingle roofs, with no re-roofing tear-off in between. Corrugated metal at $5–$10 per square foot installed is much closer to shingle pricing, but its exposed fasteners need attention after 15–25 years and its lifespan is 25–40 years.

Related calculators

How we verify this

1 roofing square = 100 ft²; 3-tab and architectural shingles 3 bundles/square, designer/premium 4 bundles/square (GAF and CertainTeed published coverage); #15 felt underlayment 400 ft²/roll; ridge cap about 33 linear ft per bundle; slope factor sqrt(1 + (pitch/12)^2) — same geometry as the roof pitch calculator. Replacement cost inputs are optional — 2026 installed costs vary widely by region and material, so no price is assumed. Demand: 'roofing calculator' 22,200 US searches/mo (WordStream, 13 Nov 2026). Metal: installed cost standing seam $10–$16/sq ft, corrugated $5–$10/sq ft (HomeGuide roof replacement cost guide, 2026; corroborated by RoofVista and HammerIO 2026 metal roof guides, $5–$16/sq ft overall); lifespans — standing seam 40–70 years, corrugated / exposed-fastener 25–40 years, asphalt shingles 15–25 years (HomeGuide 2026; Metal Roofing Alliance via published 2026 guides); standing-seam panel widths typically 12–18 in (16 in planning width), corrugated coverage about 26 in after overlap (manufacturer panel specs).