Rise and Run Calculator

Know the pitch and one of the two dimensions? Find the other. Enter a pitch with a run to get the rise, or a pitch with a rise to get the run — along with the rafter length and the angle.

Quick answer: at 6:12, a 16 ft run rises 8 ft. The rafter is 17.89 ft and the roof angle is 26.57°.

  • Solve either direction
  • Rafter length included
  • Rise per foot shown

Rise and run calculator inputs and results

Common pitches

The pitch is shared by both directions: enter a run and the rise follows, or enter a rise and the run follows.

Half the building span on a symmetrical gable, or the full horizontal distance on a shed roof.

Rise and runhorizontal runroof pitchpitch
Measure the horizontal run and the roof pitch on the same plane; both feed the numbers above. → rafter length

Results

Vertical rise
8 ft
over a run of 16 ft at 6:12
Rafter length
17.89 ft
Roof angle
26.57°
Rise per foot of run
6 in
Slope
50.00%
Pitch factor
1.118

Length is the hypotenuse of the two numbers, with no allowance for overhang, ridge or cuts.

Rise per foot of run is the same pitch in inches per foot, which is how fall is set out on site. The rafter is the straight line between the two points, before overhang and cuts.

Show calculation

Rise and run geometry for a roof

6:12 · 26.57°

The run is horizontal, the rise is vertical, and the rafter is the line between them.

What this rise and run calculator works out

Pitch fixes the relationship between rise and run: for every 12 units of horizontal travel, the roof climbs the pitch number. That means knowing the pitch plus either dimension is enough to find the other.

This calculator solves both directions. In the first mode you give it a run and it returns the rise — the calculation you need to set the height of a ridge over a known building width. In the second you give it a rise and it returns the run — useful when the height is fixed by something else, such as a ridge that must meet an existing roof.

It also returns the rafter length, because the rise and the run are two sides of the triangle and the rafter is the third.

A steel framing square held against a timber rafter while rise and run marks are pencilled on the wood.
The framing square carries the same rise-and-run ratio used by the calculator, scaled onto the timber.

What each rise and run input and result means

Three fields, two of which you can leave alone.

The inputs and results.
FigureWhat it meansWhere it comes from
Roof pitchRise per 12 of run — the ratio that links the other twoA level and a tape, or the pitch calculator
Horizontal runThe level distance under the plane, not the length along itMeasured, or half the span on a gable
Vertical riseThe height gained over that runMeasured, or calculated from the pitch
Rafter lengthThe third side of the triangle — the slope lengthCalculated from whichever two you entered
Rise per foot of runThe same ratio in a different unit, for setting outCalculated
SlopeThe same ratio as a percentage, which is how drainage and flat-roof documents quote itCalculated
Roof angleThe same slope in degrees, for a level or a saw settingCalculated
Pitch factorThe multiplier from plan length to slope length — 1.118 at 6:12, 1.414 at 12:12Calculated

Enter any two of pitch, run and rise and the third is solved. The rafter shown is the straight line to the ridge, with no overhang and no ridge deduction.

How to use the rise and run calculator

  1. Enter the pitch as rise per 12. If you have an angle instead, convert it first.
  2. Choose a mode — find the rise, or find the run.
  3. Enter the dimension you know, in any unit. The result comes back in the same unit.
  4. Check the run against the span. On a gable, the run is half the span, not the whole width.

Rise and run formulas

One relationship, rearranged.

rise = run × (pitch ÷ 12)
run = rise ÷ (pitch ÷ 12)
rafter = √(run² + rise²)
angle = atan(pitch ÷ 12) × 180 ÷ π
slope (%) = (pitch ÷ 12) × 100
pitch factor = √(1 + (pitch ÷ 12)²)

Units. Every length is in the unit you selected, and the answer comes back in the same one. Pitch is rise per 12 in that same unit, so it is dimensionless and the arithmetic is unchanged whether you work in feet, metres or millimetres.

Rise from run, and run from rise

Formula. Rise = run × (pitch ÷ 12). Run = rise ÷ (pitch ÷ 12).

Variables. Run and rise in feet, metres or any other length unit; pitch as rise per 12 of the same unit; the result in the unit you entered.

Why it is calculated this way. Pitch is a ratio — so many units of climb per twelve of travel — and a ratio is a multiplication in one direction and a division in the other. There is no second relationship hiding behind it, which is why the same equation serves both modes. Because the ratio is unitless, the units cancel and the answer inherits whatever unit the input carried.

Example. 16 × 0.5 = 8.00 ft of rise. Reversed: 8 ÷ 0.5 = 16.00 ft of run.

