Skip to content

Methodology and Sources

Written by
Suraj Jha
Last updated
Method
Formulas and sources

This page is the single reference for how every result on the site is produced. If a number on a calculator page cannot be traced to a formula or source here, tell us at contact.

Principles

  1. Results come from formulas you can check by hand. Each calculator shows its working under the result.
  2. We never invent prices, coverage figures, code limits or lifespans. If a figure needs a source and we have none, the tool asks you to enter it.
  3. Sourced figures carry the source’s name, its year or period and, below, the date we checked it.
  4. Tools give lengths, angles, areas and counts only. They do not size structure or check code.

Formulas

Pitch is written as rise over 12 inches of run (a "6/12" roof rises 6 in per 12 in). Angles are measured from level.

QuantityFormulaUsed by
Anglearctan(rise ÷ run)Pitch, multiplier, rafter
Percent sloperise ÷ run × 100Pitch, chart
Sloped length√(rise² + run²)Pitch
Pitch multiplier√(rise² + 12²) ÷ 12Area, multiplier, rafter
Hip / valley factor√(rise² + 2 × 12²) ÷ 12, per foot of common runMultiplier, area
Roof areaflat footprint × multiplierArea, squares, shingles
Roofing squaresarea ÷ 100Squares, shingles
Area with wastearea × (1 + waste ÷ 100), waste typed by youSquares, shingles
Packages neededquantity ÷ coverage per package, rounded up, coverage typed by youShingles
Common rafter length(span ÷ 2 − ridge ÷ 2 + overhang) × multiplierRafter
Plumb cut / seat cut90° − angle / angle, from the board edgeRafter
Percent slope to pitchpercent ÷ 100 × 12; degrees to pitch = 12 × tan(angle)Pitch to degrees
Gable-end triangle½ × width × peak height; peak = width ÷ 2 × rise ÷ 12Gable roof
Sheathing sheetsarea with waste ÷ sheet area (32 sq ft for 4 × 8), rounded upSheathing, roofing calculator
Metal panels(length + 2 × rake) ÷ coverage width, rounded up, per plane; panel length = slope run × multiplierMetal roofing
Soffit areaeave length × depth + rake length × depthSoffit
Rain flow (gpm)area × (rainfall in/hr ÷ 12) × 7.48052 ÷ 60, rainfall typed by youGutter size
Net siding areaperimeter × height + gables − openings; gable = ½ × width × (width ÷ 2 × rise ÷ 12)Siding, vinyl, fiber cement
Siding trimopening perimeter = 2 × (w + h); rake trim = 2 × half width × multiplier per gable; starter = perimeterVinyl siding
Lap plank coverageexposure × length; planks = area with waste ÷ coverage, rounded upFiber cement
Board and battenspacing = board width + gap; boards = (wall + gap) ÷ spacing, rounded up; battens = boards − 1Board and batten
Gutter partspieces = length ÷ piece; hangers = length ÷ spacing + 1 per run; end caps = 2 × runsGutter calculator
Gambrelplane length = √(run² + rise²); end wall by the polygon (shoelace) formulaGambrel roof
Shed roofrafter = (width + overhangs) × multiplier; wall step = width × pitch ÷ 12Shed roof
Truss outlinetop chord = (span ÷ 2 + overhang) × multiplier; peak = span ÷ 2 × pitch ÷ 12; count = floor(length ÷ spacing) + 1Roof truss
Rafter countper side = floor(length ÷ spacing) + 1; total = 2 × per sideRoof framing
Flat-roof falltotal = in per ft × run; percent = in per ft ÷ 12 × 100; ratio = 12 ÷ in per ftFlat roof slope
Cost line totalquantity × the price you enter. Quantity is squares, sq ft, feet, bundles, your count, or 1 for a lump sumAll cost calculators
Cost totalsubtotal + contingency % × subtotal + other % × (subtotal + contingency)All cost calculators
Per square and per sq fttotal ÷ (area ÷ 100); total ÷ area; per square = per sq ft × 100Cost calculators, cost per square
Coating gallonsarea × coats ÷ coverage per gallon × (1 + waste), rounded upRoof coating
Bundles by areaarea ÷ 100 × bundles per square, rounded upShingle coverage chart
Mono trussclimb = span × pitch ÷ 12; top chord = (span + overhangs) × multiplierMono truss
Scissor trussceiling rise = span ÷ 2 × ceiling pitch ÷ 12; chords = half span × each multiplierScissor truss
Attic roomedge height = (span − room) ÷ 2 × pitch ÷ 12; flat ceiling = span − 2 × height × 12 ÷ pitchAttic truss
Attic volumegable = width × height × length ÷ 2; hip = height × width × (3 × length − width) ÷ 6Roof volume
Heat cablerepeats × 2 × √((spacing ÷ 2)² + height²) + straight runsHeat cable
Underlaymentarea × roll width ÷ exposed width (+ starter on a double layer) ÷ roll areaUnderlayment
Ice barrier reach(overhang + 2 ft) × multiplier; at 8/12 or steeper, not less than 36 inIce and water shield
Nailsarea ÷ 100 × shingles per square × nails per shingleRoofing nail
Drip edgeedge length ÷ (piece − lap), rounded upDrip edge
Vent areavented area × 144 ÷ 150 or 300Attic ventilation
Lap coursesheight ÷ exposure, rounded up; planks = courses × length ÷ plankLap siding
Gable wall paneleave height + distance from the nearer corner × pitch ÷ 12Metal siding
Gutter dropdistance from high point × fall per unit length, fall typed by youGutter slope

