Skip to Calculator
Trusted by Contractors & DIY Builders

πŸ—οΈ Rafter Calculator

Calculate rafter length, birdsmouth cut, ridge height, and lumber needs for your roof framing project. Get precise measurements for any roof pitch.

Based on IRC Section R802 & American Wood Council Standards

feet
inches
feet
πŸ“

Enter your building dimensions above to calculate rafter length, birdsmouth cuts, and lumber needs.

Based on International Residential Code β€”Β·Updated Mar 2026Β·Free, no signup

Frequently Asked Questions

What Is a Rafter Calculator?

A rafter calculator figures out every dimension you need to cut and install roof rafters β€” the sloped structural members that give a roof its shape and carry the load down to the walls. You feed it your building width, roof pitch, and a few other inputs, and it gives you rafter length, birdsmouth dimensions, ridge height, and how many boards to order. No trigonometry tables, no ruler-on-a-drawing guesswork.

This tool is built for residential construction: gable roofs, shed roofs, and any simple ridge-board assembly covered under IRC Section R802. If you're framing a house, garage, shed, or addition, this is the calculator you want. The math follows the same formulas a licensed framing carpenter uses β€” Pythagorean theorem for rafter length, trigonometry for roof angle, and the IRC's HAP requirements for birdsmouth depth.

Contractors use it to generate a cut list before the lumber truck arrives. Homeowners use it to check a contractor's quote or plan a DIY project. Carpentry students use it to understand the geometry of roof framing before touching a saw. Whatever your reason, you'll have accurate numbers in under a minute β€” far faster than scaling a set of drawings. Learn more about how we build our calculators.

Roof Framing Guide: Everything You Need to Know

Cutting rafters is one of the most technically demanding parts of residential framing. The geometry is straightforward once you understand it β€” but a mistake in layout gets repeated across every rafter in the building.

Common Rafter vs. Hip Rafter: What's the Difference?

A common rafter runs perpendicular from the ridge board to the wall plate β€” it's the simplest type and what this calculator handles. A hip rafter runs diagonally from the corner of a building to the ridge, and a jack rafter is a shortened common rafter that meets the hip. Hip roofs are more wind-resistant and look more finished, but they require three different rafter types and considerably more layout work. If your building has hip ends, calculate the common rafters here and add your hip and jack calculations separately. Read our hip roof framing guide for the full breakdown.

Choosing the Right Lumber Size for Your Roof

Rafter size depends on span, spacing, species, and snow load. The American Wood Council publishes span tables for every common species and size combination. As a general rule: 2Γ—6 rafters work for spans up to about 13 feet at 16-inch OC in most residential species grades; 2Γ—8 gets you to roughly 17 feet; 2Γ—10 handles up to 22 feet. Beyond that, you're looking at 2Γ—12 or engineered lumber. Check our rafter lumber sizing guide for a full table by species and load. Always verify against your local jurisdiction's adopted code β€” span table values vary.

Building Codes for Roof Framing in 2026

Most US jurisdictions have adopted the 2021 International Residential Code or are in the process of doing so. Key rafter requirements under IRC Chapter 8: rafters must bear on wall plates with a minimum 1-1/2 inch bearing length; birdsmouth seat cuts can't exceed 1/3 of the rafter depth; notches and holes are prohibited in the middle third of the span; and collar ties or ridge beams are required to resist ridge thrust. Some jurisdictions add local amendments, especially for high-wind or high-snow zones β€” confirm requirements with your building department before framing. See our building code guide for a state-by-state overview.

DIY Rafter Cutting: Safety and Precision Tips

A circular saw and a framing square are all you technically need, but a miter saw (for plumb cuts) and a dedicated rafter square make the job far faster and more accurate. Always cut a test rafter first and dry-fit it before cutting the full run. Mark your birdsmouth on the test piece, fit it to the ridge and plate, then check your HAP measurement. If it fits, use that rafter as your pattern and trace all subsequent cuts from it. Never skip the dry-fit β€” a 1/4-inch error in your birdsmouth gets amplified across the entire roof. For more detail, see our step-by-step rafter cutting guide.

Who Should Use This Rafter Calculator?

This tool works for anyone who needs accurate rafter dimensions β€” whether you're picking up a saw tomorrow or just planning a project months from now.

Residential contractors and framers use it to generate a cut list before the lumber delivery. Enter the building dimensions, print the results, and hand them to the crew. No more re-deriving the math on site when you can verify it here in 30 seconds.

DIY homeowners building a garage, workshop, or backyard shed are the most common users. Most residential DIYers have the skills to frame a simple gable roof β€” the hard part is the geometry. This rafter calculator removes that barrier. You still need to verify against your local building code and pull a permit where required, but you'll walk into that process with confidence.

Carpentry students and apprentices use it as a learning tool. Try different pitch values and watch how the rafter length, birdsmouth depth, and HAP all change. It's a fast way to build intuition for how roof geometry works before you're on a job site under time pressure.

Home inspectors and estimators use it to quickly verify whether rafter dimensions on existing construction match what the plans call for β€” or to estimate material quantities for a project budget without needing a full set of drawings. If you're ever checking someone else's work, knowing what the numbers should be is half the job.

ToolSite Team

We build free, accurate calculators.