A pergola on a deck needs its posts carried down to footings, either up through the deck or standing just beside it. Never fix the post bases to the composite boards alone. A roof presses down with its weight and pulls up in wind, and timber deck guidance says the supports under a deck can have to carry uplift into the ground, particularly where the deck has a roof1. Decide where the posts go before the deck frame is built, because adding them later means lifting boards and cutting into joists.

Can you build a pergola on a deck?

Yes, as long as the roof's loads go into the ground through posts and footings sized for them, and the deck boards carry none of it. Composite boards are a walking surface. One maker says its boards must not be used as part of the frame or as a structural element5. Another says outright that you can't drill and attach balustrade or pergola posts on or through its boards4.

The deck frame under the boards is a separate question. A deck's posts are sized from the span tables in AS 1684, the timber framing standard. Those tables size each post from the deck area, the roof area if there is one, the post's height and the timber's stress grade1. A frame sized for a deck alone wasn't sized for a roof, so I'd give the pergola its own posts and footings rather than hang it off the deck's bearers, unless an engineer has designed the two together.

In September 2018 a Whirlpool member, Radical Larry, planning to build their own merbau deck with a pergola to follow a year or two later, asked whether the pergola posts could simply be bolted onto the top of the finished deck6. The first reply, from oscargamer, was blunt: "The wind loading from the roof will rip it from the decking boards"6.

Should pergola posts go through the deck or beside it?

Either works if each post has a footing of its own. The choice changes the boards more than the roof.

Where the posts goWhat carries the roofWhat changes for the boards
Up through the deck, on their own footingsPosts and footings sized for the roofA cut-out at each post, with framing around it and a gap to the boards
Just outside the deck edge, on their own footingsPosts and footings sized for the roofNothing. The deck edge stays as built
Fixed to the deck frameThe deck's frame and footings, only if designed for the roofA cut-out at each post, or a base fixed through the boards where the maker allows it
Post bases fixed to the boards onlyOnly the screws in the boardsRuled out by each maker's guide cited here

Posts beside the deck are the simplest for composite. The boards run through to the edge without a cut, and the pergola can go up before or after the deck. The roof then has to reach past the deck edge to cover all of it, and the posts end up in the garden bed or on the lawn.

Posts through the deck put the roof exactly over the deck, but every post becomes a hole in the board layout. Set them out on the frame so each post comes up clear of the bearers, then trim the joists around it. In the same thread, fl360 put the setting-out plainly: plan the deck so that "the most likely areas for the post will be just the deck only, not with the supporting beams underneath"6.

A pergola can also hang off the house on one side. WoodSolutions' pergola notes describe attaching it with a ledger beam fixed to the wall or a cleat bolted through the fascia into the roof rafters2. The posts on the open side still need footings.

How do you fix a pergola post to a composite deck?

Fix the post, or its base, to something structural below the boards, then cut the boards around it. Where the makers differ is whether the fixings can pass through the boards on the way down.

Ekodeck says structural elements including pergolas shouldn't be fastened to its decking only. Its manual wants them fastened through the decking to the subframe or other adequate structural support, with enough clearance around any fixing through the boards to let them expand3. NewTechWood rules out drilling on or through its boards for posts like these, and has you fix them to the sub-frame and cut the boards around them4. Fixing to the frame below board level and cutting the boards around the post satisfies both makers. I'd build it that way whichever board you choose. If your board's guide does allow a base through the boards, drill the holes in the boards larger than the fixings so the boards can still move.

Around each post, frame in blocking between the joists so every cut board end has timber under it to fix to. Then leave a gap between the boards and the post. Ekodeck asks for a sufficient gap to posts, walls and other solid structures so the boards can expand and contract without damaging themselves or what they meet3. One maker's fixing table gives 6 mm as the minimum end gap where its boards meet a solid structure5. Use the figure in your own board's guide, and set it for the temperature on the day. The expansion gaps guide covers the makers' figures and why the day's temperature changes them. A border of boards around each post hides the cut ends and the gap, as long as the blocking under it is in place before the boards go down.

