Skip to content
CalculatorAtlas

Roof Pitch Calculator

Tested

Roof pitch as rise per 12 inches, angle, slope percent and rafter length factor.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

A pitch of x:12 has an angle of arctan(x ÷ 12) and a rafter factor √(1 + (x ÷ 12)²). A 6:12 pitch is 26.57°, a 50% slope and 1.118 feet of rafter per foot of run.

Choose what you know (rise per 12 inches, angle or slope) and enter the value. The calculator returns the others. Use this roof pitch calculator to check your own figures.

Related tools: Roof Shingles Calculator: Squares and bundles of shingles for a roof area. Roof Sheathing Calculator: Sheets of plywood or OSB for a roof area. Roof Area Calculator: Roof surface area from the building footprint, overhang and pitch.

How to use the Roof Pitch Calculator

  1. Choose i know the: Rise per 12 in of run (x:12) and Angle in degrees.
  2. Enter value (between 0 and 1000).
  3. Press Calculate to see the result, and use Reset to start again.
Inputs of the Roof Pitch Calculator
InputWhat to enterAllowed values
I know theChoose one: Rise per 12 in of run (x:12); Angle in degreesStarts at Rise per 12 in of run (x:12)
ValueA number> 0, ≤ 1000

Formula and method

Formula

pitch x:12 → angle = arctan(x ÷ 12); rafter factor = √(1 + (x ÷ 12)²)

IEEE-754 double precision; shown to the decimals indicated.

Rafter length equals the run times the factor. Plan geometry only; confirm quantities with your supplier and local code before ordering.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: I know the = Rise per 12 in of run (x:12); Value = 6.

Results of example 1
ResultValue
Pitch6:12
Angle26.57°
Slope50%
Rafter length per ft of run1.118

Example 2

Inputs: I know the = Angle in degrees; Value = 30.

Results of example 2
ResultValue
Pitch6.93:12
Angle30°
Slope57.74%
Rafter length per ft of run1.1547

Example 3

Inputs: I know the = Rise per 12 in of run (x:12); Value = 12.

Results of example 3
ResultValue
Pitch12:12
Angle45°
Slope100%
Rafter length per ft of run1.4142

The first line is the headline result (pitch). Below it the roof Pitch Calculator lists angle, slope and rafter length per ft of run, which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.

Three ways to say the same slope

Pitch 6:12 means 6 inches of rise per 12 inches of run. Slope as a percentage is rise ÷ run: 6 ÷ 12 = 50%. The angle is arctan(0.5) = 26.57°.

Why it matters

Pitch decides roofing materials: shingles generally need at least 2:12 or 4:12, depending on underlayment. Steeper roofs shed snow but need more material and safer work practices.

How the result changes with value

Holding every other input at the first worked example, this table changes only value. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.

How the result changes with value
ValuePitchAngleSlope
33:1214.04°25%
66:1226.57°50%
1212:1245°100%
2424:1263.43°200%

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • Value: entering "90" shows "The angle must be below 90°." beside that field and no result.

Choosing between the Roof Pitch Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Roof Pitch Calculator and similar calculators
CalculatorYou enterIt returns
[Roof Shingles Calculator](/construction/roof-shingles-calculator/)roof area, bundles per square and waste allowanceBundles needed
[Roof Sheathing Calculator](/construction/roof-sheathing-calculator/)roof area, sheet size and waste allowanceSheets needed
[Roof Area Calculator](/construction/roof-area-calculator/)building length, building width and overhang on every sideRoof area
[Metal Roofing Calculator](/construction/metal-roofing-material-calculator/)roof width to cover, panel coverage width and panel lengthPanels needed
[Ice and Water Shield Calculator](/construction/ice-water-shield-calculator/)area to cover, coverage per roll and waste allowanceRolls needed

Background: construction estimates

Material quantities are geometry plus a margin. Calculate the exact volume or area, add an allowance for waste, spillage, cuts and uneven ground (calculator pages commonly mention 5 to 10 percent, a rule of thumb that varies by material and job) and round up to whole units. One cubic yard is exactly 27 cubic feet.

Suppliers often have minimum order sizes and may charge for small loads, so confirm quantities, product yields and local code with your supplier or a qualified estimator before ordering.

Assumptions and limitations

  • Angles must be below 90°

Quantities are estimates. Add allowances for waste and site conditions, and follow local codes and a qualified professional's instructions for structural or safety-critical work.

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for value to confirm this.

Frequently asked questions

What is a 12/12 roof?

A 12/12 roof rises 12 inches per 12 inches of run, a 45° angle.

How do I measure the pitch?

Use a level and a tape: measure the rise over 12 inches.

Can I convert angle to pitch?

Yes, pitch = 12 × tan(angle).

What does the Roof Pitch Calculator calculate?

Roof pitch as rise per 12 inches, angle, slope percent and rafter length factor. It returns Pitch, Angle, Slope and Rafter length per ft of run.

What formula does the Roof Pitch Calculator use?

pitch x:12 → angle = arctan(x ÷ 12); rafter factor = √(1 + (x ÷ 12)²). Rafter length equals the run times the factor.

How is the result rounded or limited?

IEEE-754 double precision; shown to the decimals indicated. Angles must be below 90°.

What does the “I know the” option change?

It sets how the roof Pitch is worked out. The choices are Rise per 12 in of run (x:12) and Angle in degrees.

What is an example of a roof Pitch result?

With i know the Rise per 12 in of run (x:12) and value 6, the pitch is 6:12.

Can I rely on this calculator for a decision?

Quantities are estimates. Add allowances for waste and site conditions, and follow local codes and a qualified professional's instructions for structural or safety-critical work. For this calculator in particular: Angles must be below 90°.

Sources

  • OpenStax, Prealgebra 2e (Rice University): perimeter, area, volume, circumference and the Pythagorean theorem
  • NIST Special Publication 811, Guide for the Use of the International System of Units (SI), Appendix B conversion factors (international foot 0.3048 m, inch 25.4 mm, US gallon 3.785411784 L)

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.