The Build Calculator

How to Build a Closet

Published November 25, 2026·Interior

Blueprint-style illustration of an 8 ft reach-in closet: a front-view cutaway of the framed wall with a 74-inch bifold opening, header, shelf and rod with hanging clothes, beside a plan view showing the 8 ft by 30-inch closet with its return wall and bifold doors.

To build a closet, you frame a short stud wall (and usually one return wall) with a door opening, hang and finish drywall, then add trim, doors, a shelf and a rod. A basic 8-foot reach-in closet takes two to three weekends for one person with a helper for raising walls, and the materials run roughly $560 to $1,050 depending on the doors you choose.

How much does it cost to build a closet?

Expect about $560 to $1,050 in materials for an 8-foot reach-in closet in the corner of a bedroom, with bifold doors, one shelf-and-rod run and paint. The doors are the biggest variable: hollow-core bifolds sit at the low end, while solid or mirrored doors cost far more.

The quantities below come from the worked example further down, times typical US unit prices. Prices vary by region and season, so treat these as approximate and check your local yard.

Item (8 ft reach-in closet)QuantityTypical cost
2×4 studs25$88–$125
2×4×16 plate stock3$27–$39
2×6×8 for the header2$16–$24
Nails or screws, adhesive, shims, corner beadLot$25–$50
Drywall, mud, tape, screws (148 sq ft at $0.50–$0.80)6 sheets$74–$118
Bifold doors for a 6 ft opening, with track1 pair$150–$350
Door casing and baseboardAbout 30 lin ft$40–$80
¾″ plywood shelves and 1×4 cleats1 sheet + 4 boards$66–$112
Closet rod, end sockets and a center bracket1 set$25–$55
Primer and paint1 gal each$50–$95
Approximate total$561–$1,048

If you'd rather hire out the drywall, the drywall calculator puts professional hanging and finishing at about $1.50 to $3.50 per sq ft, or roughly $222 to $518 for this closet's 148 sq ft. Lights and wiring are extra.

Closet dimensions: reach-in and walk-in sizes

A hanger with a shirt on it is a little under 2 feet across, and that drives every closet dimension.

Reach-in closets

  • Depth: aim for at least 24 inches clear inside, measured from the back wall to the inside face of the front wall. 30 inches to the outside of the framing gives you about 26 inches clear after drywall.
  • Width: anything from about 3 feet for a coat closet to 8 feet or more for a bedroom. Measure the rod length your clothes take now.
  • Opening: make it as wide as the wall allows. On a reach-in, anything you can't see from the doorway gets lost in the corners. An 8-foot closet with a 6-foot opening is a good balance.

Walk-in closets

  • Hanging on one side: 24 inches for the clothes plus an aisle of about 36 inches, so roughly 5 feet wide inside.
  • Hanging on both sides: 24 + 36 + 24 = 84 inches, or about 7 feet wide inside.
  • U-shaped: about 7 feet wide, with shelves in the corners, which are dead space for hanging.

Mark the closet on the floor with painter's tape and live with it for a day to check that doors, windows and furniture still clear it.

Do you need a permit to build a closet?

Many jurisdictions let you build a simple non-load-bearing partition without a permit, but plenty don't, so call your local building department before you buy lumber. Some details almost always matter no matter where you live:

  • Electrical: adding a light, switch or outlet usually needs a permit, and many places require a licensed electrician. Code also limits which fixtures can go in a clothes closet and how close they sit to shelves.
  • Don't block what the room needs: keep the closet clear of a bedroom's egress window, heating and return-air registers, the thermostat and smoke alarms.
  • Under-stair closets: codes commonly require the walls and underside of a usable space under a stair to be covered with ½″ drywall on the closet side. Ask what your inspector wants.

Materials and tools

For a reach-in closet built into the corner of a room:

  • 2×4 studs (92⅝″ precuts for 8-foot ceilings) and 2×4 plate stock; count them with the stud calculator
  • 2×6 stock and a strip of ½″ plywood for the header
  • 3″ framing nails or screws, construction adhesive and shims
  • ½″ drywall, joint compound, tape, drywall screws and corner bead
  • A bifold, sliding or prehung door set sized for your opening
  • Door casing and baseboard to match the room
  • ¾″ hardwood plywood or 1×12 boards for shelves, plus 1×4 cleats
  • A closet rod with end sockets and a center shelf-and-rod bracket
  • Drywall primer and paint
  • Tools: circular saw or miter saw, drill/driver, 4-foot level, stud finder, tape, chalk line, utility knife, drywall T-square, mud pan and knives
  • Safety glasses, hearing protection and a dust mask for sanding

Worked example: an 8-foot reach-in closet

Here are the numbers for a reach-in closet in the corner of a bedroom with 8-foot ceilings. The existing back wall and left wall stay as they are. You build an 8-foot front wall with a 6-foot bifold opening, plus a 2½-foot return wall on the right, so the closet is 8 feet wide and 30 inches deep to the outside of the framing. Inside, that leaves about 92 inches of width and 26 inches of depth after drywall. Each figure uses the linked calculator's formula, so your own closet will give matching results.