Reading the result. The primary figure is whichever you asked for; the other is shown beside it as a check. If the pair does not reproduce your pitch when divided, one of the inputs is wrong.

Rafter and angle

Formula. Rafter = √(run² + rise²). Angle = atan(pitch ÷ 12) × 180 ÷ π.

Variables. Both lengths in the selected unit, rafter in the same unit, angle in degrees.

Why it is calculated this way. Run and rise are the two legs of a right triangle, so the rafter is the hypotenuse and follows from Pythagoras. The angle follows from the same ratio by inverse tangent — it is the pitch expressed in degrees rather than in twelfths, and the roof angle calculator works it the other way if degrees are what you have.

Example. √(256 + 64) = 17.89 ft. atan(0.5) = 26.57°.

Reading the result. The rafter is a straight line between the two points you described, with no overhang and no ridge deduction. The angle is the same number a speed square or a saw setting would use.

Worked rise and run examples

Example 1 — finding the rise over a 16 ft run

Pitch ratio
6 ÷ 12 = 0.5
Rise
16 × 0.5 = 8 ft
Rafter
√(16² + 8²) = √(256 + 64) = 17.89 ft
Angle
atan(0.5) = 26.57°
Slope
0.5 × 100 = 50.00%
Pitch factor
√(1 + 0.5²) = 1.118

On a symmetrical gable this would be a 32 ft span with the ridge 8 ft above the wall line.

rise = 16 × (6 ÷ 12) = 8 ft

Example 2 — finding the run for a fixed 5 ft rise at 4:12

The ridge must sit 5 ft above the wall line, and the roof is to be built at 4:12.

Pitch ratio
4 ÷ 12 = 0.3333
Run
5 ÷ 0.3333 = 15 ft
Rafter
√(225 + 25) = 15.81 ft
Angle
atan(0.3333) = 18.43°

A 15 ft run means a 30 ft span on a symmetrical gable. If the building is wider than that, the ridge will be higher than 5 ft at 4:12 — either the pitch has to drop or the height has to rise.

run = 5 ÷ (4 ÷ 12) = 15 ft

Example 3 — metric, using metres

A 5 m run at 6:12.

Rise
5 × 0.5 = 2.5 m
Rafter
√(25 + 6.25) = 5.59 m

The pitch is unchanged by the unit, so the arithmetic is identical — only the label on the answer differs.

rise = 5 × 0.5 = 2.5 m

How to measure rise and run on a real roof

The run is a horizontal measurement. On a finished roof you cannot measure it directly along the slope, so measure it at the wall line or on a plan drawing.

The rise is vertical. Measuring it from the top of the wall plate to the top of the ridge gives a slightly different number from the rafter line, because the rafter has depth and the ridge has thickness. For setting out, decide which line you are working to and stay consistent.

If you are checking an existing roof, the reliable method is to measure both rise and run rather than trusting one of them and assuming the pitch. A roof built to a nominal pitch is often a little off it, especially on older buildings.

One last piece of vocabulary: the word run means something different in gutter work. There it is the length of the gutter line along the eave, not the horizontal distance under a roof plane, and the gutter run length calculator works in that second sense.

A prefabricated timber gable roof truss standing upright on a construction site, showing the triangle formed by the rise and the run.
A gable truss makes the relationship visible: the rise is the vertical height and the run is half the span.
Run is not span. Entering the full building width as the run is the single most common error here. It doubles the rise, which on a rafter is a very expensive mistake.

Rise and run calculator limitations

  • One constant pitch. The relationship is linear only while the pitch does not change along the run.
  • Straight line. Real roofs deflect and settle; the geometric rise is not the as-built rise.
  • No overhang. The rafter shown runs from the wall line to the ridge. An overhang makes it longer.
  • No ridge deduction. The rafter runs to the ridge line; a real rafter is shortened where it meets the ridge board.
  • No pitch limit. The arithmetic holds at any ratio, though roofs much above 12:12 are unusual enough to need their own takeoff — the steep roof calculator covers that range.
  • Not a compliance check. Whether a pitch is permitted for a covering is a separate question, and the minimum roof pitch calculator is where to check it.
  • Not a structural check. Nothing here says whether the resulting geometry can be built with the members you have.
  • Straight geometry only. A roof with a curve, a change of pitch partway up, or a sagging ridge does not have a single rise and run, and this calculation will not describe it.
  • No member sizing. The rafter length is a geometry result. Whether the rafter can carry the load at that span is a structural question this page does not touch.

