Home › Calculators › Rafter Length Calculator

Rafter Length Calculator

Work out common rafters for a gable roof. Enter the building span, roof pitch or angle, overhang and ridge board thickness to get the rafter length, run and rise, plumb and seat cut angles, birdsmouth depth, board length to buy and how many rafters you need.

Last updated:

Units
ft

Decimal feet: 24.5 = 24 ft 6 in

m
Roof slope given as
/ 12
°
in
mm
in

1.5 in for 2× lumber, 0 if rafters meet

mm
Birdsmouth and quantity (optional)
in

3.5 in for 2×4 walls, 5.5 in for 2×6

mm

Feet (or meters) along the ridge, to count rafters

Enter your values to see the result.
Advertisement
Advertisement

How to use the Rafter Length Calculator

  1. Enter the building span, measured across the outside of the walls.
  2. Enter the pitch (inches of rise per 12 of run) or the roof angle.
  3. Add the overhang measured horizontally, and the ridge board thickness.
  4. Optionally set the wall plate width and rafter size to size the birdsmouth, and the building length to count rafters.
  5. Read the rafter length and cut angles, then mark the plumb cut at the ridge and the birdsmouth at the wall.

Rafter formulas

  • Run = span ÷ 2 − ridge thickness ÷ 2
  • Rise = run × pitch ÷ 12
  • Slope factor = √(1 + (pitch ÷ 12)²) = 1 ÷ cos(roof angle)
  • Rafter length = (run + horizontal overhang) × slope factor
  • Plumb cut angle = roof angle = atan(pitch ÷ 12); seat cut = 90° − roof angle
  • Birdsmouth depth (plumb) = seat cut width × pitch ÷ 12, kept at or below 1/3 of the rafter depth

The rafter length is measured along the top edge from the long point of the ridge plumb cut to the tail. Lay it out from the ridge end, mark the birdsmouth where the line length ends, then add the tail.

Pitch, angle and slope factor

PitchAngle (plumb cut)Seat cutSlope factorRafter per ft of run
3/1214.04°75.96°1.030812.37 in
4/1218.43°71.57°1.054112.65 in
5/1222.62°67.38°1.083313.00 in
6/1226.57°63.43°1.118013.42 in
7/1230.26°59.74°1.157713.89 in
8/1233.69°56.31°1.201914.42 in
9/1236.87°53.13°1.250015.00 in
10/1239.81°50.19°1.301715.62 in
12/1245.00°45.00°1.414216.97 in

Check rafter sizes against the rafter span tables for your snow load and roof weight. Hip, valley and jack rafters need different lengths and side cuts.

Frequently asked questions

How do you calculate rafter length?

Find the run (half the building span minus half the ridge board thickness), then multiply it by the slope factor √(1 + (pitch ÷ 12)²). Add the overhang multiplied by the same factor. For a 24 ft span at 6/12 with a 1.5 in ridge and 12 in overhang: run = 143.25 in, factor = 1.118, rafter = (143.25 + 12) × 1.118 ≈ 173.6 in, about 14 ft 5 9/16 in.

What is the plumb cut angle for a rafter?

The plumb cut angle equals the roof angle, atan(pitch ÷ 12). A 6/12 roof is 26.57°, 4/12 is 18.43°, 8/12 is 33.69° and 12/12 is 45°. With a speed square, pivot on the pivot point and line up the pitch number on the common scale with the rafter edge.

What is a seat cut?

The seat cut is the level (horizontal) cut of the birdsmouth that sits on the wall top plate. It is at 90° minus the roof angle from the plumb line, and its length is usually the width of the wall plate, 3.5 in for a 2×4 wall or 5.5 in for a 2×6 wall.

How deep can a birdsmouth be?

A common rule, and the requirement in many codes, is that the birdsmouth must not cut more than one third of the rafter depth. If the seat is too deep, shorten the seat cut so it bears on at least part of the plate, or use a deeper rafter.

Why subtract half the ridge board thickness?

Rafters stop at the face of the ridge board, so each side loses half of its thickness. With a 1.5 in ridge, each run is 0.75 in shorter, which shortens the rafter by 0.75 in × the slope factor.

Is the overhang measured level or along the rafter?

This calculator asks for the horizontal overhang (from the outside of the wall to the end of the rafter, measured level), which is how eaves are usually specified. It converts it to the length along the rafter using the slope factor.

Is my data sent anywhere?

