Methodology: Formulas, Precision & Rounding Rules
This page is the shared formula and assumption index for PitchCalc. It documents the site's formula order, display precision, and estimate boundaries; the interactive tools apply these same relationships to browser inputs. To run these formulas on your own numbers, use the roof pitch calculator.
Notation used in the formulas
Rise is vertical change; run is horizontal change for the same right triangle.
Pitch is commonly expressed as rise per 12 units of run. w is a decimal waste rate, so 10% is 0.10.
Coverage is square feet covered by one bundle. All real length inputs in a calculation must use matching units.
Full precision between steps
The engine carries JavaScript numeric precision through intermediate steps and rounds only displayed values. The pitch chart and its converter show rafter length per foot of run to three decimal places. Areas display to one decimal, roofing squares to two decimals, pitch multipliers to three decimals, and common angles or lengths to one decimal where the interface states that precision.
Purchase quantities use whole packages and round up at the final bundle step. A very small relative tolerance prevents binary floating-point residue at an exact integer boundary from adding an extra bundle.
Runs in your browser
Calculator arithmetic and input validation run in the browser. Measurements may be written to the page URL hash so a result can survive refreshes or be shared; URL-hash values are not sent to the server as part of the HTTP request. Copy and print actions use the displayed browser result.
Reproduce a complete estimate
The illustrated gable-roof example states its wall dimensions, horizontal overhangs, pitch, waste, and product coverage. Its roof is hypothetical. The manufacturer's coverage is linked and dated so the product assumption can be checked separately from the geometry.
For that example, the footprint method gives 1,344 × √1.25 = 1,502.63768088… sq ft. The two-plane check gives 2 × 42 × √(16² + 8²) = the same area. The 16 ft run includes the horizontal eave overhang; the 42 ft length includes both gable-end overhangs. Waste is applied after either area calculation.
Automated tests cover the shared formulas, inverse calculations, invalid inputs and bundle rounding. The worked example can also be replayed in both material calculators. These checks verify arithmetic; they do not verify site measurements or provide a professional material takeoff.
How we verify
PitchCalc publishes roof-math software. No licensed roofer or engineering sign-off is claimed for the results. The cases below are the same checks CI runs against the shared calculation library. They verify arithmetic. They do not verify a field measurement or replace a professional takeoff.
Calculator test cases
Each row lists the inputs CI feeds the library and the outputs the library currently produces. Display rounding matches the calculators.
6/12 pitch conversion
Inputs. rise 6, run 12 (inches)
- degrees (3 decimal places)
- 26.565
- displayed degrees
- 26.6°
- slope percent
- 50
- multiplier (6 decimal places)
- 1.118034
- displayed multiplier
- 1.118
- rafter length over a 12 in run (3 decimal places)
- 13.416
- slope class
- conventional
Degrees = atan(rise ÷ run) × 180 ÷ π. Slope percent = (rise ÷ run) × 100. Multiplier = √(1 + (rise ÷ run)²). Rafter length with zero overhang = √(run² + rise²).
Inverse rafter: recover rise from length and run
Inputs. rafter length of a 6/12 triangle over a 12-inch run, then riseFromRafter(length, 12)
- recovered rise (8 decimal places)
- 6.00000000
The recovered rise must match the original 6 inches.
Known sloped area 1,341.6 sq ft, 10% waste
Inputs. roofArea 1,341.6, waste 10%, coverage 33.33 sq ft per bundle
- multiplier
- null
- projected area
- 1341.6
- whole bundles
- 45
Known-area mode does not apply a pitch multiplier.
Same 30 × 40 footprint with a 1 ft overhang
Inputs. length 30, width 40, pitch 6/12, overhang 1 ft, waste 10%, coverage 33.33
- projected area
- 1344
- displayed sloped area
- 1,502.6
Overhang expands both length and width by 2 × overhang before the multiplier, so projected area is 32 × 42 = 1,344 sq ft.
PitchCalc slope-class labels
Inputs. rise-per-12 of 0, 1, 2, 3, 4, 6, 9, and 10
- 0/12
- flat
- 1/12
- flat
- 2/12
- low
- 3/12
- low
- 4/12
- conventional
- 6/12
- conventional
- 9/12
- conventional
- 10/12
- steep
Labels: under 2/12 flat, 2/12 to under 4/12 low slope, 4/12 through 9/12 conventional, above 9/12 steep. Classification uses the displayed 2-decimal rise-per-12.
Whole-bundle rounding at an exact integer boundary
Inputs. adjusted area of 0.1 + 0.2 with coverage 0.1 (three exact bundles in decimal arithmetic)
- bundlesRequired(0.1 + 0.2, 0.1)
- 3
- classifySlope(3.9996)
- conventional
A tiny relative tolerance keeps binary floating-point residue from adding an extra bundle at an exact integer.
Cross-checks against standard references
Covering-slope statements on this site are checked against the 2024 International Residential Code, Chapter 9 Roof Assemblies (asphalt shingles 2:12 minimum; double underlayment from 2:12 up to but not including 4:12; clay and concrete tile, metal roof shingles, wood shingles, and slate minima as cited on the covering table), against GAF's published minimum-slope discussion for shingles, and against the National Roofing Contractors Association glossary entry for low-slope roofs (generally 3:12 or less). OSHA 29 CFR 1926.500(b) is cited only for its definitions of low-slope roof (≤ 4 in 12) and steep roof (> 4 in 12). Those documents are not calculator tests; they are the sources next to covering and labeling claims.
If a number on a calculator disagrees with a case on this page, the case is the published check. Send a correction to the address on the about page.
Planning limits and assumptions
Rectangular footprint mode assumes one uniform pitch and one uniform overhang. Complex roofs with hips, valleys, dormers, additions, or mixed pitches should be measured plane by plane. Known-area mode assumes the entered value is already sloped surface area before waste.
Results are planning estimates, not structural engineering, truss or lumber design, a cut list, code approval, a contractor quote, or a final material order. No licensed roofer or engineering sign-off is claimed. Product coverage, waste, accessories, taxes, labor, and local requirements must be confirmed for the actual project.