Roof geometry

Roof Pitch Calculator

Calculate roof angle, slope percentage, pitch ratio, and rafter length from rise and run.

Roof measurements

Enter rise and run

Slope
Pitch summary

Your result

Right triangle showing roof rise, horizontal run, rafter length, and pitch angle
Rise and run form the two perpendicular sides; the sloping side is the straight rafter length before overhangs.

Your roof pitch will appear here

Enter the vertical rise and horizontal run, then calculate the roof geometry.

What Roof Pitch Means

Roof pitch compares vertical rise with horizontal run. This roof pitch calculator expresses that slope as a ratio per 12 units, an angle in degrees and a percentage. It also calculates the straight sloping length between the two measured endpoints, reported in meters.

For example, 1.65 m of rise over 4.4 m of horizontal run gives a 4.50:12 ratio, 20.56° angle and 37.50% slope. The geometry helps interpret measurements and drawings. It does not choose a roofing product, size structural members or add overhang and cutting allowances.

How to Use the Roof Pitch Calculator

  1. Identify the two endpoints of the roof section you want to describe. Use the same pair for both measurements.
  2. Enter Vertical rise, the difference in height between those endpoints. Zero rise is accepted; a negative rise is not.
  3. Enter Horizontal run, the horizontal projection between the endpoints. Use a positive value rather than the sloping roof length.
  4. Choose cm, m, ft or in independently beside each measurement, then select Calculate roof pitch. The tool converts both values to meters.
  5. Read the featured ratio and the rafter length, angle and slope cards. Confirm whether your plan needs this geometric segment or a construction length with additional details.

Both fields start empty with example placeholders, and both unit selectors initially use meters. Blank or nonnumeric measurements, negative rise, zero run and unsupported units are rejected. Use existing plans or measurements obtained by an appropriate method; these instructions do not require access to a roof.

Roof Pitch and Rafter Length Formulas

slope ratio, s = vertical rise ÷ horizontal run

rise per 12 units, x = 12 × s, giving x:12

roof angle in degrees = arctan(s) × 180 ÷ π

slope percentage = 100 × s

straight rafter length in meters = √(rise² + run²)

Prepare both lengths in meters before finding the sloping length. Their ratio is unitless, so using the same other unit for both would leave the angle, percentage and x:12 unchanged. The length result always uses meters, regardless of the selected input units.

OpenStax explains tangent as opposite over adjacent, which gives rise over run for this triangle. The sloping length follows the Pythagorean relationship between perpendicular sides. The NIST conversion reference supports the foot, inch and meter relationships. The calculator formats the rafter to three decimals and angle, percent and x to two decimals, independently.

Roof Measurements and Results

Vertical rise
The nonnegative height change between the two endpoints, entered with its own unit selector.
Horizontal run
The positive horizontal distance for those same endpoints. It is not the sloping side or automatically the full building span.
Roof pitch ratio
Written x:12: x units of rise for every 12 matching units of horizontal run. This is the featured result.
Rafter length
The straight hypotenuse for the entered right triangle, in meters to three decimals. Overhangs, cuts and connection details are separate.
Pitch angle
The angle of the sloping segment above horizontal, in degrees to two decimals.
Slope
Rise divided by horizontal run, multiplied by 100 and displayed as a percentage to two decimals.

The 12 in the ratio is a reference number, not an instruction to enter 12 inches of run. You can use any accepted pair of dimensions that describes the same slope. The diagram illustrates the geometry and does not redraw the entered roof.

Roof Pitch Worked Example

Illustrative example. Enter rise 1.65 m and horizontal run 4.4 m. Their ratio is 1.65 ÷ 4.4 = 0.375. Multiply by 12 for 4.50:12, and by 100 for 37.50%.

The angle is arctan(0.375) ≈ 20.55604522°, displayed as 20.56°. The straight length is √(1.65² + 4.4²) = √22.0825 ≈ 4.69920206 m, displayed as 4.699 m.

