16 On Center Calculator

Last Updated: June 26, 2026

Calculate how many studs or joists you need at 16 inch on center spacing, with custom OC options, layout marks, and openings.

Total horizontal length of the wall, floor, or ceiling run.
Must be 2 or more.
Adds 2 king studs per opening.

16 On Center Formula

When you solve for the number of framing members, the calculator uses:

N = ceil(L / OC) + 1

When you solve for the spacing that fits a set number of members across a run, it uses:

OC = L / (N - 1)
  • N = number of studs or joists.
  • L = length of the wall, floor, or ceiling run in inches.
  • OC = on-center spacing in inches (the distance from the center of one member to the center of the next).
  • ceil = round up to the next whole number, because a partial bay still needs a full member.

The count formula divides the run by the spacing to find how many bays fit, then adds one member for the stud that starts the wall. The spacing formula works backward: with a fixed number of members, the gaps between centers equal the run divided by one less than the count. The optional openings, corner, and intersection inputs add framing the base formula does not cover: two king studs per opening, two extra studs per corner, and one extra stud per intersecting wall.

Studs Needed at Common Spacings

These counts assume a straight run with no openings or corners. Round your own length up to the next whole stud the same way.

Wall length12 in OC16 in OC24 in OC
8 ft (96 in)975
10 ft (120 in)1196
12 ft (144 in)13107
16 ft (192 in)17139
20 ft (240 in)211611
24 ft (288 in)251913

Where Each Spacing Is Used

SpacingTypical use
12 in OCHeavily loaded walls and floors, or where a stiffer finish is needed.
16 in OCThe standard for load-bearing walls; lines up evenly with 48 in drywall and sheathing.
19.2 in OCEngineered floor joists; gives five bays per 8 ft sheet.
24 in OCNon-load-bearing walls and advanced framing where code allows.

Example Problems

Example 1. You frame a 12 ft wall at 16 in on center. Convert the length to inches: 12 x 12 = 144 in. Apply the formula: ceil(144 / 16) + 1 = ceil(9) + 1 = 9 + 1 = 10 studs.

Example 2. A 20 ft wall has 2 doors and 1 window (3 openings) and 2 corners. The straight run at 16 in OC is ceil(240 / 16) + 1 = 15 + 1 = 16 studs. Openings add 3 x 2 = 6 studs and corners add 2 x 2 = 4 studs, for a total of 16 + 6 + 4 = 26 studs.

Frequently Asked Questions

Does 16 on center measure to the edge or the center of the stud?

To the center. You measure 16 inches from the centerline of one stud to the centerline of the next. In practice, crews often pull the tape to the leading edge of each stud and mark there, which keeps the centers a consistent 16 inches apart while making layout faster.

Why does the formula add one stud?

Dividing the length by the spacing counts the bays, or gaps, between studs. A run always has one more stud than it has bays because the wall starts and ends with a stud, so you add one to the bay count.

Does this work for floor joists and ceiling rafters?

Yes. The same spacing math applies to joists and rafters. Enter the total span as the run length and choose the on-center spacing your plan calls for. Remember the count covers only the repeating members, not headers, blocking, or rim joists.

16 On Center Calculator