Roof Pitch Calculator · Ratio, Degrees & Percentage

Roof Pitch Calculator

Convert between X:12 ratio, degrees and percentage — plus rise, run & rafter length

Roof Pitch
Enter any single value to calculate the others.
deg
%
:12
Common: 4:12 = 18.4° = 33.3% · 6:12 = 26.6° = 50% · 8:12 = 33.7° = 66.7% · 12:12 = 45° = 100%.
Rise & Run
Rise ÷ Run determines the pitch. You can enter any length unit — the ratio stays the same.
Rafter Length (optional)
Enter the full horizontal run to also get rafter line length, total rise and cut length with overhang.
Results
✅ Standard Pitch
Roof Pitch
—
—
Pitch ratio (X:12)
—
Angle (degrees)
—
Percentage (%)
—
Slope factor
—
Pitch multiplier
—
Roof category
—
Rain shedding
—
Snow shedding
—
Rafter length
—
Total rise
—
Line length
—
With overhang
—
Verify minimum pitch requirements with your roofing manufacturer and local code before installing.
\n';var escaped = toolHtml.replace(/&/g, '&').replace(/"/g, '"');embedCodeTextarea.value = ''; }window.toggleEmbedPanel = function () { if (embedPanel.style.display === 'none' || embedPanel.style.display === '') { generateEmbedCode(); embedPanel.style.display = 'block'; } else { embedPanel.style.display = 'none'; } };window.copyEmbedCode = function () { embedCodeTextarea.select(); if (navigator.clipboard) { navigator.clipboard.writeText(embedCodeTextarea.value).then(function () { alert('Embed code copied!'); }).catch(function () { alert('Press Ctrl+C'); }); } else { alert('Press Ctrl+C'); } };/* ─────────── Events ─────────── */ function bindAll() { // Pitch field listeners pitchDegInput.addEventListener('input', function () { lastPitchEdited = 'deg'; syncPitchFields(); calculate(); }); pitchDegInput.addEventListener('change', function () { lastPitchEdited = 'deg'; syncPitchFields(); calculate(); }); pitchPercentInput.addEventListener('input', function () { lastPitchEdited = 'percent'; syncPitchFields(); calculate(); }); pitchPercentInput.addEventListener('change', function () { lastPitchEdited = 'percent'; syncPitchFields(); calculate(); }); pitchRatioInput.addEventListener('input', function () { lastPitchEdited = 'ratio'; syncPitchFields(); calculate(); }); pitchRatioInput.addEventListener('change', function () { lastPitchEdited = 'ratio'; syncPitchFields(); calculate(); });// Rise/run listeners — update pitch when they change [riseInput, runInput].forEach(function (el) { el.addEventListener('input', function () { var rv = parseFloat(riseInput.value); var un = parseFloat(runInput.value); if (isFinite(rv) && isFinite(un) && un > 0 && rv >= 0) { var riseM = rv * LEN_UNITS[riseUnit.value].toM; var runM = un * LEN_UNITS[runUnit.value].toM; if (runM > 0) { var deg = Math.atan2(riseM, runM) * R2D; lastPitchEdited = 'deg'; pitchDegInput.value = roundVal(deg, 2); syncPitchFields(); } } calculate(); }); el.addEventListener('change', function () { var rv = parseFloat(riseInput.value); var un = parseFloat(runInput.value); if (isFinite(rv) && isFinite(un) && un > 0 && rv >= 0) { var riseM = rv * LEN_UNITS[riseUnit.value].toM; var runM = un * LEN_UNITS[runUnit.value].toM; if (runM > 0) { var deg = Math.atan2(riseM, runM) * R2D; lastPitchEdited = 'deg'; pitchDegInput.value = roundVal(deg, 2); syncPitchFields(); } } calculate(); }); });fullRunInput.addEventListener('input', calculate); fullRunInput.addEventListener('change', calculate); overhangInput.addEventListener('input', calculate); overhangInput.addEventListener('change', calculate);attachUnitConversion(riseInput, riseUnit); attachUnitConversion(runInput, runUnit); attachUnitConversion(fullRunInput, fullRunUnit); attachUnitConversion(overhangInput, overhangUnit); }if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function () { bindAll(); syncPitchFields(); calculate(); }); } else { bindAll(); syncPitchFields(); calculate(); }})();