Roof Pitch Resources and Guides

Reference values for the pitches you are most likely to be solving.

Frequently asked questions

Run is the horizontal distance a roof travels. Rise is how far it climbs over that distance. Together they define the slope, and with them you can find the rafter length. On a symmetrical gable, the run of a rafter is half the building span. The rise is what the pitch produces over that run.

Multiply the run by the pitch divided by 12. For a 16 ft run at 6:12: 16 × (6 ÷ 12) = 16 × 0.5 = 8 ft of rise. That is the first mode of this calculator. It is the calculation you need when you know how wide the roof is and what pitch you want, and you are setting out the height at the ridge.

Divide the rise by the pitch divided by 12. For 8 ft of rise at 6:12: 8 ÷ 0.5 = 16 ft of run. This is the second mode. It answers questions like "with this much height available, how far can the roof run before it reaches it?"

No. On a symmetrical gable the span is the full width between the walls and the run is half of it. On a shed roof the run is the full horizontal distance from the low side to the high side. Confusing the two is the most common error in this calculation, and it doubles or halves the answer.

Because once you have the rise and the run you already have two sides of a right triangle, and the rafter is the third. It costs nothing to show it and it is usually the next number you need. The rafter shown here is the straight-line length from the wall line to the ridge, without an overhang. A rafter with an overhang and a ridge deduction is a different number, and it is the one the rafter calculator returns.

It is the pitch expressed over a run of one foot instead of twelve units. A 6:12 roof rises 0.5 ft, or 6 in, per foot of run. Some trades quote rise per foot because it is easier to apply with a tape measure over long runs. The calculator shows it alongside the pitch.

Not directly here. Convert the angle to a rise per 12 first with the roof pitch calculator, which accepts an angle in degrees and returns the pitch. For example, 30° is a rise of tan(30°) × 12 = 6.93 per 12, close to but not exactly 7:12.

Yes. Enter the run or the rise in metres, centimetres or millimetres and the result comes back in the same unit. The pitch is a ratio, so it is unchanged. A 5 m run at 6:12 rises 2.5 m. The geometry does not care about the unit.

The rise is measured from the top of the wall plate to the top of the ridge, along the line of the rafter. The overall height of the building also includes the wall height, the depth of the rafter, the position of the birdsmouth and any ridge board. If you are comparing against a finished height, make sure you are comparing the same two points.

The geometry is identical — rise over run is rise over run whether it is a roof or a ramp. What changes is the vocabulary and the tolerances. For drainage work the roof slope calculator is a better fit because it works in slope percentages and total fall, which is how drainage is usually specified.

A rise of 4 units for every 12 units of horizontal run — so 4 in per foot, or 4 ft per 12 ft. On a 20 ft wide building the run is 10 ft to the ridge, so the rise is 10 × 4 ÷ 12 = 3.33 ft. The slope length over that run is 10.54 ft. The same roof described in degrees is 18.4°, and its slope percentage is 33.3%.

The total roof height is the rise, provided it is measured from the same level as the run. Take the height from the top of the wall plate to the top of the ridge — that is the rise — and the horizontal distance from the outside of the wall to the ridge centreline, which is the run. Then pitch = rise ÷ run × 12. A 4 ft rise over a 10 ft run gives 4 ÷ 10 × 12 = 4.8, so 4.8:12. The two common errors are measuring the height from ground level rather than from the wall plate, and taking the run to the outside face of the wall rather than to the ridge centreline.

Where these numbers come from

This is linear proportion plus Pythagoras. Pitch is a constant ratio, so rise and run scale together, and the rafter follows from the two of them. There is nothing empirical on this page.

The only judgement involved is which two points you are measuring between — wall plate or rafter line, centre line or face. Those are choices about your own setting out, and the page states which ones it uses.

No claim on this page has been reviewed or endorsed by any code body, manufacturer or trade association.

Before you cut

Four things the arithmetic does not know about.

  • Run is not span. On a symmetrical gable each rafter covers half the building width, and entering the full span doubles everything.
  • Rise is vertical. Measured plumb from the eave line, not along the rafter and not along the roof surface.
  • Add the overhang to the run. The projection extends the rafter without changing the wall height, so it belongs on one side of the triangle only.
  • Deduct for the ridge and the birdsmouth. A finished rafter is shorter than the geometric line between the two points.

The figure here is a straight line between two points. A rafter is a cut member, and the difference is where most framing errors come from.

Need the full rafter, with overhang?

The rafter calculator adds the overhang and the ridge deduction to this same triangle.

Back to the calculator
Scroll to Top