Roof shapes

  • Gable: footprint = (length + 2 × rake overhang) × (width + 2 × eave overhang). Two planes, ridge along the length. Eaves = 2 × footprint length. Rakes = 4 × half the footprint width × multiplier.
  • Hip: footprint = (length + 2 × eave) × (width + 2 × eave), four planes of equal pitch. Ridge = long side − short side. Each of four hips = hip factor × half the short side.
  • Shed: one plane, footprint as for a gable. Eave = footprint length, the low edge only. The high edge is the same length. Rakes = 2 × footprint width × multiplier. Drip edge covers all four edges; starter and gutters use the low eave.
  • All shapes assume one pitch throughout. Extra sections are added as flat footprint × their own multiplier.

Check values

These known values are in the automated tests that run before any change is published.

PitchAngleMultiplierHip / valley
4/1218.435°1.0541.453
6/1226.565°1.1181.500
8/1233.690°1.2021.563
12/1245.000°1.4141.732

The tests also cover length parsing (24' 6 1/2", 24-6-1/2, 24.5 ft, metric), rafter and gutter arithmetic, package rounding and error cases.

Values you enter, and why

  • Coverage per bundle and other packages. This varies by product and is printed on the packaging. The shingle calculator starts at 33.3 sq ft, which is simply 100 ÷ 3 (three bundles per square), and offers buttons for 3, 4 and 5 bundles per square. Edit it to match your wrapper.
  • Waste. There is no universal figure, so it starts at 0. Use the figure your supplier recommends.
  • Gutter capacity, downspout capacity and rainfall intensity. Product and location facts. The gutter size calculator converts area and rainfall into flow and compares it with the capacity you type, or one you pick from the plumbing code table.
  • Panel coverage width, soffit panel coverage, sheet size. Product facts you enter. The metal panel default of 36 in is an example only.
  • Gutter fall. Recommended fall depends on the gutter system. The default is an arithmetic example only.
  • Nails, starter, ridge cap, underlayment and drip edge coverage. Product facts. Left blank until you enter them.

Sources

  • Roof pitch, reference article. Definition of pitch and its conversions. Checked 2026-11-13.
  • Pythagorean theorem, reference article. Checked 2026-11-13.
  • Roofing square (100 sq ft): a unit definition used throughout the roofing trade.
  • American Wood Council: the place to size rafters and spans. We link to it and publish no lumber sizes or rafter spans.
  • Manufacturer installation instructions and data sheets: the authority for coverage, fastening and minimum slope for any product you choose.

Siding, framing and gutter tools: what you enter

  • Coverage per box or carton, plank exposure and length, trim piece lengths. Product facts from the packaging. The siding tools assume none and show lengths or areas until you supply them.
  • Truss and rafter spacing. Set by your plans or truss drawings. The default of 2 ft in the framing tools is an example so the page works, not a recommendation, and the tools never size lumber or check loads.
  • Hanger spacing, gutter piece length, elbows per downspout. From the gutter maker's instructions.
  • Flat-roof fall per foot. From the membrane maker and your code. The 1/4 in per ft default is an arithmetic example only.

Prices and published figures

This site sets no prices of its own. Every price in a cost calculator is one you type.

The cost guides, some cost calculators and the cost per square page also repeat price ranges that other companies have published, such as HomeGuide, Fixr and This Old House. Each is named, linked and shown with the date on its page. We copied them as printed on November 29, 2026. We do not average them, and we have not checked how each publisher arrived at them. Where publishers disagree, both figures are shown. Tables that multiply a published per-unit range by a job size are our arithmetic.

National or state figures from government sources are also shown, each with its source and period:

Our labor check is wage × hours × people ÷ that share. One national share is applied to every state, which is an approximation. The result leaves out materials, equipment, vehicles, overhead and profit, so it is never a price.

  • Worked examples use invented rates, always labeled as such, to show the arithmetic only.
  • Cost guides set published price estimates side by side, then explain what changes a price and how to compare quotes.
  • Contingency and tax boxes start at 0. We do not suggest a percentage.
  • We give no financing, loan, tax or insurance advice.

Roof service life

The lifespan guides and cost calculators copy figures from the publications below and do not average or adjust them. Last checked 2026-11-29.

  • Two of the tables are for budgeting apartment buildings, not predicting one house.
  • Two documents are read from copies hosted by third parties, as their names say. Newer editions may exist that we have not been able to read.
  • The age check on those guides subtracts the installation year from the current year. It makes no judgment about condition.

Code figures

Minimum slopes, drip edge and ice barrier rules, sheathing spans and gutter capacities are copied from the 2024 model codes, read on a third-party reproduction of the federal GSA adoption. Last checked 2026-11-29.

  • A model code applies only as your area adopted and amended it. Product instructions can ask for more.
  • Angles, percent slopes and the roof areas beside gutter capacities are our arithmetic from the code figures.
  • The underlayment, ice barrier and ventilation calculators apply the named model-code dimensions to work out quantities. They do not confirm that your roof meets your local code.
  • Truss calculators draw outlines only: no webs, loads or member sizes.

Roof-pitch pages and the blog

Each of the twelve roof-pitch pages (1/12 to 12/12) computes its figures with the same functions as the calculators and adds worked examples and answers written for that slope. Which coverings a pitch allows follows the 2024 model code, and statements about fall protection follow OSHA 29 CFR 1926.500 and 1926.501, which apply to construction employers. Blog posts answer one question each and link to the calculator or guide that does the work; where a post cites a standard, such as UL 2218 for impact testing, it names it and sends you to the standard or the maker's listing for details.

Change log

  • 2026-11-29: Rewrote the eighteen cost guides to show named, linked and dated price estimates from other publishers. Extended the twelve roof-pitch pages and gave each cost calculator its own explanation.
  • 2026-11-29: Added eighteen calculators (underlayment, ice barrier, drip edge, nails, ridge cap, attic ventilation, tile, four truss outlines, roof volume, lap and metal siding, gutter coil, heat cable, siding repair and gutter cleaning costs) and six guides.
  • 2026-11-29: Replaced repeated text on the cost pages with a sourced section on each cost calculator, and moved calculator links to the top of the guides.
  • 2026-11-29: Added minimum roof pitch by covering (new guide and pitch pages), drip edge and ice barrier requirements, the sheathing span table and gutter and downspout capacities, from the 2024 model codes.
  • 2026-11-29: Added published service-life figures with their sources to the roof, asphalt shingle and metal roof lifespan guides, with an age check.
  • 2026-11-29: Added the roof inspection and chimney repair cost calculators, government wage and roofing spending figures with their sources, and corrected shed-roof edge lengths so starter strip and gutters count the low eave only.
  • 2026-11-13: Added twelve roof-pitch pages (1/12 to 12/12), the blog index and fourteen blog posts.
  • 2026-11-13: Added the cost cluster: ten cost calculators that total your own quotes, a roof coating calculator, a cost per square converter, a shingle coverage chart, eighteen cost guides and the Roof Costs hub. No prices or averages are published.
  • 2026-11-13: Added siding (general, vinyl, fiber cement, board and batten), gutter, gambrel, shed, truss outline, roof framing, flat roof slope and full takeoff tools; twelve guides on metal roofing, flat roofs, tile, flashing, drip edge, underlayment, ice and water shield, vents, vinyl siding coverage, gutter sizes and trusses; and four topic hubs.
  • 2026-11-13: Added the roofing (takeoff), metal roofing, roof sheathing, pitch to degrees, hip roof, gable roof, gutter size and soffit calculators, and ten guides on roof life, roof types, shingles, materials, sheathing, waste and terms.
  • 2026-11-13: Site launched with the pitch, multiplier, pitch chart, roof area, squares, shingle, rafter and gutter slope calculators.

What we leave out, and why

  • K-style gutter capacities. The plumbing code table does not list them, and we have not verified a maker’s figure.
  • Vent counts, structural sizing and loads. Set by manufacturers, code and engineers.

Reporting an error

Email contact@roofingcalculatorhub.com with the page, your inputs and the result. We reproduce the case, fix the cause, add a test and note the change here.