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
- Results come from formulas you can check by hand. Each calculator shows its working under the result.
- 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.
- Sourced figures carry the source’s name, its year or period and, below, the date we checked it.
- 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.
| Quantity | Formula | Used by |
|---|---|---|
| Angle | arctan(rise ÷ run) | Pitch, multiplier, rafter |
| Percent slope | rise ÷ run × 100 | Pitch, chart |
| Sloped length | √(rise² + run²) | Pitch |
| Pitch multiplier | √(rise² + 12²) ÷ 12 | Area, multiplier, rafter |
| Hip / valley factor | √(rise² + 2 × 12²) ÷ 12, per foot of common run | Multiplier, area |
| Roof area | flat footprint × multiplier | Area, squares, shingles |
| Roofing squares | area ÷ 100 | Squares, shingles |
| Area with waste | area × (1 + waste ÷ 100), waste typed by you | Squares, shingles |
| Packages needed | quantity ÷ coverage per package, rounded up, coverage typed by you | Shingles |
| Common rafter length | (span ÷ 2 − ridge ÷ 2 + overhang) × multiplier | Rafter |
| Plumb cut / seat cut | 90° − angle / angle, from the board edge | Rafter |
| Percent slope to pitch | percent ÷ 100 × 12; degrees to pitch = 12 × tan(angle) | Pitch to degrees |
| Gable-end triangle | ½ × width × peak height; peak = width ÷ 2 × rise ÷ 12 | Gable roof |
| Sheathing sheets | area with waste ÷ sheet area (32 sq ft for 4 × 8), rounded up | Sheathing, roofing calculator |
| Metal panels | (length + 2 × rake) ÷ coverage width, rounded up, per plane; panel length = slope run × multiplier | Metal roofing |
| Soffit area | eave length × depth + rake length × depth | Soffit |
| Rain flow (gpm) | area × (rainfall in/hr ÷ 12) × 7.48052 ÷ 60, rainfall typed by you | Gutter size |
| Net siding area | perimeter × height + gables − openings; gable = ½ × width × (width ÷ 2 × rise ÷ 12) | Siding, vinyl, fiber cement |
| Siding trim | opening perimeter = 2 × (w + h); rake trim = 2 × half width × multiplier per gable; starter = perimeter | Vinyl siding |
| Lap plank coverage | exposure × length; planks = area with waste ÷ coverage, rounded up | Fiber cement |
| Board and batten | spacing = board width + gap; boards = (wall + gap) ÷ spacing, rounded up; battens = boards − 1 | Board and batten |
| Gutter parts | pieces = length ÷ piece; hangers = length ÷ spacing + 1 per run; end caps = 2 × runs | Gutter calculator |
| Gambrel | plane length = √(run² + rise²); end wall by the polygon (shoelace) formula | Gambrel roof |
| Shed roof | rafter = (width + overhangs) × multiplier; wall step = width × pitch ÷ 12 | Shed roof |
| Truss outline | top chord = (span ÷ 2 + overhang) × multiplier; peak = span ÷ 2 × pitch ÷ 12; count = floor(length ÷ spacing) + 1 | Roof truss |
| Rafter count | per side = floor(length ÷ spacing) + 1; total = 2 × per side | Roof framing |
| Flat-roof fall | total = in per ft × run; percent = in per ft ÷ 12 × 100; ratio = 12 ÷ in per ft | Flat roof slope |
| Cost line total | quantity × the price you enter. Quantity is squares, sq ft, feet, bundles, your count, or 1 for a lump sum | All cost calculators |
| Cost total | subtotal + contingency % × subtotal + other % × (subtotal + contingency) | All cost calculators |
| Per square and per sq ft | total ÷ (area ÷ 100); total ÷ area; per square = per sq ft × 100 | Cost calculators, cost per square |
| Coating gallons | area × coats ÷ coverage per gallon × (1 + waste), rounded up | Roof coating |
| Bundles by area | area ÷ 100 × bundles per square, rounded up | Shingle coverage chart |
| Mono truss | climb = span × pitch ÷ 12; top chord = (span + overhangs) × multiplier | Mono truss |
| Scissor truss | ceiling rise = span ÷ 2 × ceiling pitch ÷ 12; chords = half span × each multiplier | Scissor truss |
| Attic room | edge height = (span − room) ÷ 2 × pitch ÷ 12; flat ceiling = span − 2 × height × 12 ÷ pitch | Attic truss |
| Attic volume | gable = width × height × length ÷ 2; hip = height × width × (3 × length − width) ÷ 6 | Roof volume |
| Heat cable | repeats × 2 × √((spacing ÷ 2)² + height²) + straight runs | Heat cable |
| Underlayment | area × roll width ÷ exposed width (+ starter on a double layer) ÷ roll area | Underlayment |
| Ice barrier reach | (overhang + 2 ft) × multiplier; at 8/12 or steeper, not less than 36 in | Ice and water shield |
| Nails | area ÷ 100 × shingles per square × nails per shingle | Roofing nail |
| Drip edge | edge length ÷ (piece − lap), rounded up | Drip edge |
| Vent area | vented area × 144 ÷ 150 or 300 | Attic ventilation |
| Lap courses | height ÷ exposure, rounded up; planks = courses × length ÷ plank | Lap siding |
| Gable wall panel | eave height + distance from the nearer corner × pitch ÷ 12 | Metal siding |
| Gutter drop | distance from high point × fall per unit length, fall typed by you | Gutter 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.
| Pitch | Angle | Multiplier | Hip / valley |
|---|---|---|---|
| 4/12 | 18.435° | 1.054 | 1.453 |
| 6/12 | 26.565° | 1.118 | 1.500 |
| 8/12 | 33.690° | 1.202 | 1.563 |
| 12/12 | 45.000° | 1.414 | 1.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:
- Roofing spending: median $10,000 and mean $11,610 per job, U.S. Census Bureau, American Housing Survey, Home Improvement Costs table, 2023 survey, jobs in the previous two years. National, owner-occupied homes, all sizes and materials.
- Spending by state, region, home size and who did the work: the same Census survey’s 2023 tables. They are sample estimates of what owners said they spent, across all materials, and only areas with a 2023 table are shown.
- Shingle price trend: the Bureau of Labor Statistics producer price index for asphalt roofing and siding products, read from FRED. It measures manufacturers’ prices, not store prices.
- Wages: median hourly wage by state for roofers, brickmasons and building inspectors, U.S. Bureau of Labor Statistics, Occupational Employment and Wage Statistics, May 2025.
- Employer cost: wages were 69.5% of construction-industry employer compensation in June 2026, BLS Employer Costs for Employee Compensation, Table 4, construction industry.
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.
- Florida Housing Finance Corporation, Capital Needs Assessment guide, Appendix F: Estimated Useful Life Tables (revised July 29, 2024). A state housing agency’s planning table for apartment and senior housing. It assumes regular preventive maintenance.
- Fannie Mae Form 4099.F, Estimated Useful Life Tables (August 2019), copy hosted by a reserve-study software site. Standardized averages used when assessing apartment buildings. Fannie Mae says they do not replace an assessor’s judgment.
- National Association of Home Builders and Bank of America, Study of Life Expectancy of Home Components (February 2007), copy hosted by a home builders’ association. A 2006 telephone survey of manufacturers, trade associations and researchers about homes. The oldest source here.
- Metal Construction Association, announcement of its service-life study of coated steel standing seam roofs (November 7, 2014). An industry association reporting its own study. It covers one roof type only.
- 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.
- 2024 International Residential Code, chapter 9, Roof Assemblies (GSA adoption, reproduced by UpCodes).
- 2024 International Residential Code, Table R503.2.1.1(1), spans and loads for wood structural panels (GSA adoption, reproduced by UpCodes).
- 2024 International Plumbing Code, chapter 11, Storm Drainage, Tables 1106.3 and 1106.6 (GSA adoption, reproduced by UpCodes).
- 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.