Creator & Maintainer

Image of Faiq Ur Rahman, CEO & Founder Toolraxy

Faiq Ur Rahman

Founder & CEO, Toolraxy

Faiq Ur Rahman is a web designer, digital product developer, and founder of Toolraxy, a growing platform of web-based calculators and utility tools. He specializes in building structured, user-friendly tools focused on health, finance, productivity, and everyday problem-solving.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

Ask three trades to describe the same roof and you will get three different answers. The framing carpenter speaks in 6:12; the engineer writes 26.57° on the drawings; the building inspector refers to a 50 percent slope. All three describe the identical angle, but converting between the formats requires trigonometry that is easy to get wrong under pressure. This calculator was built around that gap. It treats any of the three as the input and produces the other two, so a drawing in degrees can be discussed with a supplier who thinks in ratios, and a percentage given verbally can be checked against a framing square in seconds. It also exposes the slope factor, the multiplier that converts a building footprint into an actual roof surface area which is the figure estimators need when pricing materials on a steep or shallow roof.

 

How to Use the Roof Pitch Calculator

  1. Pick one of the three pitch fields, degrees, percentage or X:12 ratio and type the value you have.

  2. Watch the other two fields fill in automatically as you type.

  3. Read the pitch multiplier and slope factor from the four-tile grid below the hero display.

  4. Check the Roof category tile to see whether the pitch falls into flat, low-slope, shallow, standard, steep or very steep.

  5. Review the Rain shedding and Snow shedding tiles for a plain-language performance summary.

  6. If you want rafter figures, enter the Full run across the roof span.

  7. Add an Overhang if the rafter extends past the wall.

  8. Read rafter length, total rise, line length and cut length with overhang in the lower grid.

 

How the Roof Pitch Calculator Formula Works

Every figure on the page derives from one angle, which itself comes from whichever pitch field you last edited. The conversions between the three formats are direct trigonometric relationships.

Formula: Pitch Ratio (X:12) = tan(θ) × 12
Formula: Pitch Percentage = tan(θ) × 100
Formula: Pitch Angle (θ) = atan(Ratio ÷ 12) = atan(Percentage ÷ 100)
Formula: Pitch Multiplier = √(1 + tan²θ)
Formula: Slope Factor = 1 ÷ cos(θ)
Formula: Rafter Line Length = Run ÷ cos(θ)
Formula: Total Rise = Run × tan(θ)
Formula: Rafter with Overhang = Line Length + Overhang ÷ cos(θ)

Pitch must be greater than 0° and less than 89°; outside that band the results panel replaces every tile with a placeholder. Rise and run must both be greater than zero when used as inputs, and the overhang is treated as zero if left blank. The rise field is automatically recalculated to match the current pitch whenever the run is changed, keeping the ratio consistent across all three views.

 

Worked Example

A designer is working from a drawing that specifies a 32° roof pitch and needs to discuss it with a framing carpenter who thinks only in X:12 ratios. The building’s roof run is 5.4 m with a 600 mm overhang.

  • Pitch ratio = tan(32°) × 12 = 0.6249 × 12 = 7.50:12

  • Pitch percentage = tan(32°) × 100 = 62.49%

  • Pitch multiplier = √(1 + 0.6249²) = 1.1792×

  • Slope factor = 1 ÷ cos(32°) = 1.1792×

  • Rafter line length = 5.4 ÷ cos(32°) = 5.4 ÷ 0.8480 = 6.37 m

  • Total rise = 5.4 × tan(32°) = 5.4 × 0.6249 = 3.37 m

  • Overhang along slope = 0.6 ÷ 0.8480 = 0.71 m

  • Total cut length = 6.37 + 0.71 = 7.08 m

