Rake Wall Calculator

Quick answer

A rake wall calculator generates a per-stud cut list for a gable end wall where the top plate follows the roof slope. Enter the base wall height, roof pitch, wall run and spacing, and the tool returns each stud length from eave to ridge. At 7/12 pitch and 16 in OC, each stud is 9-1/3 inches longer than the one before it.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Lumber, Framing and Carpentry
in
Height of the shortest stud at the eave end, in inches. 96 in = 8 ft wall (use 92-5/8 for pre-cut stud height).
The roof rise in inches per 12 inches of run.
in
Horizontal distance from the eave end to the ridge centerline, in inches. For a centered gable, this is half the building width.
On-center stud spacing.
Your results

Stud count

—
Increment per stud—
Shortest stud (eave)—
Longest stud (ridge)—
Total rise over run—
Cut list—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ
How this calculator works1Your inputs2Verified formulameasurementfactor3Result
How it works: your measurements run through a verified formula to give the result.

How to Use the Rake Wall Calculator

  1. Enter the base wall height in inches (shortest stud at the eave).
  2. Pick the roof pitch.
  3. Enter the wall run from eave to ridge in inches.
  4. Pick the stud spacing (16 or 24 in OC).
  5. Read the stud count, increment and per-stud cut list.

Here is what each result line means:

ResultWhat it means
Increment per studHow many inches each successive stud gains over the previous one.
Shortest studThe first stud at the eave end (equals the base height).
Longest studThe last stud at or near the ridge.
Cut listA table with every stud numbered and its exact length.

For a flat wall stud count, see the stud calculator. For header sizing, see the header size calculator.

What Is a Rake Wall?

A rake wall is the triangular gable end of a building where the top plate follows the roof slope instead of running level. Each stud in a rake wall has a different length because the roofline rises from the eave to the ridge.

Framers build rake walls by calculating each stud length from the pitch and spacing, then cutting a full set before standing the wall.

How the Rake Wall Calculator Works

Stud length formula
Ln = H + n rise12 s

H is the base wall height (shortest stud), n is the stud number counting from zero at the eave, rise is the pitch rise per foot, s is the stud spacing in inches, and 12 converts rise-per-foot to rise-per-inch.

  1. Calculate the increment: (rise / 12) x spacing.
  2. Count the studs: floor(run / spacing) + 1.
  3. For each stud, add n times the increment to the base height.
  4. Report the full cut list.

Rake Wall Calculation Example

A gable wall with a 7/12 pitch, 92-5/8 in base height, 144-in run (12 ft to the ridge), 16 in OC.

Worked example: stud 5 in a 7/12 pitch wall at 16 in OC
L5 = 92.625 + 5 9.333 = 92.625 + 46.667 = 139.29 in

Calculation: increment = (7/12) x 16 = 9.333 in per stud. Stud count = floor(144/16) + 1 = 10 studs. Shortest = 92.625 in. Stud 5 = 92.625 + 5 x 9.333 = 139.29 in. Longest (stud 9) = 92.625 + 9 x 9.333 = 176.625 in.

Factors That Change Rake Wall Stud Lengths

Roof Pitch

Steeper pitches mean bigger increments. A 12/12 pitch adds 16 inches per stud at 16 in OC, while a 4/12 pitch adds only 5-1/3 inches.

Stud Spacing

24-inch spacing increases the increment by 50 percent compared to 16-inch, but uses fewer studs.

Wall Run

A longer run to the ridge means more studs and a taller last stud. For a centered gable, the run is half the building width.

Base Height

The base height sets the starting point. Using 92-5/8 (pre-cut for 8 ft) instead of 96 shortens every stud by 3-3/8 inches.

Top Plate Angle

The sloped top plate is cut at an angle. Stud lengths in this calculator are to the long point; adjust for the plate thickness and bevel as needed.

Stud Increment Comparison by Pitch

The table below shows how many inches each stud gains over the previous one at 16 and 24 in OC.

PitchRise/ftIncrement @ 16″ OCIncrement @ 24″ OC
3/123 in4.000 in6.000 in
4/124 in5.333 in8.000 in
5/125 in6.667 in10.000 in
6/126 in8.000 in12.000 in
7/127 in9.333 in14.000 in
8/128 in10.667 in16.000 in
9/129 in12.000 in18.000 in
10/1210 in13.333 in20.000 in
12/1212 in16.000 in24.000 in

