Engineering calculator
Pergola calculator
A freestanding 12 × 10 ft pergola in treated southern pine: 2 × 8 rafters 16 in on center span up to 11 ft 10 in, so they clear the 10 ft between the beams; each beam of two 2 × 12s may span 9 ft 5 in between posts, so two posts per beam 9 ft apart with 18 in tails — four 6 × 6 posts on four footings. The spans are from the IRC deck tables, conservative for an open pergola. Enter yours for the rafters, beams, posts, footings, connectors, cut list, drawings and a 3D model.
Size your pergolaQuick answers
How far apart should pergola rafters be?
Pergola rafter spacing and span: 12, 16 or 24 in on center, and the spacing sets how far each size may span. The rule: the rafter span S, beam to beam, must not be more than the table span for that size at that spacing (IRC Table R507.6, read for an open pergola). Southern pine 2 × 8s span 13 ft 1 in at 12 in, 11 ft 10 in at 16 in and 9 ft 8 in at 24 in. So a pergola 10 ft between beams takes 2 × 8s at 16 in (10 ft ≤ 11 ft 10 in); at 24 in it needs 2 × 10s, which span 11 ft 5 in. Rafters closer together carry less each, so they can be smaller or span farther.
Pergola rafter span chart
Largest rafter span, beam center to beam center, for each size and spacing, in the three species groups of the IRC deck tables: No. 2 grade, wet service, 40 psf live load plus 10 psf dead load.
| Rafter and spacing | Southern pine | Doug fir, hem-fir, SPF | Redwood, cedar |
|---|---|---|---|
| 2 × 6 at 12 in | 9 ft 11 in | 9 ft 6 in | 8 ft 10 in |
| 2 × 6 at 16 in | 9 ft | 8 ft 4 in | 8 ft |
| 2 × 6 at 24 in | 7 ft 7 in | 6 ft 10 in | 6 ft 10 in |
| 2 × 8 at 12 in | 13 ft 1 in | 12 ft 6 in | 11 ft 8 in |
| 2 × 8 at 16 in | 11 ft 10 in | 11 ft 1 in | 10 ft 7 in |
| 2 × 8 at 24 in | 9 ft 8 in | 9 ft 1 in | 8 ft 8 in |
| 2 × 10 at 12 in | 16 ft 2 in | 15 ft 8 in | 14 ft 11 in |
| 2 × 10 at 16 in | 14 ft | 13 ft 7 in | 13 ft |
| 2 × 10 at 24 in | 11 ft 5 in | 11 ft 1 in | 10 ft 7 in |
| 2 × 12 at 12 in | 18 ft | 18 ft | 17 ft 5 in |
| 2 × 12 at 16 in | 16 ft 6 in | 15 ft 9 in | 15 ft 1 in |
| 2 × 12 at 24 in | 13 ft 6 in | 12 ft 10 in | 12 ft 4 in |
Above 40 psf ground snow the spans get shorter (the calculator reads the 50, 60 and 70 psf rows). A rafter tail past the beam is limited by the table's cantilever column, which allows about a quarter of the back span and less for a small rafter on a long span; the calculator checks it against that column.
Beams and posts
Pergola beam span chart
A pergola beam's span is its post spacing, and how far it may go depends on how much roof it carries: the longer the rafters that land on it, the closer the posts. Read the column for your rafter span (beam to beam); a span between columns is read in the next one up. Southern pine, No. 2, 40 psf live plus 10 psf dead, from IRC Table R507.5(1).
| Beam | 8 ft rafters | 10 ft rafters | 12 ft rafters | 14 ft rafters | 16 ft rafters |
|---|---|---|---|---|---|
| two 2 × 6s | 5 ft 11 in | 5 ft 4 in | 4 ft 10 in | 4 ft 6 in | 4 ft 3 in |
| two 2 × 8s | 7 ft 7 in | 6 ft 9 in | 6 ft 2 in | 5 ft 9 in | 5 ft 4 in |
| two 2 × 10s | 9 ft | 8 ft | 7 ft 4 in | 6 ft 9 in | 6 ft 4 in |
| two 2 × 12s | 10 ft 7 in | 9 ft 5 in | 8 ft 7 in | 8 ft | 7 ft 5 in |
| three 2 × 8s | 9 ft 6 in | 8 ft 6 in | 7 ft 9 in | 7 ft 2 in | 6 ft 8 in |
| three 2 × 10s | 11 ft 2 in | 10 ft | 9 ft 2 in | 8 ft 6 in | 7 ft 11 in |
| three 2 × 12s | 13 ft 3 in | 11 ft 10 in | 10 ft 9 in | 10 ft | 9 ft 4 in |
Posts per beam: n = ⌈(L − 2t) ÷ max⌉ + 1 for a beam of length L with tails t past the end posts. A 16 ft pergola beam of two 2 × 12s carrying 10 ft rafters, with 18 in tails: (192 − 36) ÷ 113 = 1.4, so 3 posts, 6 ft 6 in apart. The tails themselves may be up to a quarter of the post spacing (R507.5). For a single beam over a wider opening, an LVL or an engineered beam is the usual answer; see the beam span calculator.
Pergola post size
IRC Table R507.4 limits a post's height (top of footing to underside of the beam) by the area of roof it holds up. At 40 psf a southern pine 4 × 4 may stand 13 ft 8 in for 40 sq ft but only 6 ft 9 in for 140 sq ft; a southern pine or Douglas fir 6 × 6 reaches 14 ft at every area up to 160 sq ft, which is why 6 × 6 is the usual pergola post. Redwood and cedar 4 × 4s are not permitted past 100 sq ft.
The code
Where the pergola span tables come from
The IRC has no pergola span table. This page reads an open pergola as an exterior deck frame and uses the IRC 2021 deck tables, which are written for outdoor, wet-service lumber and carry 40 psf live load (or 50 to 70 psf ground snow) plus 10 psf dead load. A flat roof member carrying up to 200 sq ft needs 20 psf of roof live load (IRC 2021 Table R301.6), so a deck table is the conservative choice. The tables, from the 2021 IRC as printed in the 2021 Seattle Residential Code:
| Member | Table | What it gives |
|---|---|---|
| Rafters | IRC 2021 Table R507.6, Maximum deck joist spans | Span at 12, 16 and 24 in on center; largest overhang for the span |
| Beams | IRC 2021 Tables R507.5(1) (40 psf live load), R507.5(2) (50 psf ground snow), R507.5(3) (60 psf ground snow) and R507.5(4) (70 psf ground snow), Maximum deck beam span | Post spacing for the rafter span the beam carries |
| Posts | IRC 2021 Table R507.4, Deck post height | Post height for the area a post holds up |
| Ledger (attached) | IRC 2021 Table R507.9.1.3(1), Deck ledger connection to band joist | Spacing of ½ in lag screws or bolts for the rafter span, into a house floor band joist only. On a one-story house an 8 ft pergola ledger usually lands on wall studs or the top plate, where the table has no basis: have it engineered or build freestanding |
| Beam tails | IRC 2021 R507.5 | Up to a quarter of the beam span past the end post; plies nailed in two rows of 10d at 16 in |
| Footings | IRC 2021 R507.3.2, IRC 2021 R507.3.3 | At least 12 in below undisturbed ground; below the frost line where the frame is attached |
| Post to footing | IRC 2021 R507.4.1 | A post base (manufactured connector) or 12 in of embedment |
| Beam to post | IRC 2021 R507.5.2 | A post cap sized for the post and beam, or a notched post with two ½ in bolts |
A pergola with a solid roof is a roof, not a pergola. A solid cover (polycarbonate, metal, shingles) turns a pergola into a roof or patio cover: it collects snow, rain and wind uplift the open-frame reading here does not cover. Size it with an engineer or the building department. The same goes for heavy snow: past 70 psf ground snow the deck tables stop, and the calculator says so instead of guessing. Knee braces and rafter ties are shown as usual practice, not as code limits. Your town may amend any of this; the building department has the last word and may require a permit.
Tools for the job
What makes this job easier
Tools and materials that suit this kind of job. These are affiliate links: if you buy through one, Renovimo may earn a commission at no extra cost to you. It never changes the figures on this page.
Garvee
Pergola brackets for 6×6
Steel brackets that join 6×6 posts and beams without notching the posts.
Check price
Garvee
4 × 4 post base brackets, 8-pack
Holds each post on its footing clear of standing water, the lateral restraint R507.4.1 asks for at the foot.
Check price
VEVOR
Gas post hole digger, 52cc
Bores each footing hole to frost depth in a minute or two instead of an afternoon with a clamshell digger.
Check price
Dovoh
Outdoor laser level with receiver
Shoots one level line across every post, so the posts are cut at one height and the beams sit level.
Check price
Garvee
Miter saw stand
Holds a 14 ft rafter level at the saw, so every rafter and tail is cut to the same length.
Check price
Tilswall
Cordless paint sprayer, 20 V
Sprays stain into the gaps between rafters and slats, where a brush cannot reach.
Check price
Not the tool you were after? Browse the whole range at Garvee, VEVOR, Dovoh or Tilswall — the stores these picks come from.
Based on your result
What you'll need
For the pergola above: the lumber, the connectors at every joint, the footings and the tools to set it out.
- Posts
- Treated or naturally durable, rated for ground contact if buried
- Calculate above
- Beam boards
- Two or three plies per beam, nailed together
- —
- Rafters
- Tail-cut at the free ends
- —
- Top slats
- Shade only; screwed to every rafter
- —
- Post bases Amazon
- One per post, on the footing
- —
- Post caps Amazon
- Beam to post, sized for both
- —
- Rafter ties Amazon
- Hurricane ties, one per rafter at each beam
- —
- Joist hangers Amazon
- Attached pergola: each rafter at the ledger
- —
- Ledger lag screws Amazon
- Attached pergola: ½ in, hot-dip galvanized, staggered
- —
- Concrete mix Amazon
- 80 lb bags for the footings
- —
- Form tubes Amazon
- One per footing
- —
- Structural screws Amazon
- Knee braces, two each end
- —
- Stain or paint Amazon
- Exterior, in the color you picked
- —
- Post hole digger Amazon
- Or an auger for a lot of holes
- 1
- Post level Amazon
- Plumbs each post both ways at once
- 1
- Speed square Amazon
- Marks the rafter tails and brace cuts
- 1
As an Amazon Associate I earn from qualifying purchases.
The maths
Pergola rafter spacing and span formula
Each member is checked against its table in turn, from the top down: the rafters set the load on the beams, the beams set the posts, the posts set the footings.
rafter: S ≤ span(size, spacing) · overhang ≤ min(S ÷ 4, table)
beam: post spacing s ≤ span(beam, S)
posts per beam = ⌈(L − 2t) ÷ max⌉ + 1 · tail t ≤ s ÷ 4
post area = s × (S ÷ 2 + overhang)
footing load = area × (table row + 10) psf
footing area = load ÷ 1 500 psf soil
- 01
Pick the table row
IRC R507.1: the greater of 40 psf live load and your ground snow load, plus 10 psf dead load. Up to 40 psf of snow that is the 40 psf row; 41 to 70 psf reads the 50, 60 or 70 psf row; past 70 psf nothing in R507 applies.
- 02
Check the rafters
Look up the size at your spacing in Table R507.6 and compare with the span between beams. The tail past the beam, measured from the beam center, may be no more than the table's cantilever column for that span, which allows about a quarter of the back span; the calculator caps it at a quarter of your actual span.
- 03
Space the posts
Read Tables R507.5(1)–(4) at the rafter span (the next column up) for the beam's largest span. Divide the beam's length between the end posts by it and round up. The calculator reads the actual rafter span, not the shorter effective span of note j, so it never picks a smaller beam than the table allows.
- 04
Size the posts and footings
Each post holds up its share: the post spacing times half the rafter span plus the overhang (an end post: half a spacing plus the tail). Table R507.4 gives the tallest post for that area. The footing spreads the same load over the soil (R507.3.1), at 1 500 psf, the lowest presumptive value in Table R401.4.1, when you do not know your soil; a footing that needs more than a 24 in tube is not sized here.
- 05
Fasten it
Post bases at the foot (R507.4.1), post caps at the top (R507.5.2), a tie at every rafter crossing, knee braces at 45°, and on an attached pergola a flashed ledger with lag screws at the Table R507.9.1.3(1) spacing.
Good to know
Pergola rafter and beam questions
It depends on the beam and on how far the rafters it carries span. In southern pine, two 2 × 10s carrying 10 ft rafters may span 8 ft between posts, two 2 × 12s 9 ft 5 in, and three 2 × 12s 11 ft 10 in (IRC Table R507.5(1), 40 psf). With 12 ft rafters the same beams drop to 7 ft 4 in, 8 ft 7 in and 10 ft 9 in.
At 16 in on center in southern pine: 2 × 6 9 ft, 2 × 8 11 ft 10 in, 2 × 10 14 ft, 2 × 12 16 ft 6 in (IRC Table R507.6). Douglas fir and hem-fir span a little less, redwood and cedar less again. Wider spacing shortens every span.
For a beam 16 ft long with 18 in tails, two posts stand 13 ft apart, and in southern pine only three 2 × 12s span that, for rafters up to 8 ft (13 ft 3 in allowed). With three posts, 6 ft 6 in apart, two 2 × 8s carry rafters up to 10 ft (6 ft 9 in allowed) and two 2 × 10s up to 14 ft (6 ft 9 in). For a 16 ft clear span between two posts you need an engineered beam.
IRC Table R507.4 lets a 4 × 4 stand about 13 ft for a small pergola corner, but its height falls fast as the area grows, and redwood or cedar 4 × 4s are not permitted past 100 sq ft. In southern pine and Douglas fir a 6 × 6 reaches 14 ft for every area up to 160 sq ft at 40 psf, takes a two-ply beam in a post cap with room to spare, and stays straighter. Most pergolas use 6 × 6.
At least 12 in below undisturbed ground (IRC R507.3.2) and below your local frost line, which ranges from a few inches in the South to 4 ft or more in the North; the building department gives the figure. A pergola also has to resist wind lifting it, so a deeper footing with the post base anchored in it helps.
A freestanding pergola on post bases has nothing else to keep it square, so it needs knee braces at 45° in both directions: along each beam between post and beam, and across the frame from each post up to a rafter set over it. The IRC does not size them; the calculator counts and draws both. An attached pergola gets its cross-direction stiffness from the house, so it is braced along the beam only.
Open rafters and slats still catch snow, and the calculator reads the IRC tables for 50, 60 or 70 psf ground snow when you enter it. Past 70 psf the tables stop. If you plan to cover the pergola with panels, metal or shingles, it becomes a roof: snow drifts and wind uplift change, and it should be designed as a roof or patio cover. On an attached pergola, snow sliding or drifting off the house roof piles extra load on the rafters next to the wall, which the tables do not include.
As far as the cantilever column of IRC Table R507.6 allows, measured from the beam center: about a quarter of the rafter span, and less for a small rafter on a long span. A southern pine 2 × 8 may overhang 2 ft 6 in behind a 10 ft span, and none at all behind a span over 12 ft. The beam may overhang its end posts by a quarter of the post spacing (R507.5).
With a ledger, the IRC deck ledger table (R507.9.1.3(1)) gives ½ in lag screw or bolt spacing into a house floor band joist, with flashing over the ledger. That is where it applies: a pergola at 8 ft on a one-story house usually meets the wall at the studs or the top plate, which the table does not cover. There, have the connection engineered or build the pergola freestanding beside the house. Never hang a ledger on brick or stone veneer.
No. It reads the IRC deck span tables, which are conservative for an open pergola, and adds the usual connectors. A pergola carrying a hammock, swing, heavy plants or a solid roof, one taller than 14 ft, or one in high wind or snow country needs an engineer and, in many towns, a permit.
Building a deck under it? The joist span calculator and the beam span calculator size the framing; the footing calculator and the post hole calculator work out the concrete.