Geometry only: the length of a common rafter along the slope and the roof surface from the plan area. It does not size the rafter. Member size and spacing come from the IRC R802.4 span tables or an engineer, and the local jurisdiction decides. Not a cut list for hips, valleys or the seat cut.

Maintained by BuildSolver · Updated

Calculator · Roofing

Rafter length and roof pitch calculator

Enter the horizontal run and the pitch, and this page gives the rafter length, the pitch multiplier and the roof angle. A 12 ft run at 6/12 has a multiplier of 1.1180 and a line length of 13.42 ft (13 ft 5 in). With a 1 1/2 in ridge and a 12 in overhang the rafter to cut is 14 ft 5 9/16 in, and a 30 ft long gable roof over that plan has 872 sq ft of roof surface. Rafter size and spacing are not figured here: see the IRC R802.4 span tables. For the vents under the same roof use the attic ventilation calculator; for the gutters on its eaves, the gutter and downspout size calculator.

  1. The rise in inches per 12 in of run (the 6 of a 6/12 roof), or switch to degrees if you have the angle.
  2. The level distance from the outside of the wall plate to the ridge centerline: half the span of a symmetric gable, the whole span of a shed roof.
  3. The horizontal overhang past the wall plate and the ridge board thickness, both optional. The tail is the overhang times the multiplier and the ridge takes half its thickness along the slope.
  4. The length of the roof along the ridge and the number of planes give the plan area, which times the multiplier is the roof surface.
  5. The result gives the rafter length to cut in feet and inches, the pitch multiplier, the roof angle and the surface area.

Common rafter length, pitch multiplier, angle, overhang tail and roof surface from the run and the pitch. Geometry only: no rafter size, spacing, loads, hips or valleys.

Plans give pitch as rise in 12 in of run, such as 6/12. Pick degrees only if you have the angle from a level or a plan.

The 6 of a 6/12 roof. 4 is a low pitch, 12 is a 45 degree roof.

The level distance from the outside of the wall plate to the ridge centerline. On a symmetric gable that is half the span, so a 24 ft span is a 12 ft run.

How far the roof reaches past the wall plate, measured level, not along the rafter. Leave empty for no overhang.

A 2x ridge is 1.5 in. Half of it is taken off each rafter at the ridge. Leave empty for no deduction.

The length of the building along the ridge. With it the page also gives the roof surface area. Leave empty to skip the area.

A gable has the same run on both sides. A shed roof is one plane, so its run is the whole span.

Example result for the default inputs

Run 12 ft, pitch 6/12, overhang 12 in, ridge 1.5 in.

Rafter length, cut

14 ft 5 9/16 in

Pitch multiplier

1.1180

Roof angle

26.57 degrees

Roof surface area

872 sq ft

Calculation details
Pitch6/12, angle atan(6 / 12) = 26.57 degrees
Pitch multipliersqrt(1 + (6.00 / 12)^2) = 1.1180
Rafter per foot of run12 x 1.1180 = 13.42 in (1 ft 1 7/16 in)
Line length, plate to ridge centerline12 ft x 1.1180 = 13.42 ft (13 ft 5 in)
Ridge deduction1.5 in ridge: 0.75 x 1.1180 = 0.84 in along the rafter
Tail for the overhang12 in x 1.1180 = 13.42 in (1 ft 1 7/16 in)
Rafter length to cut161.00 - 0.84 + 13.42 = 173.57 in (14 ft 5 9/16 in)
Rise over the run12 ft x 6 / 12 = 6.00 ft
Plan area of the roof2 x (12 + 1.00) ft x 30 ft = 780 sq ft
Roof surface area780 x 1.1180 = 872 sq ft (8.7 squares)
  • Geometry only. The rafter depth, species, grade and spacing come from the IRC R802.4 span tables or an engineer, not from this length.
  • Roof area is the plan area times the multiplier for one pitch. Rake overhangs, hips, valleys and dormers are not added.

For estimation purposes only. Consult a licensed engineer for final designs.

Get this result as a PDF, free account

Sign up with your email. Back on this page in the same browser, your inputs are filled in. No card.

Size the attic vents

Free without signup

How the rafter length is found

The page uses the right triangle under the rafter: the horizontal run is one leg, the rise is the other and the rafter is the hypotenuse. The pitch multiplier is that hypotenuse for a run of 1, so every length measured level is multiplied by it to get the length along the slope. Rafters, overhang tails and the roof surface all use the same multiplier.

