Deck Joist Calculator

How we build and test

Enter the deck width along the house, the joist length and the on-center spacing to get the number of joists, the board length to buy, the rim and ledger boards and the joist hangers.

The side the joists are spaced along.

Ledger to outer rim, including any cantilever past the beam.

Set by the decking. IRC Table R507.7 allows 8 to 24 in depending on board thickness, direction and span.

Deck type
$

Joists needed

Enter the deck width and the joist length.

What this calculator does

  • Number of joists from the deck width and on-center spacing
  • Board length to buy, rim and ledger boards, and joist hangers
  • Total framing lumber in linear feet and joist cost

How to use the deck joist calculator

  1. Measure the deck width along the ledger or beam. This is the dimension the joists are spaced along.
  2. Enter the joist length from the ledger to the outer rim, including any cantilever past the beam.
  3. Pick the spacing. Under IRC Table R507.7, 16 in on center is the limit for 1 1/4 in thick (5/4) wood decking laid square to the joists when each board crosses three or more joists. Diagonal boards need closer joists, and composite boards follow the maker’s instructions. See the table below.
  4. Choose whether the deck hangs from a ledger on the house or stands free on two beams.
  5. Add a price per joist if you want a cost.

Formulas

Joists = deck width (in) ÷ spacing (in), rounded up, + 1
Board length = joist length rounded up to the next even foot (8 ft minimum)
Joist lumber (linear ft) = joists × board length
Rim board = deck width
Ledger = deck width
Joist hangers = joists (one per joist at the ledger)

The extra joist closes the last bay, so both ends of the deck get a joist. Framing lumber is stocked in 2 ft steps from 8 to 20 ft, which is why the joist length is rounded up to an even number. This calculator counts and measures boards. It does not size them: joist depth and the longest allowed span come from IRC Table R507.6 or your local code, and they change with the wood species, the grade, the spacing and the cantilever.

Worked example: a 16 ft wide deck with 12 ft joists at 16 in

  1. Width in inches: 16 × 12 = 192 in.
  2. Joists: 192 ÷ 16 = 12 bays, plus 1 = 13 joists.
  3. The joists are 12 ft long, so buy 12 ft boards: 13 × 12 = 156 linear ft.
  4. One rim board of 16 ft and one ledger of 16 ft bring the total to 156 + 16 + 16 = 188 linear ft of framing lumber.
  5. Hangers: one per joist at the ledger, so 13 joist hangers.

Joists needed by deck width

Deck width 12 in on center 16 in on center 24 in on center
8 ft 9 7 5
10 ft 11 9 6
12 ft 13 10 7
16 ft 17 13 9
20 ft 21 16 11
24 ft 25 19 13

Picking the joist spacing

The decking decides the spacing. Table R507.7 of the 2021 International Residential Code gives the maximum on-center joist spacing for wood decking. It depends on the thickness of the boards, whether they run square to the joists or on a diagonal of up to 45 degrees, and whether each board is single span or multiple span. A board supported by only two joists is single span. A board that crosses three or more joists is multiple span.

Wood decking Square to joists, single span Square to joists, multiple span Diagonal, single span Diagonal, multiple span
1 1/4 in thick (5/4) 12 in 16 in 8 in 12 in
2 in thick (nominal) 24 in 24 in 18 in 24 in

Most deck boards cross three or more joists, so the multiple span columns apply to them. Short boards that reach across only two joists, such as fill-in pieces and picture-frame borders, fall under the tighter single span columns. The table allows a different span for 1 1/4 in decking when an accredited lumber grading or inspection agency provides one. Composite and PVC boards are not in the table: the code sends them to the maker’s installation requirements, which often ask for closer joists under diagonal runs and stair treads. Closer spacing also lets a given joist size span a little farther.

Joists that hang between a ledger and a rim board are cut about 3 in shorter than the deck depth, because the ledger and the rim are each 1 1/2 in thick. Crown every joist up before you fasten it.

Questions

How many joists do I need for a 12 × 12 deck?

At 16 in on center a 12 ft wide deck needs 10 joists: 144 ÷ 16 = 9 bays, plus 1. At 12 in on center it needs 13, and at 24 in on center it needs 7. Add the rim board and the ledger, 12 ft each.

How far apart should deck joists be?

No farther than the decking allows. For 1 1/4 in thick (5/4) wood decking, IRC Table R507.7 allows 16 in on center when the boards run square to the joists and cross three or more of them, and 12 in when they run diagonally. Boards that span only two joists drop to 12 in square and 8 in diagonal. Wood decking 2 in thick can go to 24 in, except single span diagonal boards, which are limited to 18 in.

What size joists do I need for a deck?

That depends on the span, the spacing and the lumber species and grade. Look up the span in IRC Table R507.6 or your local deck guide, or ask the building department. A wider spacing always shortens the span a joist is allowed to cover.

Does every joist need a hanger?

IRC Section R507.6.1 says a joist that frames into the side of a beam or ledger board shall be supported by an approved joist hanger, and that includes the two end joists. Joists that bear on top of a beam do not need hangers, but they still have to be fastened to it: the same section calls for a mechanical connector on a single-ply beam and the code nailing schedule on a multiple-ply beam.

Sources

  1. International Residential Code (2021), Chapter 5, Section R507 Exterior Decks, including Tables R507.6 and R507.7, International Code Council.
    Used for: Table R507.6 for maximum deck joist spans, Section R507.6.1 for joist hangers where joists frame into the side of a beam or ledger, and every figure in Table R507.7, maximum joist spacing for wood decking: 1 1/4 in thick wood 12 in (single span) or 16 in (multiple span) perpendicular to the joists and 8 in or 12 in diagonal; 2 in thick wood 24 in perpendicular and 18 in (single span) or 24 in (multiple span) diagonal, with the footnotes on the 45 degree limit and on single and multiple span.
  2. DCA 6: Prescriptive Residential Wood Deck Construction Guide (2015 edition, based on the 2015 International Residential Code), American Wood Council.
    Used for: Table 2 maximum joist spans and overhangs at 12, 16 and 24 in on center, a ledger of at least 2×8 nominal, and Table 3A joist hanger vertical capacities.

Related calculators