Pergola Rafter Spacing Calculator

Pergola Rafter Spacing Calculator

Calculate even spacing and material counts for your pergola roof layout.

Pergola Dimensions

Total distance covered by the rafters.

Exact On-Center Spacing

0"

Rafters Needed: 0

Layout Visualizer

Plan View (Top Down)

Clear Space

0"

Total Width

0"

Count

0

Between Centers

0"

Was this tool helpful?

Your feedback helps us build better tools.

What is a Pergola Rafter Spacing Calculator?

A Pergola Rafter Spacing Calculator solves the math problem of dividing a total span into even segments. Whether you are aiming for a specific shade density (e.g., 16" on center) or trying to fit a set number of rafters evenly, this tool provides the exact measurements for "On Center" (middle of board to middle of board) and "Clear Spacing" (gap between boards).

How to Space Rafters

3 Easy Steps

Plan your layout.

1

Total Width

Measure the full width of the area where the rafters will be placed, from the outside edge of the first to the outside edge of the last.

2

Define Board

Select the thickness of your rafter material (e.g., 1.5 inches for standard 2x6 or 2x8 lumber).

3

Calculate

Decide on a target spacing (e.g., 16") or a specific number of boards to get the exact layout math.

Calculation Methodology

The Spacing Math

To get perfectly even gaps, we calculate based on center-to-center measurements derived from the total span minus one rafter thickness.

Effective Span = Total Width - Rafter Thickness
Num Spaces = Effective Span / Target Spacing (Rounded)
Exact O.C. = Effective Span / Num Spaces
Clear Space = Exact O.C. - Rafter Thickness
Pergola rafter spacing formula diagram
Finished pergola with evenly spaced rafters

Spacing and Shade

The spacing of your rafters directly impacts how much shade your pergola provides. A standard spacing of 16-24 inches creates a nice balance of open sky and shadow lines.

For tighter shade without a solid roof, consider reducing spacing to 12 inches or adding smaller perpendicular slats (purlins) on top of the main rafters.

Frequently Asked Questions

Standard rafter spacing is typically 16 inches or 24 inches on center (O.C.). For pergolas where aesthetic is key, 12 to 16 inches is common to provide better shade.

"On Center" (O.C.) refers to the measurement from the center of one board to the center of the next. This ensures even load distribution, regardless of the board's thickness.

No, this calculator determines the spacing of the rafters across the width of the pergola. The overhang of the rafters themselves (sticking out past the beams) is a separate design choice.

Measure the total width of the area you want to cover with rafters. This is usually the length of the supporting beam.

Calculating the "Clear Space" (gap) is useful for aesthetic reasons and for cutting spacer blocks to place between rafters during installation, which speeds up the building process.

Common rafter sizes are 2x6 or 2x8 lumber. The span (distance between posts) dictates the necessary depth of the board for structural strength.

User Reviews

James D.

Carpenter

"This made my pergola project a breeze. The spacing is perfectly even."

Sarah M.

DIYer

"Nice app, but I wish I could switch to metric easily."

David R.

Contractor

"Helped me confirm the spacing for a client build. Reliable."

Mike L.

First-time User

"Fine, but I wish I could input the spacing and get the overhang."

Emily R.

Architect

"The visualization is simple but effective."

James Lee

Estimator

"Saves me a ton of time on small outbuilding jobs."

Robert K.

DIYer

"Fine, but I wish I could input the exact height I want instead of just the pitch."

John D.

Fabricator

"Nice app, but I wish I could switch to metric easily."

John Davis

Fabricator

"This tool was invaluable for my custom home project. The gauge price difference was clear to see."

Have Feedback or a Question?

We'd love to hear from you! If you have suggestions, questions, or just want to say hello, please get in touch.