Studs and plates

Run each wall through the stud calculator separately at 16″ on center:

  • Front wall: 8 feet, 2 wall ends and 1 opening. Field studs are 96 inches ÷ 16 = 6, plus one = 7. Add 2 per end and 4 for the opening's king and jack studs, then 10% for culls: (7 + 4 + 4) × 1.1 = 16.5, so 17 studs. Plates are 8 × 3 = 24 linear feet, or two 16-foot 2×4s.
  • Return wall: 2.5 feet, 2 wall ends, no openings. 30 ÷ 16 = 1.875, round up to 2, plus one = 3. (3 + 4) × 1.1 = 7.7, so 8 studs. Plates are 7.5 linear feet, or one 16-foot 2×4.

That's 25 studs and three 16-foot plate boards. At $4.25 a stud, the studs come to $106.25. Layout studs that land inside the opening become cripples and blocking.

The door opening

A 6-foot bifold set (two 36-inch bifold doors) usually wants a rough opening of about 74 inches wide by 82½ inches high, using the same door-width-plus-2-inches rule as a prehung door. Bifold makers vary, so buy the doors first and use the number on their instruction sheet.

  • Header: 74″ + 3″ for two jack studs = 77″ long. Two 77-inch pieces don't fit in one 8-foot board, so buy two 2×6×8s and sandwich a ½″ plywood strip between the pieces to make the header 3½″ thick.
  • Jack studs: 82½″ − 1½″ for the bottom plate = 81″.
  • Side walls of the opening: 96 − 74 = 22 inches of wall is left, or 11 inches on each side when the opening is centered. That's room for an end stud, a king and a jack, with a little to spare.

Lumber in board feet

To compare yard prices or order by volume, total the list in the board foot calculator. 25 × 2×4×8 is 133.33 board feet, 3 × 2×4×16 is 32, and 2 × 2×6×8 is 16. That's 181.33 board feet of framing lumber.

Drywall

The two new walls get drywall on both sides. A neat shortcut: enter 8 for length, 2.5 for width and 8 for height in the drywall calculator, walls only, with 2 openings (the door opening counts once per side). The perimeter of an 8 × 2.5 rectangle times 8 feet is exactly both faces of both new walls: 2 × (8 + 2.5) × 8 = 168 sq ft. Less 10 sq ft per opening, that's 148 sq ft. Add 10% and divide by 32: 162.8 ÷ 32 = 5.09, so 6 sheets of 4×8, with about 9 lb of joint compound, 55 feet of tape and 1 lb of screws.

The calculator deducts only 10 sq ft per opening on purpose, and a closet front is mostly door, so 6 sheets is generous. Cut carefully and each face of the front wall comes out of one sheet (two 11-inch strips for the sides and one strip over the header), and each face of the return wall takes one. That's 4 sheets; the other 2 cover mistakes and an awkward ceiling line.

Shelves

Two shelves 92 inches long and 12 inches deep (one over the rod, one higher up) are 92 ÷ 12 × 2 = 15.33 sq ft. In the plywood calculator, that's 15.33 × 1.1 ÷ 32 = 0.53, so 1 sheet of ¾″ plywood. Rip it into four strips just under 12 inches wide and you have two spare shelves for shoes or a third level.

Paint

In the paint calculator, enter the same 8 × 2.5 × 8 footprint with 2 doors (one per side) and 2 coats. It subtracts 20 sq ft per door, so 168 − 40 = 128 sq ft, × 2 coats = 256 ÷ 350 = 0.7 gallons. Buy 1 gallon; since the real opening is bigger than a door, it stretches to the old walls inside the closet too. Primer for bare drywall covers 250 to 300 sq ft per gallon, so one gallon is plenty.

How to build a closet, step by step

  1. Lay it out. Snap chalk lines on the floor for the outside face of each new wall, and check the front wall is parallel to the back wall so the closet isn't wider at one end.
  2. Find the framing. Locate ceiling joists and wall studs with a stud finder. The new top plates fasten into joists, and the wall ends fasten into studs in the existing walls.
  3. Prep the floor. Pull back carpet and pad under the plates, and remove baseboard where the new walls meet the old ones.
  4. Build the front wall. Mark both plates together at 16″ centers, frame the door opening with kings, jacks and the header, and nail it together flat on the floor.
  5. Raise and anchor it. Tip it up, slide it to the line, plumb it, and nail the bottom plate to the floor framing and the top plate to the joists. Shim at the top if the ceiling dips.
  6. Build the return wall the same way and tie it into the front wall's end stud and a stud or blocking in the back wall.
  7. Cut out the bottom plate inside the door opening with a handsaw, flush with the jack studs.
  8. Rough in any wiring for a light, under permit, and get it inspected before drywall.
  9. Hang and finish drywall inside and out, then prime and paint.
  10. Install doors, casing and baseboard, then the shelf cleats, shelves and rod.

If the ceiling joists run parallel to the new wall and none sit above it, the top plate has nothing solid to grab. Add 2×4 blocking between the joists from the attic, or open a strip of ceiling drywall to put it in, before you raise the wall.

