{"id":61895,"date":"2021-05-14T11:10:48","date_gmt":"2021-05-14T09:10:48","guid":{"rendered":"https:\/\/wpcalc.com\/?p=61895"},"modified":"2026-09-30T18:32:28","modified_gmt":"2026-09-30T15:32:28","slug":"rafter-length","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/engineering\/rafter-length\/","title":{"rendered":"Rafter Length Calculator (Angle &#038; Pitch)"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Calculate Rafter Length from Roof Angle or Pitch<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"61895\" data-favorite-title=\"Rafter Length\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/engineering\/rafter-length\/\" data-favorite-excerpt=\"Calculate rafter length from roof pitch (e.g., 6\/12) or roof angle, with optional overhang. Enter span, overhang, and pitch or angle to get the exact rafter length in feet for cutting and framing.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-civil\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/engineering\/rafter-length\/\" method=\"POST\" class=\"calculator\" id=\"calculator-61895\" data-post=\"61895\"><fieldset class=\"fieldset-input\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">Rafter length using<\/label><div class=\"grid grid-cols-1\"><select id=\"field-1\" name=\"rafter_length_using\"><option value=\"1\">Pitch<\/option><option value=\"2\">Angle<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field has-term\" id=\"input-2\"><label for=\"field-2\">Overhang<\/label><div class=\"term\">V<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"overhang\" id=\"field-2\" aria-describedby=\"calc-unit-2\" step=\"0.01\" value=\"1\"\/><div class=\"unit\" id=\"calc-unit-2\">ft<\/div><\/div><div class=\"field has-term\" id=\"input-3\"><label for=\"field-3\">Roof span<\/label><div class=\"term\">R<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"roof_span\" id=\"field-3\" aria-describedby=\"calc-unit-3\" step=\"0.01\" value=\"20\"\/><div class=\"unit\" id=\"calc-unit-3\">ft<\/div><\/div><div class=\"field is-single has-term\" id=\"input-4\"><label for=\"field-4\">Pitch<\/label><div class=\"term\">P<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"pitch\" id=\"field-4\" aria-describedby=\"calc-unit-4\" step=\"0.01\" value=\"6\"\/><div class=\"unit\" id=\"calc-unit-4\">\/12<\/div><\/div><div class=\"field is-single has-term\" id=\"input-5\" hidden><label for=\"field-5\">Angle<\/label><div class=\"term\">A<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"angle\" id=\"field-5\" aria-describedby=\"calc-unit-5\" step=\"0.01\" value=\"30\"\/><div class=\"unit\" id=\"calc-unit-5\">\u00b0<\/div><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"61895\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Your Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Rafter length<\/span><span class=\"result-term\">L<\/span><\/span><span class=\"field-value\" id=\"result-1\" data-unit=\"ft\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"61895\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Rafter Length Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ L = V + \\frac{R}{2}\\cdot\\sqrt{1 + \\left(\\frac{P}{12}\\right)^2} \\]\n\\[ L = V + \\frac{R}{2\\cos(A)} \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(L\\) \u2014 total rafter length, including overhang (ft)<\/li>\n<li>\\(V\\) \u2014 rafter overhang, measured along the slope (ft)<\/li>\n<li>\\(R\\) \u2014 roof span, the full horizontal width covered by the roof (ft)<\/li>\n<li>\\(P\\) \u2014 roof pitch, expressed as rise per 12 inches of run (e.g., 6 means 6\/12)<\/li>\n<li>\\(A\\) \u2014 roof pitch angle in degrees<\/li>\n<\/ul>\n<p>The first formula uses the pitch ratio, the second uses the roof angle. Both give the length of one rafter from the ridge to the wall plate, plus the overhang.<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Rafter Length \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> a gable roof spans 20 ft (\\(R = 20\\)), has a 6\/12 pitch (\\(P = 6\\)), and each rafter extends 1 ft beyond the wall (\\(V = 1\\)).<\/p>\n<p>\\[ L = 1 + \\frac{20}{2}\\cdot\\sqrt{1 + \\left(\\frac{6}{12}\\right)^2} = 1 + 10\\cdot\\sqrt{1.25} = 1 + 11.1803 \\approx 12.18 \\text{ ft} \\]<\/p>\n<p><strong>Result:<\/strong> the rafter length is approximately <strong>12.18 ft<\/strong> (about 12 ft 2\\u2044 in). Using the angle method with the same roof: a 6\/12 pitch corresponds to an angle of about 26.57\u00b0, and \\(L = 1 + \\frac{20}{2\\cos(26.57^\\circ)} \\approx 12.18\\) ft \u2014 the same answer.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Rafter Length Calculator<\/h2>\n<ol>\n<li>In the <strong>Rafter length using<\/strong> dropdown, choose <strong>Pitch<\/strong> if you know the pitch ratio (e.g., 6\/12) or <strong>Angle<\/strong> if you know the roof slope in degrees.<\/li>\n<li>Enter the <strong>Overhang<\/strong> in feet \u2014 the part of the rafter that extends past the wall, measured along the slope. Enter 0 if the rafter ends at the wall plate.<\/li>\n<li>Enter the <strong>Roof span<\/strong> in feet \u2014 the total horizontal distance the roof covers. For a standard gable roof, the rafter covers half the span.<\/li>\n<li>If you chose Pitch, enter the rise per 12 inches of run (e.g., enter 6 for a 6\/12 roof). If you chose Angle, enter the slope angle in degrees instead.<\/li>\n<li>Read the <strong>Rafter length<\/strong> in feet, measured from the ridge to the tail of the rafter, including the overhang.<\/li>\n<\/ol>\n<h2>What Is Rafter Length and Why It Matters<\/h2>\n<p>A rafter is the sloped structural member that runs from the ridge of the roof down to the top plate of the wall, supporting the roof deck, underlayment, and covering. The <em>rafter length<\/em> is the distance along that slope \u2014 the actual board length you need to cut, not the horizontal run. Because the rafter is the hypotenuse of a right triangle formed by the run (half the span) and the rise, it is always longer than the run.<\/p>\n<p>Both formulas come from that right triangle. With the pitch method, a pitch of \\(P\\) means the roof rises \\(P\\) inches for every 12 inches of run, so the slope factor per unit of run is \\(\\sqrt{1 + (P\/12)^2}\\). With the angle method, the run is the side adjacent to the angle and the rafter is the hypotenuse, so \\(L = \\text{run}\/\\cos(A)\\). Carpenters often know this factor as the \"rafter multiplier\" \u2014 for a 6\/12 pitch it is about 1.118, meaning every foot of run needs about 13\\u2044 in of rafter.<\/p>\n<p>Getting the rafter length right matters for more than just cutting a board to size: rafters that are too short leave gaps at the ridge or the birdsmouth seat, while rafters that are too long waste lumber and can throw the eaves out of line. On a roof with many rafters, even a small error multiplied across dozens of pieces adds up to significant material waste and rework. That is why framers typically add a small allowance for the ridge cut and birdsmouth and verify layout with a test rafter before cutting the full set.<\/p>\n<h2>Assumptions, Limitations, and Practical Tips<\/h2>\n<ul>\n<li><strong>Symmetric gable roof:<\/strong> the calculator assumes a simple pitched roof where each rafter spans half the total span. For an asymmetric roof, use half the actual run of the side you are calculating instead of the full span.<\/li>\n<li><strong>Overhang measured along the slope:<\/strong> the value you enter for the overhang is added directly to the rafter length, so measure it along the slope, not horizontally.<\/li>\n<li><strong>No deduction for the birdsmouth:<\/strong> the result is the theoretical rafter line length. In practice, the birdsmouth cut removes material but the ridge plumb cut shortens the effective length, and these roughly offset \u2014 check against your framing square layout.<\/li>\n<li><strong>Buy longer stock:<\/strong> round up to the next available lumber length. In the example above, 12.18 ft means buying 14 ft boards and trimming, since 12 ft stock is slightly too short.<\/li>\n<li><strong>Check local codes:<\/strong> rafter size, spacing, and span limits depend on snow load, wind, and lumber grade. Once you know the length, verify the member size can span it, or use the <a href=\"https:\/\/wpcalc.com\/en\/engineering\/maximum-floor-live-load-capacity\/\">Maximum Floor Live Load Capacity Calculator<\/a> as a starting point for load checks.<\/li>\n<\/ul>\n<p>While planning the rest of the project, you may also find our <a href=\"https:\/\/wpcalc.com\/en\/engineering\/concrete-footing-slab-pours\/\">Concrete Footing\/Slab Pours Calculator<\/a> useful for the foundations that carry the roof loads, and the <a href=\"https:\/\/wpcalc.com\/en\/engineering\/floor-tile\/\">Floor Tile Estimator<\/a> for interior finishing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calculate rafter length from roof pitch (e.g., 6\/12) or roof angle, with optional overhang. Enter span, overhang, and pitch or angle to get the exact rafter length in feet for cutting and framing.<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[19],"class_list":["post-61895","post","type-post","status-publish","format-standard","hentry","category-engineering","tag-civil"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/61895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=61895"}],"version-history":[{"count":2,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/61895\/revisions"}],"predecessor-version":[{"id":66005,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/61895\/revisions\/66005"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=61895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=61895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=61895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}