The timber you need for a pergola is a decay-resistant or pressure-treated structural species sized for the span and loads, with stainless or hot-dip galvanized fasteners; in most North American garden pergolas that means pressure-treated southern yellow pine, western red cedar, Douglas fir (treated where required), or a naturally durable species such as white oak or black locust, chosen for the climate and whether the wood will be painted, stained, or left bare. "What timber" is really three linked decisions—species durability, structural grade and dimensions, and moisture/ground-contact detailing—and the right answer changes with span, snow load, soil contact, and finish. This answer is general guidance, not a stamped structural design; for a large, roofed, or snow-loaded pergola, have a local engineer or building department review spans and footings.

Separate the jobs the wood has to do

A pergola is not one piece of timber performing one function. It has posts carrying vertical load and often embedded in or anchored to the ground; beams (girders) spanning between posts; rafters spanning between beams; and often purlins or slats across the rafters. Each element sits in a different moisture and load environment, and the timber choice should follow the exposure.

Posts and any ground-contact wood: the highest decay risk, because they wick moisture from soil and concrete and sit in splash zones. Use ground-contact-rated pressure-treated lumber or a genuinely durable heartwood species, and avoid untreated sapwood. Beams and rafters: exposed to rain and sun but not buried; a lower decay hazard than posts but still "above ground, exposed." Structural capacity and stiffness matter here because these carry the span. Slats, lattice, and decorative infill: often the least structural, but they weather fastest because they are thin and have many end grains and joints. Cedar, cypress, or treated pine work well; thin untreated softwood slats in a wet climate will cup and rot quickly.

The common mistake is to pick one species for the whole structure because it looks nice. A cedar pergola with cedar posts set in soil may look beautiful and fail at the post base in a decade, while treated pine posts with cedar beams and rafters give durability where it matters and appearance where it shows.

Species by durability and typical use

Pressure-treated southern yellow pine (SYP). The default North American structural choice. It is strong, widely available, relatively inexpensive, and sold in the dimensioned sizes pergolas need (4x4, 6x6, 2x6, 2x8). The treatment—not the pine itself—provides decay and termite resistance. Modern residential treatment is typically copper-based (for example alkaline copper quaternary, ACQ, or copper azole, CA), and lumber is labeled for its use category: "ground contact" versus "above ground." For posts, buy ground-contact-rated material; for beams and rafters, above-ground-rated is usually acceptable but ground-contact-rated is a reasonable upgrade in wet climates. Treated pine takes paint and stain well after it dries, though fresh treated wood is wet and needs to dry before finishing. It is not naturally rot-resistant, so the rating label is the whole point.

Western red cedar. Naturally decay-resistant heartwood, dimensionally stable, light, and attractive in a natural or lightly stained finish. It is a fine choice for beams, rafters, and slats, especially where appearance matters. Its weakness is structural: cedar is relatively soft and less stiff than pine or Douglas fir at the same size, so long spans may need deeper or larger members, and posts should be sized generously. Cedar also has a lot of sapwood in some commercial grades, and sapwood is not durable—so grade and heartwood content matter. It is a poor choice for direct soil contact unless it is all heartwood or protected with a barrier and drainage detail.

Douglas fir. Strong and stiff, a good structural species for beams and rafters, but the heartwood durability varies and much of the commercial supply is not naturally decay-resistant. In many markets it is available pressure-treated for exterior use; untreated Douglas fir in a wet, exposed application is a poor long-term bet. Use it treated where it will get wet, or in a dry climate with a good finish and detailing.

White oak and black locust. Genuinely durable heartwoods, excellent for posts and heavy structural members, and beautiful when left bare. White oak is dense, strong, and rot-resistant; black locust is extremely durable in soil and is traditional for fence posts. Downsides: cost, availability, weight, difficulty working (they are hard on tools and fasteners—pre-drill), and movement. These are choices for people who want a long-lived, unpainted structure and are willing to pay and to source carefully. Red oak is not a substitute—its heartwood is much less decay-resistant than white oak.