Calculation check. Independent trigonometry and square-root arithmetic agree with all four results. Keeping run at 4.4 m and doubling rise to 3.3 m gives 9.00:12, 75.00%, 36.87° and 5.500 m. The percentage doubles, but the angle and sloping length follow different relationships.

Illustrative 4.4 m horizontal run with two different rises
Vertical risePitch ratioStraight length
1.65 m4.50:124.699 m
3.3 m9.00:125.500 m

Horizontal Run Versus Full Span

Horizontal run belongs to the particular section being measured. Full building span describes a different distance. A centered ridge on a symmetric roof is one situation where the run from a wall to the ridge equals half the span.

A separate span check for the illustrative 8.8 m symmetric roof
Measurement caseRiseHorizontal run
One side, centered ridge1.65 m4.4 m
Full symmetric span1.65 m8.8 m span
Using span as run1.65 m8.8 m run

For the wall-to-ridge section, use 4.4 m run and obtain 4.50:12. Entering the full 8.8 m span as though it were that section’s run gives 2.25:12 and describes a shallower triangle. The calculator cannot infer which distance you measured.

Do not divide by two automatically for an off-center ridge, unequal roof sides or another chosen segment. Use the actual horizontal projection between your endpoints. The displayed rafter is the hypotenuse of that triangle and includes no automatic construction adjustment.

How to Read Roof Slope Results

Read 4.50:12 as 4.5 units up for every 12 units horizontally. Using inches on both sides is common, but the ratio describes the same shape in centimeters or meters. The number 4.5 is not an angle or a percentage.

A 100% slope corresponds to equal rise and run and a 45° angle. Percentages above 100 are possible because rise may exceed horizontal run. The tool does not cap the percentage at 100; it still requires a positive run.

The rafter card gives the ideal straight segment between your measurement endpoints. It does not include an eave extension, ridge or seat detail, cut length, material thickness or structural allowance. The meaning of the entered endpoints determines which segment you have calculated.

A zero rise returns 0.00:12, 0.00° and 0.00%, with sloping length equal to run. That is an accepted geometric case, not a drainage or installation recommendation. Roof coverings, structural requirements and working conditions need their own project-specific information; no output here establishes a suitable product or safe roof access.

Common Roof Pitch Mistakes

  • Entering the sloping side as horizontal run.
  • Using full building span when the measured section covers only one roof side.
  • Confusing an x:12 ratio with degrees or percent.
  • Giving rise and run different units without setting their selectors.
  • Treating the straight rafter result as a finished cut length.
  • Using slope alone to choose materials, structural sizes or access precautions.

Roof Pitch Questions

How do I calculate roof pitch from rise and run?

Divide rise by horizontal run using matching units. Multiply that ratio by 12 to get x in x:12, by 100 for percent, or take its inverse tangent for the angle.

What does 4.5:12 roof pitch mean?

The roof rises 4.5 units for each 12 horizontal units. Its slope is 4.5 ÷ 12 = 0.375, or 37.5%, and its angle is about 20.56°.

Is horizontal run the same as building span?

Not always. For a symmetric roof with a centered ridge, a section from wall to ridge has half the full wall-to-wall span as its run. Other layouts require the actual horizontal projection of the selected section.

Can I enter feet for rise and meters for run?

Yes. The two selectors are independent. The calculator converts both measurements before finding their ratio and always reports the straight rafter length in meters.

Does the rafter length include an overhang?

Only if your entered rise and run describe endpoints that already include that segment. The calculator does not add an overhang or adjust for cuts, ridge details or connections.

Why is a 100% slope only 45 degrees?

Percentage slope is 100 × rise/run. Equal rise and run gives 100%, while the inverse tangent of one is 45°. Percent and degrees use different scales.

Can I calculate zero roof pitch?

Yes. Enter zero rise and a positive run. The geometric angle and slope are zero, and the straight length equals the run. The result does not specify a suitable installed roof design.

Can this calculate roof area, shingles or cost?

No. This form uses one rise and run to describe a slope and straight length. It has no roof-width, waste, product-coverage, price or structural inputs.

Sources and References