No. Everything is calculated in your browser.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Roof Pitch CalculatorConvert rise and run or an angle to roof pitch x/12, degrees, slope % and rafter multiplier.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Joist Span CalculatorMaximum floor or deck joist span for any lumber size, spacing, species, grade and load.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Square Footage CalculatorTotal sq ft and m² for rooms of any shape, with cost estimate.Concrete CalculatorEstimate concrete volume, bags and cost.Paint CalculatorHow much paint for a room, minus doors and windows, in gallons or liters.Tile CalculatorHow many tiles and boxes you need for a floor or wall, with waste.Flooring CalculatorWork out flooring area, boxes needed and cost with waste allowance.Drywall CalculatorCount drywall sheets, screws, joint compound and tape for walls and ceilings.Brick CalculatorEstimate bricks, mortar volume and mortar bags for a wall, minus openings.Fence CalculatorWork out fence posts, rails, pickets and concrete bags for any fence length.Deck CalculatorDeck boards, joists, posts, screws and total cost from your deck size.Wallpaper CalculatorWork out how many rolls of wallpaper you need, with pattern repeat and waste.Stair CalculatorFind riser height, tread run, stringer length and angle, with IRC code checks.Board Foot CalculatorAdd up board feet and lumber cost for any list of boards, nominal or actual size.Insulation CalculatorFind the R-value to add for your climate zone and how many batts or blown-in bags to buy.Rain Gutter CalculatorSize gutters and downspouts from roof area, roof pitch and local rainfall intensity.Moving Cost CalculatorCompare DIY truck, full-service movers and container costs, with truck size and packing estimates.Concrete Block CalculatorCount concrete blocks (CMU) for a wall, minus doors and windows, plus mortar bags.TV Size CalculatorFind a TV or monitor's width, height and area from its diagonal and compare two screens.TV Viewing Distance CalculatorBest seating distance for your TV size and resolution (SMPTE, THX, 4K), or the best TV size.Price per Square Foot CalculatorFind price per sq ft or m², total price or area, and compare several homes by value.House Flipping CalculatorFix-and-flip profit, ROI and 70% rule max offer from purchase, rehab, holding and sale costs.Stud CalculatorCount wall studs and plates from wall length, spacing, corners and openings.Carpet CalculatorCarpet for your rooms in sq ft and sq yd from a 12 or 15 ft roll, with padding and cost.Baseboard CalculatorLinear feet of baseboard and number of pieces for your rooms, minus doorways.Grout CalculatorGrout in kg, lb and bags from tile size, joint width, depth and area.Asphalt CalculatorTons of asphalt from area and thickness at 145 lb/ft³, with volume and cost.Sand CalculatorSand in cubic yards, m³, tons and bags for any area and depth.Siding CalculatorSiding squares, panels and J-channel from walls and gables minus doors and windows.Concrete Steps CalculatorConcrete volume and bags for poured steps from step count, rise, run, width and landing.Baluster Spacing CalculatorNumber of balusters and exact gap and on-center spacing for a railing under the 4-inch rule.Caulk CalculatorCaulk volume and number of 10.1 oz cartridges or squeeze tubes from joint length and size.Ceiling Fan Size CalculatorCeiling fan blade span, downrod length and minimum airflow (CFM) for any room.Concrete Mix Ratio CalculatorCement bags, sand, gravel and water for any concrete mix ratio (1:2:3, 1:2:4, M15, M20).Curtain Size CalculatorCurtain length, panel width and number of panels from your window size and fullness.Deck Stain CalculatorGallons of deck stain or sealer for the floor, railing and stairs, by coats and wood condition.Home Appreciation CalculatorProject home value by year from a growth rate or find the rate from today's value, with equity.Home Maintenance Cost CalculatorYearly and monthly home upkeep budget using the 1% rule, cost per sq ft or home age.Linear Feet CalculatorAdd up lengths or convert square feet to linear feet by board width, with boards and cost.Lumens CalculatorLumens a room needs from foot-candle targets, plus bulb count and watts-to-lumens equivalents.Mortar CalculatorMortar volume and bags for brick or block walls from wall area, unit size and joint thickness.Moving Box CalculatorEstimate how many small, medium and large moving boxes, tape and packing paper you need.Picture Hanging Height CalculatorExact nail height for a frame at 57 in eye level or above furniture, plus gallery spacing.Plywood Sheet CalculatorHow many 4x8 plywood or OSB sheets you need for a floor, wall or roof, with waste and cost.Quilt Size CalculatorQuilt dimensions, blocks across and down, backing yardage and batting for any bed size.Recessed Lighting Layout CalculatorNumber of can lights, spacing and wall offset for a room, with a scaled ceiling grid plan.Home Sale Proceeds CalculatorEstimate the cash you keep after selling a home: commission, closing costs, taxes and payoff.Shiplap CalculatorBoards, linear feet, rows and nails for a shiplap wall, minus doors and windows.Tankless Water Heater Size CalculatorPeak GPM, temperature rise and the BTU or kW size a tankless water heater needs.TV Mounting Height CalculatorIdeal TV center and wall bracket height from screen size, eye height and seating distance.Water Heater Size CalculatorRecommended tank size and first-hour rating from household size and peak-hour hot water use.Household Water Usage CalculatorGallons and liters your household uses per day, month and year by activity, plus the cost.AC Running Cost CalculatorFind what your air conditioner costs to run per hour, day and month from BTU, SEER and your rate.Balloon Garland CalculatorHow many balloons for a garland or arch: counts by size and color, packs, helium and build time.Bathroom Remodel Cost CalculatorEstimate a bathroom remodel by size, type and finish, with itemized tile, vanity and labor.Board and Batten CalculatorBattens, spacing, linear feet and cost for a board and batten accent wall or siding.CFM CalculatorFind the CFM a fan needs for a room from its size and air changes per hour.Christmas Lights CalculatorLight strands, bulbs, watts and strands per circuit for a tree, roofline or shrubs.Cost to Build a House CalculatorEstimate the cost to build a house by size, stories, quality, garage, basement and region.House Painting Cost CalculatorEstimate paint gallons, supplies and labor cost to paint a house inside or out.Countertop CalculatorSquare footage and installed cost of countertops, including L/U shapes and backsplash.Crown Molding CalculatorMiter and bevel settings for crown molding plus linear feet, pieces and a cut list.Cut List OptimizerLay out plywood and MDF parts on sheets with kerf and grain, and print the cutting diagrams.Deck Footing CalculatorConcrete volume, 40–80 lb bags and form tubes for round or square deck footings.Dumpster Size CalculatorEstimate cubic yards and tons of debris and pick the right 10–40 yard roll-off dumpster.Heat Pump Savings CalculatorCompare your gas, propane, oil or electric heating cost with a heat pump and see the payback.
See all 99 Home & Construction Calculators →