The takeaway: a 32° pitch sits between 7:12 and 8:12 on the ratio scale, and the slope factor of 1.179 means the roof surface is roughly 18 percent larger than the footprint beneath it. On a 100 m² footprint that is an extra 18 m² of material, a difference worth catching before the quote goes out.

Frequently Asked Questions

What does a 6:12 roof pitch mean?

It means the roof rises 6 units vertically for every 12 units it runs horizontally. In degrees that is 26.57°, and as a percentage it is 50%. It is the most common pitch in North American residential construction.

 

How do I convert roof pitch from degrees to a ratio?

Multiply the tangent of the angle by 12. A 30° pitch gives tan(30°) × 12 = 0.5774 × 12 = 6.93:12. The calculator does this automatically when you edit the degrees field.

 

What is the pitch multiplier used for?

It converts a horizontal measurement into its sloped equivalent. Multiplying a building’s footprint area by the pitch multiplier gives the roof surface area. Multiplying an eave overhang by the same figure gives the extra rafter length needed along the slope.

 

Is a 4:12 pitch too shallow for shingles?

Most asphalt shingle manufacturers set a minimum pitch of 4:12 for standard installation and require a double underlayment below that. Some products are rated for pitches as low as 2:12 with special installation methods. Always check the manufacturer’s published data sheet.

 

What percentage slope is a 45-degree roof?

100%. A 45° angle corresponds to a ratio of 12:12, and the tangent of 45° equals 1, which becomes 100% when multiplied by 100. This is the point at which rise and run are equal.

 

How do I calculate rafter length from pitch?

Divide the run by the cosine of the pitch angle. For a 6:12 pitch at 26.57° and a run of 4 m, rafter length is 4 ÷ 0.8944 = 4.47 m. Add the overhang projected along the slope for the total cut length.

 

Why are rain and snow shedding ratings different?

Rain sheds more easily than snow at any given pitch because water has lower friction and lower mass. A roof that sheds rain adequately at 4:12 may still hold snow, which is why cold-climate regions often specify steeper pitches.

 

Can I enter a pitch as a decimal ratio instead of X:12?

Yes. Enter the decimal rise value directly in the ratio field. A 6.5:12 pitch is entered as 6.5. The calculator converts it to degrees and percentage in the same way as a whole number.

 

What is the minimum roof pitch for a metal roof?

Standing-seam metal roofs are usually rated for pitches as low as 1:12 or even 0.5:12 with certain profiles, while through-fastened metal panels typically require a minimum of 3:12. Always confirm against the specific product’s installation manual.

 

How does pitch affect roof area?

Roof area equals footprint area multiplied by the slope factor. A 6:12 pitch multiplies the footprint by 1.118; a 12:12 pitch by 1.414. The steeper the roof, the larger the surface area for the same building dimensions.

 

Can I use this calculator for a shed or outbuilding?

Yes. The geometry is identical regardless of building size or type. For a mono-pitch roof, the run is measured from the low eave to the high wall, and the same formulas apply.

 

What happens if I enter an invalid pitch?

If the pitch is zero, negative or 89 degrees or higher, the calculator clears the results rather than producing a nonsensical figure. A pitch of 89° would be essentially a vertical wall, and zero would be a flat surface, neither of which is a roof in any useful sense.

Disclaimer

This roof pitch calculator provides geometric conversions and derived dimensions for planning purposes only. It does not verify that a proposed pitch meets the minimum requirements of any specific roofing product, nor does it confirm that a roof structure is adequate for the loads it will carry. Minimum pitch requirements, snow load capacities and structural sizing depend on the material specified, the local climate and the applicable building code. Always confirm pitch requirements against the product manufacturer’s installation manual and verify structural design with a qualified engineer before beginning work.

ADVERTISEMENT

ADVERTISEMENT