When to Use a Rake Wall Calculator

Gable End Framing

Generate a cut list for the triangular gable wall above the top plate line.

Shed Roof Walls

A shed roof has a single slope, so one wall is taller than the other. The rake calculator gives the stud lengths for the sloped side.

Dormer Cheek Walls

Dormer side walls follow a roof slope and need individually cut studs.

Material Ordering

Knowing the longest stud tells you what stock length to buy (10, 12, 14 or 16 ft).

Common Mistakes with Rake Walls

1. Using Cosine Instead of Tangent

The stud increment uses the slope ratio (rise/12), not the cosine of the pitch angle. Using cosine gives the wrong lengths.

2. Forgetting the Plate Thickness

The angled top plate sits on the studs. Subtract the plate thickness (1.5 in for a 2x) from the long-point length if measuring to the roof sheathing line.

3. Not Accounting for a Centered Ridge

For a centered gable, the run is half the building width, not the full width. Studs go up from both sides.

4. Rounding Too Early

The increment is often a repeating decimal (e.g. 9.333 in). Rounding each stud individually accumulates error. Calculate the exact length, then round once at the end.

5. Cutting Studs Without Verifying on Site

Framing lumber varies. Measure the actual base height and check the first few studs before cutting the full set.

Accuracy and Limitations

The calculator uses standard pitch geometry (rise/12 x spacing) verified against Fine Homebuilding and JLC references. It assumes a single slope from eave to ridge and does not account for hip or valley intersections.

What it calculates

  • Per-stud cut list
  • Stud increment by pitch
  • Shortest and longest stud
  • Total rise over the run

What it does not do

  • Hip or valley rake walls
  • Centered gable (both sides) in one pass
  • Angle cuts on the top plate
  • Account for sheathing or siding thickness

How We Calculate Rake Wall Studs

Method
Stud[n] = base + n x (rise/12) x spacing. Count = floor(run/spacing) + 1.
Inputs used
Base height, pitch (rise/12), wall run, stud spacing.
Constants
Pitches 3/12 through 12/12. Spacing 16 or 24 in OC.
Rounding
Stud lengths to the nearest hundredth of an inch.
Edge cases
Zero run returns one stud at the base height. Stud count capped at run/spacing + 1.
Sources
See the Sources list below.
Last reviewed
2026-10-24.

Frequently Asked Questions About Rake Walls

What is a rake wall?

A rake wall is the triangular gable end of a building where the top plate slopes to follow the roof pitch. Each stud has a different length.

How do I find the stud increment?

Multiply the pitch rise by the spacing and divide by 12. For a 7/12 pitch at 16 in OC: (7/12) x 16 = 9.333 inches per stud.

What is the shortest stud?

The first stud at the eave end. It equals the base wall height you enter (for example 92-5/8 in for a standard 8-ft wall).

How long is the longest stud?

Base height plus (number of spaces x increment). For 10 studs at 9.333 in per stud: 92.625 + 9 x 9.333 = 176.6 in.

What if my gable is centered?

Enter half the building width as the run. The other half is a mirror image with the same cut list in reverse.

Should I use tangent or cosine?

Use tangent (rise/12). Cosine would give the wrong result. For standard pitches, you do not need a trig function, just divide rise by 12.

How do I cut the top plate?

The top plate runs along the slope. Its angle is arctan(rise/12). Set your miter saw to that angle for the plumb cuts on the studs.

Does this account for the plate thickness?

No. The lengths are to the top of the stud. Subtract 1.5 in (one 2x plate) if you are measuring to the sheathing line.

Can I use this for a shed roof?

Yes. A single-slope shed roof is one half of a gable. Enter the full run from the low wall to the high wall.

Is my data saved?

No. The calculation runs entirely in your browser and nothing you enter is stored or sent anywhere.

Sources
Reviewed and sourcedClear, comparable resultsReviewed and sourced
Every figure is checked against cited sources and reviewed by a qualified expert.

Related Calculators

This calculator gives a stud cut list for a simple gable rake wall. Actual lengths must account for the top plate angle cut and any seat cut at the bottom. Measure and confirm each stud on site before cutting. Spotted an error? Let us know.