How to frame a closet

Closet walls are ordinary non-load-bearing partitions: 2×4 studs at 16″ on center between a bottom plate and a top plate. The stud calculator figures plates at 3 × the wall length for a doubled top plate; a non-bearing partition can use a single top plate where code allows.

In an existing room, the ceiling is rarely exactly where a precut stud expects. Measure floor to ceiling at each end, subtract 4½″ for three plates and about ¼″ so the wall tips up without binding, and trim precuts to that length. Our guide to framing a wall walks through layout, raising and the stud-length math in detail.

Where the new wall meets an existing wall, it needs a stud or blocking behind it to nail into. On a basement slab, use a pressure-treated bottom plate and concrete screws, as covered in our basement finishing guide.

Framing the closet door opening

The door type sets the rough opening, so pick it before you frame:

  • Bifold doors: the usual reach-in choice. They open almost the full width and come in pairs up to about 6 feet wide.
  • Sliding (bypass) doors: need no swing space, but only half the closet is open at a time.
  • Prehung swinging door: the usual choice for a walk-in, as long as there's floor space for it to swing.

In a non-load-bearing closet wall, the model code many US jurisdictions adopt generally allows a single flat 2×4 header, but a doubled 2×6 like the one in the example gives solid nailing for casing and the bifold track. If a thick floor like tile is going into the closet later, add its thickness to the rough opening height.

Drywalling and finishing a closet

Use ½″ drywall on closet walls, hung horizontally where it fits. Hang the long pieces first and save offcuts for the narrow strips beside the opening. Put corner bead on the outside corner where the front wall meets the return.

The drywall calculator handles the sheet count, mud, tape and screws. The outside faces the room, so finish it to match the existing walls: three thin coats of mud, then primer and two coats of paint. Our drywall installation guide covers hanging, taping and mudding step by step.

Want the closet to block noise between two bedrooms? Fill the new stud bays with unfaced batts before the drywall goes up. The soundproofing guide explains what actually helps.

Closet shelves and rods

The simplest closet system is a shelf on wood cleats with a rod under it. It's cheap and holds a lot of weight.

  1. Pick the heights. A common single-rod height is about 66 inches from the floor, with the shelf a couple of inches above. For double-hang, rods around 40 to 42 inches and 80 to 82 inches leave room for shirts on both.
  2. Mark the studs on the back and side walls, then snap a level line for the top of each cleat.
  3. Screw 1×4 cleats to the back and side walls, two screws into every stud.
  4. Mount the rod sockets on the side cleats so the rod sits about 12 inches out from the back wall.
  5. Add a center bracket. A long shelf and rod sag between the ends. On anything over about 4 feet, screw a shelf-and-rod bracket into a stud near the middle of the back wall.
  6. Set the shelves on the cleats and the bracket, and screw down through the top into the cleats.

Shelves from ¾″ hardwood plywood stay flat and paint well; nose the front edge with a strip of 1×2 to hide the plies and stiffen the span. Building shelves or a shoe rack from solid lumber instead? Price it in the board foot calculator, which lists typical pine at $2 to $4 per board foot and oak at $5 to $8.

How to build a walk-in closet

A walk-in closet is the same framing on a bigger scale: usually two or three new walls and a prehung door instead of bifolds. Size it with the 24-inch hanging depth and a 36-inch aisle from the dimensions section, and plan the door so it swings into the room or against a wall that has no hanging.

  • Count each wall separately in the stud calculator, then add up the studs and plate boards.
  • Built-ins: for a wall of shelves, total the panel area and let the plywood calculator add 10% and round up to whole sheets.
  • Lighting: a walk-in needs a light. Plan it before drywall and have it wired under permit, by a licensed electrician where required.

Paint a walk-in like any small room: enter its inside dimensions in the paint calculator with one door, then add primer for the new drywall.

Frequently asked questions

How much does it cost to build a closet?+

A DIY 8-foot reach-in closet with bifold doors, one shelf-and-rod run and paint typically costs about $560 to $1,050 in materials. Most of the swing is the doors: hollow-core bifolds are cheap, solid or mirrored doors cost several times more.

How deep should a closet be?+

Plan on at least 24 inches of clear depth inside a reach-in closet so hangers and shoulders fit without rubbing the doors. Measure the depth to the outside of the framing at about 30 inches and you end up with roughly 26 inches clear after drywall.

Do I need a permit to build a closet?+

Often not for a simple non-load-bearing partition, but it depends on where you live, and adding a light or outlet almost always needs an electrical permit. Call your local building department and describe the project before you start.

How high should a closet rod be?+

A common height for a single rod is about 66 inches from the floor, with the shelf a couple of inches above it. For double-hang, people usually set the rods around 40 to 42 inches and 80 to 82 inches.

How many studs do I need to build a closet?+

An 8-foot front wall with a bifold opening plus a 2½-foot return wall takes 25 studs and three 16-foot plate boards with 10% for culls. Run your own wall lengths through the stud calculator, one wall at a time.

More project guides