Floor Framing Calculator – Joists, Rim Joist, Blocking & Subfloor

A floor framing calculator counts the joists, rim joist length, mid-span blocking and subfloor sheets for a floor or deck from its span, width and joist spacing, so you can build a materials list before you order lumber.

Floor Calculators

Floor Framing Calculator

Joists, rim joists, blocking and subfloor sheets for framing a floor or deck.

The starting values are a floor with 12 ft joists, 20 ft wide, joists at 16 in centers and one row of mid-span blocking. That gives 16 joists, 40 ft of rim joist, 15 blocking pieces and 8 subfloor sheets (4 × 8 ft). Replace them with your own dimensions and check the counts against your plan.

What the floor framing calculator counts

You enter four things: the joist span (the length of each joist), the floor width measured across the joists, the joist spacing, and whether you want one row of blocking at mid-span. The calculator returns the number of joists, the total length of rim (band) joist, the number of blocking pieces and the number of 4 × 8 ft subfloor sheets. It counts pieces, not lumber sizes. The joist depth comes from a span table or a joist check, because it depends on the span, spacing, species and load.

The floor framing formulas

Joists = ceil(Width ÷ Spacing) + 1

Rim joist length = 2 × Width

Blocking pieces = ceil(Width ÷ Spacing), when one row is selected

Subfloor sheets = ceil(Span × Width ÷ 32 ft² × 1.05)

Where:

  • Width = the floor width across the joists, so the joists are laid out along this dimension
  • Spacing = the on-center distance between joists
  • Span = the length of each joist
  • 32 ft² = the area of one 4 × 8 ft sheet, and 1.05 adds a 5% waste allowance

The extra joist is the one at the far end, because a row of bays always has one more joist than it has spaces. Blocking goes between each pair of joists, so there is one piece fewer than the joist count. The rim joist runs across the ends of the joists, one at each end, so it is two lengths of the floor width.

Worked example: the starting floor

Width = 20 ft = 240 in, spacing = 16 in

Joists = 240 ÷ 16 + 1 = 15 + 1 = 16

Rim joist = 2 × 20 = 40 ft

Blocking = 240 ÷ 16 = 15 pieces

Sheets = ceil(12 × 20 ÷ 32 × 1.05) = ceil(7.5 × 1.05) = ceil(7.875) = 8

Worked example: a floor that does not divide evenly

Now take a floor 21 ft wide with the same 12 ft joists and 16 in spacing. Width ÷ spacing = 252 ÷ 16 = 15.75, which rounds up to 16, so the floor needs 16 + 1 = 17 joists and 16 blocking pieces. The rim joist is 2 × 21 = 42 ft. The floor area is 12 × 21 = 252 ft², so sheets = ceil(252 ÷ 32 × 1.05) = ceil(8.27) = 9. The last bay is narrower than 16 in, which is normal. Lay out from one edge and let the final bay take up the difference.

Choosing the joist spacing

Common on-center spacings are 12, 16, 19.2 and 24 in. Closer spacing means more joists and a stiffer floor under a given load, while wider spacing saves lumber but needs thicker subfloor. Summaries of the 2024 International Residential Code list 19/32 in subfloor panels at 16 in centers and 23/32 in panels at 24 in centers. The joist size, spacing and span have to work together, so check them against a span table or a deflection check before you commit to a layout.

The usual spacings of 12, 16, 19.2 and 24 in all divide evenly into 96 in. That is why they are standard: the 8 ft length of a sheet is laid across the joists, so every sheet end lands on a joist centerline. If you choose an unusual spacing, the subfloor ends will not line up with the framing and you will need extra blocking under the joints, which adds to the lumber list the calculator gives you.

Rim joists and blocking

The code requires floor joists to be held plumb at their supports. Solid blocking, a rim (band) joist or a continuous header can do that, and the rim joist is the usual choice in platform framing. Summaries of the code also call for mid-span blocking or bridging in 2 × 10 and deeper joists at intervals of no more than 8 ft. One row at mid-span gives intervals of half the span, which meets that limit only up to a 16 ft span, so a longer span needs more rows than this calculator counts. Rules differ locally, so confirm them with your building department.

What the calculator leaves out

The count is for a plain rectangular floor. It does not include doubled joists under walls or around openings, joist hangers, ledgers, beams or girders, fasteners, adhesive or the lumber lost to crowned or split pieces. Ask your supplier for a few extra joists so you can cull bad boards, and add the framing for stairwells or cantilevers separately.

Frequently asked questions

How many floor joists do I need for a floor 20 ft wide at 16 in spacing?

The floor needs 16 joists: 240 in ÷ 16 in = 15 spaces, plus one more joist to close the last bay.

How is the rim joist length calculated?

The rim (band) joist closes the ends of the joists, so its total length is twice the floor width. A floor 20 ft wide needs 40 ft of rim joist, which the calculator reports as one total length.

Do I need blocking between floor joists?

Floor joists must be held plumb at their supports, and deeper joists need blocking or bridging along the span. Summaries of the code give a maximum interval of 8 ft for 2 × 10 and deeper joists, but local rules vary, so check them before you build.

How do I choose the joist size?

Use a span table from your building code or check the joist for bending and deflection. The joist size depends on the span, spacing, wood species, grade and load, which this calculator does not set for you.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 559