Why does a pergola roof need proper footings?

Because a roof pulls up as well as pushing down. WoodSolutions' deck design guide says the supports under a deck transfer horizontal and vertical loads into the ground, sometimes including uplift forces, particularly where the deck is covered with a roof1. Wind getting under a roof lifts it, and that pull has to go down the posts into something heavy enough to hold it. A post base screwed into a board holds only as well as the screws in that board.

Bracing is the other half. The same guide says deck posts need to be braced, either with cross-bracing between posts or as cantilevered stumps1. Free-standing pergolas need their posts permanently braced to the beams and rafters, with knee braces fixed front and rear2. For a free-standing pergola, WoodSolutions recommends posts set in the ground, in holes 350 mm across and 900 mm deep, with the posts standing on sole plates and concreted in2.

Those figures are for a basic timber pergola. A solid roof catches more wind than open rafters, and the right post and footing sizes depend on your site's wind. I'd have the posts and footings for any roofed pergola sized by an engineer, and I'd check with the council before building, because a pergola can need a permit2.

Should you build the deck and pergola together?

Plan them together even if you build the pergola later. Most of the cost of getting it wrong sits in the frame, and a frame is cheap to change on paper.

If the pergola is a year or two away, put its footings in while the ground is open and the deck frame is going up, built to the engineer's design with the post connection it specifies. Tarielle's reply to the original poster in that 2018 thread was the simplest version: "Put your posts in first then the deck around"6. If you'd rather not have bare posts standing on the deck for a year, mark each footing on the deck plan, frame the blocking around it, and leave the boards whole over the top until the posts arrive. You'll cut those boards later, but the frame under them will already be right.

Setting out the deck and pergola together also settles the roof line. A roof that falls away from the house needs height at the wall end, and the deck level decides how much headroom is left under the low edge. If you're still deciding on the deck's shape, my guide to deck ideas covers outlines, levels and where shade fits in. How to build a deck frame for composite decking covers the bearers and joists the posts have to work around.

What changes for composite boards under a pergola?

Shade changes how the boards feel and how they weather. A pergola can be laid out to let in winter sun and keep out summer sun, and shaded composite is easier on bare feet in January. The guide on why composite decking gets hot covers colour and sun.

A part roof can also leave two halves of one deck weathering differently. One maker's fixing instructions require the brushed, lighter face of its boards to face up wherever the deck is partially under a roof or cover, and allow either face on a fully exposed deck5. Ask your board's maker whether its guide says anything similar before the boards are fixed, because turning them over afterwards means lifting them.

Under a solid roof the boards stay drier, but they don't stay clean. Ekodeck says its boards need periodic cleaning, especially in undercover or alfresco areas, and that mould is often caused by constant moisture and shade3. A shaded corner that never dries is where I'd look first, and the guide to cleaning composite decking covers mould.

Rain changes too. A roof sheds its water in a line along the low edge, and without a gutter that line falls on the deck and splashes dirt back onto the boards. I'd give a solid pergola roof its own gutter. A shade-cloth or open-rafter pergola lets the rain through, and the deck under it behaves like any open deck.

If the roof is glass or clear acrylic, one more note from Ekodeck applies. In rare cases sunlight reflected or refracted through glass or perspex can concentrate on the boards and discolour or damage them, and the maker doesn't treat that as a product fault3.

What I'd do

Decide on the pergola before the deck frame is designed, even if you won't build it for a while. Put the posts on their own footings, beside the deck if you can live with posts on the lawn, or through it with blocking around each one if you can't. Have an engineer size the posts and footings for a roofed pergola. Fix nothing to the boards. Cut them around each post with the gap your board's guide asks for, and trim the cut. Put a gutter on any solid roof that falls towards the deck.

To mark the posts on a plan, open Advanced mode in the designer and use the cut-out tool's Post option wherever a pergola post comes through the deck. The frame plan then works around each one. It won't draw the pergola or size its footings, and what it gives you is a concept plan to take to your builder or engineer before anything is ordered.