Other regionally sensible options. Cypress (especially old-growth heartwood) is durable and stable in the southeastern U.S.; larch and some cedars are used in cooler regions; ipe and similar dense tropical hardwoods are extremely durable but heavy, expensive, and raise sustainability and tool-wear questions. In the U.K., Australia, and New Zealand, treated pine and local durable species (for example macrocarpa, spotted gum, or merbau, depending on market) are common, and the treatment/durability labeling system differs—so read the local grading and treatment marks rather than importing a U.S. rule of thumb.

Grade and structural sizing

Species is only half the structural story. Lumber is graded for strength and appearance (for example "No. 2" structural grades versus appearance grades), and a pergola's beams and rafters must be sized for the span and the load—dead load of the members, plus snow or wind where applicable. Rules of thumb exist (a common one is beam depth roughly equal to span divided by a factor, or rafter sizing tables for a given spacing), but they assume specific species, grades, spacing, and loads, so they are not universal. Two practical points:

Span tables and local code. Many jurisdictions publish span tables for deck and pergola framing by species, grade, and member size. Use the table that matches your actual species and grade, not a generic chart. A pergola that carries no roof and only slats has a lighter load than one with a solid roof or climbing plants and snow, so the "pergola" label alone does not fix the sizing. Posts and footings. Post size is driven by height, load, and bracing, and the footing/anchor detail matters as much as the wood. A 4x4 post is common for small garden pergolas; taller or loaded structures often use 6x6. Posts should be anchored above the concrete with a metal base or set with a barrier and drainage so water does not sit at the wood-concrete interface.

Ambiguity to flag: if your question is really "what size lumber," the answer depends on span, spacing, snow load, and whether the pergola is roofed—none of which the query supplies. If it is "what species," climate and finish decide. If it is "what grade," the structural tables and local code decide.

Fasteners, joinery, and finish interact with species

The timber choice and the hardware must be compatible. Treated lumber—especially copper-based treatments—corrodes standard steel and even some galvanized fasteners faster than untreated wood, and the corrosion risk rises in wet exposures. Use stainless steel or hot-dip galvanized connectors rated for treated lumber, and check the manufacturer's compatibility statement. This matters most at post bases and where water collects.

Species also affects joinery. Dense hardwoods such as white oak and ipe should be pre-drilled to avoid splitting; cedar and pine are softer and easier to fasten but dent and compress more. Movement differs: cedar and pine move with moisture, hardwoods move less but are heavier. If you plan to paint, treated pine and Douglas fir take paint well; cedar and cypress can be left natural or stained. A clear film finish on an exterior pergola is high-maintenance almost everywhere; penetrating stains and oils are more forgiving.

Detailing does more for longevity than species alone. End grain wicks water, so cap or slope cuts, keep joints from trapping water, leave gaps for drainage, and keep wood out of soil where possible. A durable species installed with water-trapping details will still fail; a moderately durable treated pine installed with good drainage and air flow can last a long time.

A practical way to decide

1: Decide exposure first. Ground-contact posts need ground-contact-rated treated wood or a durable heartwood. Above-ground beams and rafters need structural capacity plus weather resistance. 2: Pick species by climate and finish. Wet, humid climates reward treated pine and durable heartwoods; dry climates tolerate a wider range with good detailing. Bare natural look points to cedar, cypress, white oak, or black locust; painted look points to treated pine or Douglas fir. 3: Size from tables, not guesses. Match species, grade, member size, spacing, and span to a local span table or an engineer's review, and account for snow, wind, and any roof or heavy planting. 4: Match hardware and detailing to the wood. Stainless or hot-dip galvanized fasteners for treated lumber; pre-drill hardwoods; keep posts drained and above soil where the design allows; finish with a penetrating product suited to the species. 5: Check local rules. Permits, frost depth for footings, and span requirements vary by jurisdiction; confirm before buying.

If you tell me your climate, the pergola's dimensions and span, whether it will be roofed or carry snow, and whether you want paint or a natural finish, the species and sizing recommendation can be narrowed considerably—those four facts, not the word "pergola," are what determine the timber.