One-slope roof pitch calculator

Interactive calculator

Your measurements

Calculator mode

Vertical height.

Horizontal distance, not full span.

Try an example

Help

From rise and run.

Rise: Vertical height.

Run: Horizontal distance, not full span.

Rafter: Sloping length, excluding overhang.

Angle (°): From 0° to less than 90°.

Slope (%): Rise per 100 horizontal units.

US pitch (X/12): Rise per 12 horizontal units; enter X only.

Use a decimal point (1.250 = 1.25). No grouping or fractions.

Switching mode clears unpinned inputs. Input unit selectors convert that field without changing its physical size. Rounds displayed results only.

About pinning

Pin keeps measurements on this device across reloads. Unpinned values last until reload. Editing updates the saved value; invalid edits unpin it. Unpin removes the saved value. Clear all pins on a shared device. No account or analytics consent is needed.

Results

Your slope

Illustration only
Your slopeEnter values to draw your slope. Rise is vertical, run is horizontal, rafter is the sloping side.Run—Rise—Rafter—Angle —

Enter values to draw your slope. Rise is vertical, run is horizontal, rafter is the sloping side.

Diagram help

Drawn to one scale. Use the numbers for exact lengths.

Your slope — large view

Your slopeEnter values to draw your slope. Rise is vertical, run is horizontal, rafter is the sloping side.Run—Rise—Rafter—Angle —

Enter values to draw your slope. Rise is vertical, run is horizontal, rafter is the sloping side.

Diagram help

Drawn to one scale. Use the numbers for exact lengths.

Waiting for measurements

How roof pitch works

A roof pitch describes how steeply a roof rises over a horizontal distance. This tool connects rise and run to degrees, percent and US X/12 notation.

Choose and enter your measurements

  1. Identify both ends of one straight slope. Use their height difference and horizontal projection from the same reference, on an existing drawing or at accessible measurement points.
  2. Use Pitch for rise and run. Use Lengths when you know a rafter length or an angle plus a length. Each field has its own unit, so convert feet and inches through the selectors rather than entering a mixed expression.
  3. Read X/12 alongside degrees and percent. Changing the display unit preserves the physical measurement; changing precision only rounds the displayed answer. Changing a mode or known-value selection starts fresh.
Roof cross-section: the measured rise, run and rafterHouse outline with a 3–4–5 triangle at the eave. Run is level, rise is the height difference. Walls, door and window are illustrative only.Run4.00 mRise3.00 mRafter5.00 m36.87°
House outline with a 3–4–5 triangle at the eave. Run is level, rise is the height difference. Walls, door and window are illustrative only.

Rise: 3.00 m · Run: 4.00 m · Rafter: 5.00 m

Rise, run and rafter: three different lengths

Rise
Vertical difference between the ends of one slope, not the whole building height.
Horizontal run
The level projection of that slope, not its sloping length. Half a building span applies only to known symmetric geometry; the calculator never halves your input.
Rafter length
The straight sloping side, excluding overhang, cuts and construction allowances.
Pitch, percent and angle
Degrees measure the angle above horizontal. Percent means rise per 100 horizontal units; US X/12 uses 12. X/12 is a convention, not a building rule.
One inclination, three notationsFor the same 3–4–5 triangle, degrees, percent and US pitch describe one inclination. X/12 uses twelve horizontal units; it is not a building rule.75.00%9.00/1236.87°Angle (°) · 36.87°
For the same 3–4–5 triangle, degrees, percent and US pitch describe one inclination. X/12 uses twelve horizontal units; it is not a building rule.

Angle (°): 36.87° · Slope (%): 75.00% · US pitch (X/12): 9.00/12

The formulas and their units

Use the same length unit for h (rise) and d (horizontal run). Let l be the geometric rafter and θ the angle above horizontal. The tool converts mixed input units before solving.

Slope (%) = 100 × h ÷ d

US pitch X/12: X = 12 × h ÷ d

θ = arctan(h ÷ d) × 180 ÷ π

l² = h² + d²

Slope (%) = 100 × tan(θ × π ÷ 180)

Degrees and percent are not interchangeable: 45° is 100%, while 30° is about 57.74%. Inclination alone determines proportions, not the size of a roof. A known length sets the scale. Two inclination inputs only check agreement.

Three worked examples

These examples use the same calculation engine as the tool. Values shown here are rounded to two decimal places; choose four decimal places in the calculator for a closer view.

A 6/12 pitch in inches

Known values: Rise: 6 in · Run: 12 in

Rise: 6.00 in · Run: 12.00 in · Rafter length: 13.42 in · Angle (°): 26.57° · Slope (%): 50.00% · US pitch (X/12): 6.00/12

A metric 3–4–5 triangle

Known values: Rise: 3 m · Run: 4 m

Rise: 3.00 m · Run: 4.00 m · Rafter length: 5.00 m · Angle (°): 36.87° · Slope (%): 75.00% · US pitch (X/12): 9.00/12

A 30° slope with a 4 m run

Known values: Run: 4 m · Angle (°): 30°

Rise: 2.31 m · Run: 4.00 m · Rafter length: 4.62 m · Angle (°): 30.00° · Slope (%): 57.74% · US pitch (X/12): 6.93/12

Roof pitch questions

Does this work for shed roofs?

Yes, for the geometric triangle of one straight slope. Enter the actual horizontal distance between its endpoints and their height difference. No dedicated roof-form drawing, material takeoff or structural design is produced.

Is run the same as building width?

Only if that width is the horizontal projection of the particular slope you are measuring. For two roof sides, measure each slope separately unless the geometry is known to be symmetric.

Why no lengths in Compare mode?

An angle, percentage or X/12 pitch describes a proportion. Many differently sized triangles share that proportion. Use Lengths with a known length to get dimensions.

What does 1 in X mean?

It gives one unit of vertical rise for X units of horizontal run. It is a length ratio, not a percentage. With zero rise the slope is flat and this reciprocal has no finite value.

Can this choose my roofing material?

The result describes geometry only. It does not specify a minimum pitch, loading, member sizes or a compliant roof covering. Those choices require the relevant project information and product guidance.

How to use →