Pitch and angle
pitch = rise in 12 in of run; angle = atan(rise / 12); rise = 12 x tan(angle)6/12 is atan(0.5) = 26.57 degrees and 12/12 is 45 degrees. A pitch typed as 45 degrees becomes 12.0 in of rise per 12 in.
Pitch multiplier
k = sqrt(1 + (rise / 12)^2)4/12 1.0541, 6/12 1.1180, 8/12 1.2019, 12/12 1.4142. These are the rafter lengths per foot of run in decimals: 12 x 1.1180 = 13.4 in at 6/12.
Line length
L = run x k = sqrt(run^2 + rise^2)A 12 ft run at 6/12 is 12 x 1.1180 = 13.42 ft (13 ft 5 in), from the outside of the wall plate to the ridge centerline. It matches sqrt(144^2 + 72^2) in inches.
Tail for the overhang
tail = horizontal overhang x kA 12 in overhang at 6/12 is a 13.4 in tail (1 ft 1 7/16 in) along the rafter, not 12 in.
Ridge deduction
d = (ridge thickness / 2) x kA 1 1/2 in ridge takes 0.75 in level, which is 0.8 in along the rafter at 6/12.
Rafter length to cut
L - d + tail161.0 in - 0.8 in + 13.4 in = 173.6 in, 14 ft 5 9/16 in. The open worked sample reads about 173-5/8 in.
Roof surface area
A = plan area x k, plan area = planes x (run + overhang) x length1,000 sq ft of plan at 6/12 is 1,118 sq ft of roof. The sample roof (two planes, 13 ft with the overhang, 30 ft long) has 780 sq ft of plan and 872 sq ft of surface.

Common pitches on a 12 ft run

Each row is a 12 ft run with no overhang or ridge deduction, and 1,000 sq ft of plan area for the roof surface, worked with the same function as the form. The rafter grows from 12 ft 7 13/16 in at 4/12 to 16 ft 11 5/8 in at 12/12.

Angle, multiplier, rafter length and roof area for six common pitches
PitchAngle, degMultiplierRafter, 12 ft runRoof from 1,000 sq ft plan
4/1218.431.054112 ft 7 13/16 in1,054 sq ft
6/1226.571.118013 ft 5 in1,118 sq ft
8/1233.691.201914 ft 5 1/16 in1,202 sq ft
9/1236.871.250015 ft 0 in1,250 sq ft
10/1239.811.301715 ft 7 7/16 in1,302 sq ft
12/1245.001.414216 ft 11 5/8 in1,414 sq ft

Use half the span as the run, not the span: a 24 ft building at 6/12 has a 13.42 ft rafter, and entering 24 ft as the run would give 26.83 ft.

Standards and data sources

Limitations of this calculator

  • This page finds the length of a common rafter and the surface of a roof from geometry. It does not size a rafter. The depth, species, grade, spacing, snow load, wind load and ceiling or attic load that decide the member come from the IRC R802.4 span tables or an engineer, and a length from this page is not a span rating.
  • The length is the theoretical line from the outside of the wall plate to the ridge centerline, plus the tail and less the ridge deduction. It is not a cut list: the plumb cut, the birdsmouth seat, the heel height and the cut at the tail depend on the rafter depth and the detail drawn, and are laid out on the member.
  • Common rafters only. Hip, valley and jack rafters run at a steeper line over a longer plan distance and have their own factor (at 12/12 a hip or valley is 20.78 in per foot of common run against 16.97 in for a common rafter). They are not figured here.
  • The run is the horizontal distance from the wall plate to the ridge. The page does not find it from a plan with a different plate height, a raised heel, a kneewall or a scissor or cathedral framing, and it does not shift the rafter for a ridge beam that carries the rafters at its side.
  • Roof area is the plan area times the multiplier for one pitch. Rake (gable end) overhangs, hips, valleys, dormers, chimneys, skylights and waste are not added, and a roof with more than one pitch must be worked one section at a time.
  • The overhang is horizontal and is counted for the eave side only. The rake overhang at the gable ends is not in the area; add its plan area before applying the multiplier.
  • Pitch is the rise in 12 in of run, not the angle. A pitch typed as degrees is converted with the tangent, so 6 degrees is about 1.26/12, not 6/12.
  • Values outside the field ranges are not accepted: run 1 to 40 ft, pitch 1/12 to 24/12 (5 to 63 degrees), overhang 0 to 72 in and never more than the run, ridge board 0 to 6 in, roof length 5 to 300 ft. A flat roof, a 90 degree wall, a zero or negative value is refused.

Common mistakes when figuring rafter length

  1. Typing the span as the run. A 24 ft wide building has a 12 ft run on each side. Entering 24 gives 26.83 ft at 6/12, twice the 13.42 ft the rafter needs. Use half the span for a gable and the full span for a shed roof.
  2. Adding the overhang level. A 12 in overhang is measured level. Along a 6/12 rafter the tail is 12 x 1.1180 = 13.4 in, so adding 12 in leaves the rafter 1.4 in short.
  3. Using the footprint as the roof area. Roofing is bought by the sloped surface. A 1,500 sq ft plan under a 6/12 roof is 1,677 sq ft, not 1,500; ordering to the plan area leaves the roof about 177 sq ft short before waste.
  4. Reading 6/12 as 6 degrees. The 6 of 6/12 is inches of rise per foot, an angle of 26.57 degrees. Entering 6 as degrees is a pitch near 1.3/12 and a 12 ft run of 12.07 ft instead of 13.42 ft.
  5. Using the common rafter length for a hip or valley. A hip or valley is longer than the common rafter for the same run. Per 12 in of common run it is 18.0 in at 6/12 against 13.4 in, and 20.8 in at 12/12 against 17.0 in. This page figures common rafters only.
  6. Forgetting the ridge deduction. The line length runs to the ridge centerline, but a rafter meets the face of the ridge board. A 1 1/2 in ridge takes 0.8 in off each rafter at 6/12. Left out, the pair is about 1.7 in too long across the ridge.

Common questions about rafter length and roof pitch

How do I calculate rafter length from the run and pitch?

Multiply the horizontal run by the pitch multiplier, sqrt(1 + (rise/12)^2). A 12 ft run at 6/12 has a multiplier of 1.1180, so the line length is 13.42 ft (13 ft 5 in). That equals sqrt(144^2 + 72^2) in inches. Then take off half the ridge thickness along the slope and add the overhang tail.

What is the pitch multiplier for common roof pitches?

It is the rafter length per unit of run: 4/12 1.0541, 6/12 1.1180, 8/12 1.2019, 9/12 1.2500, 10/12 1.3017, 12/12 1.4142. Multiply any level length by it to get the length along the slope, including the roof area from the plan area.

What angle is a 6/12 roof?

A 6/12 roof is 26.57 degrees, from atan(6/12). Others: 4/12 18.43, 8/12 33.69, 9/12 36.87, 10/12 39.81, 12/12 45.00 degrees. 12/12 is exactly 45 degrees.

How do I add the overhang to the rafter length?

Measure the overhang level from the wall plate and multiply it by the pitch multiplier. A 12 in overhang at 6/12 is a 13.4 in tail. For the 24 ft span sample with a 1 1/2 in ridge the rafter to cut is 161.0 in - 0.8 in + 13.4 in = 173.6 in, 14 ft 5 9/16 in.

How do I find the roof area from the footprint?

Multiply the plan area by the pitch multiplier. 1,000 sq ft at 6/12 is 1,118 sq ft of roof, and at 12/12 it is 1,414 sq ft. Add the eave overhang to the plan first, and add waste on top for ordering shingles or sheathing.

What is the run of a gable roof?

The level distance from the outside of the wall plate to the ridge centerline. On a symmetric gable that is half the span: a 24 ft span has a 12 ft run, and an 8/12 roof on a 14 ft run has a 16.83 ft rafter line. A shed roof has one plane, so its run is the whole span; a 14 ft shed run at 6/12 has a 15.65 ft line.

Does this calculator size the rafter or its spacing?

No. It gives the length along the slope only. The rafter depth and spacing come from the IRC R802.4 span tables for the species, grade, spacing and load, or from an engineer. R802.4.1 measures the span along the horizontal projection, so those tables are entered with the run, not the slope length.

What is the difference between rise in 12 and degrees?

Rise in 12 is the inches of rise for every 12 in of run, the way plans and framing squares give pitch. Degrees is the angle from level. They are related by the tangent: 45 degrees is 12.0/12, and 6/12 is 26.57 degrees. Typing 6 as degrees gives a pitch near 1.3/12.

Used on the same job