How to Install a Barn Door on Any Wall (and Keep It From Swinging)

Sliding barn door on a black metal rail in a bright modern living room

You can install a barn door yourself in a Saturday afternoon, and it is one of the best space-saving upgrades in a home. A barn door slides along a track above the doorway instead of swinging on hinges, so it needs no floor clearance at all. A standard 30-inch swinging door needs roughly 9 square feet of clear floor to open; a barn door needs none.

One thing decides whether the door glides for years or pulls out of the wall, and it is the mounting. The rail must anchor into wall studs or a solid header board, because drywall alone will fail under the weight of a door. This guide shows you how to measure, mount the rail, hang the door, and stop it from swinging.

Tools and Materials You Need Before You Start

Barn door track kit with rail, rollers, lag bolts, and floor guide laid out

You need a barn door, a sliding track kit, a drill and bits, a stud finder, a 4-foot level, a tape measure, a socket wrench, a pencil, a ladder, and safety glasses. The kit holds the rail, the rollers, the spacers, the lag bolts, the floor guide, the door stops, and the anti-jump discs. Finish the door first: sand, prime, and paint or stain every face and edge before you add the hardware.

Check the door against the kit before you buy. Most kits need a door at least 1-3/8 inches thick and carry up to 200 pounds. Match the kit to the door weight and thickness first, because a kit rated too light is the part that fails. Pick the style and finish after the sizes agree, not before.

Is a Barn Door Right for Your Doorway?

Open wall space beside a doorway measured for a sliding barn door

A barn door suits a doorway when you need the floor space back, the room is tight, or you want the look. It does not suit every doorway. Barn doors do not seal tightly, so they block little sound and offer almost no privacy lock. They also need clear wall space beside the opening, equal to the door’s width, for the door to slide into when open.

Check the wall before you commit. If the wall beside the opening holds a light switch, an outlet, or a window where the rail should go, you have a problem before you shop. Know your wall before you buy the door, because the rail path decides the whole job. Check the wall material too: finding studs and anchoring safely matters more here than on any other door job, because the whole door hangs from the rail.

Measure for a Sliding Barn Door

Measure the opening, then size the door and the rail from it. The door should run about 2 inches wider than the opening on each side, so 4 inches wider in total, which covers the opening fully when closed. Measure the height from the floor to the top of the opening, add about an inch for clearance at the bottom, and add the roller and track height on top.

Measure the wall space beside the opening. You need wall space equal to the door width, plus 1 to 2 inches on each side, for full movement. Mark the studs with tape and line the rail holes up with them. If the holes do not line up with studs, plan on a header board, which is a solid board about 1 inch thick and 4 to 6 inches tall, slightly longer than the track, anchored into the studs.

How to Install a Barn Door, Step by Step

Metal barn door rail being mounted level on a wall with lag bolts into studs

Mount the rail level into studs or a header board, attach the rollers to the door, hang the door on the rail, then fit the floor guide, the stops, and the anti-jump discs. Check level at every stage.

  1. Finish the door first. Sand, prime, and paint or stain it on all faces and edges, and let it dry fully before you add hardware.
  2. Mark the rail height. Measure up from the finished floor to the rail centerline, using the height your kit gives, often the door height plus 1-3/4 inches. Draw a level line across the wall.
  3. Mark the studs and the rail holes. If the holes miss the studs, mount a header board into the studs first and mount the rail to the board.
  4. Mount the rail. Hold it on the line, fit the spacers that hold the door clear of the casing, and drive the lag bolts through the rail and spacers into the studs. Check level across the full length before you tighten.
  5. Attach the rollers to the top of the door with the supplied bolts. Both rollers must sit at the same height, measured from the top of the door to the bolt center.
  6. Cut a groove in the bottom edge of the door for the floor guide, if your kit needs one, then lift the door onto the rail with a helper.
  7. Install the anti-jump discs on the rollers and tighten them fully, so the door cannot lift off the rail.
  8. Fit the floor guide so the door cannot swing out from the wall, then fit the door stops at both ends of the rail.
  9. Test the slide. The door should glide with one finger, stop without a clunk, and sit plumb when closed.
  10. Install the handle and any latch, then check the door once more after a day of use, because new hardware settles.

Account for the finished floor if it is not in place yet. A rail mounted for a bare subfloor sits too low once the flooring goes in, and the door drags.

How Much Does It Cost, and How Long Does It Take?

A barn door costs the door plus the kit, and the kit is the part people under-budget. Door prices vary widely by material and style, from a plain slab to a custom hardwood door, so check the listed price of the exact door and kit you plan to buy. Plan a Saturday afternoon for the install, and add drying time if you paint or stain the door first.

Barn door installation: what to plan for
Item What to plan Typical time
Door and track kit Check listed prices Ordered before the job
Header board, if needed A solid board, 1 inch by 4 to 6 inches 30 minutes
Rail, rollers, and hanging The core of the job 2 to 3 hours
Whole job Door + kit + hardware A Saturday afternoon

The cheapest kit is rarely the cheapest job. A rail that flexes, rollers that wobble, or a floor guide that bends will bring you back to fix a door that never glides right. Spend on the hardware and save on the door, not the other way around.

What Most People Get Wrong When They Install a Barn Door

Barn door rail bolted into a solid header board above a doorway

Most people get one thing wrong: they mount the rail into drywall. Drywall alone will fail under the weight of a door, and the rail pulls out, sometimes taking a sheet of drywall with it. Anchor every rail bolt into a stud or a header board, with no exceptions.

The second mistake is forgetting the wall space. A barn door needs a full door-width of clear wall beside the opening, and a light switch or an outlet in that space stops the job cold. Check the wall before you buy, not after the rail is up.

The third mistake is skipping the floor guide. Without it, the door swings out from the wall every time it moves, rubs the casing, and wears the rollers unevenly. Fit the guide, and the door tracks straight for years.

Keep the Barn Door From Swinging, and Keep It Quiet

Floor guide fitted at the bottom of a sliding barn door holding it to the wall

A barn door that swings usually has a missing or loose floor guide, or a rail that is not level. Check the guide first, then the rail with a level. A door that rattles usually has rollers that are not seated or anti-jump discs that were never tightened.

A barn door will never block sound like a swinging door, because it never seals. If the room needs quiet, a solid-core door helps a little, and Bob Vila explains how to soundproof a door by sealing its gaps, though a barn door’s gaps are part of its design. For the finish, painting a door before you hang it gives the smoothest result, per Family Handyman.

For the full picture, read our Windows and Doors guide, and our cluster pillar How to Install a Door for the measuring basics.

Frequently Asked Questions

Can I install a barn door on drywall without studs?

Yes, but only with a header board anchored into wall studs to safely support the door’s weight. Never mount a rail into drywall alone, because the rail will pull out under the weight of the door.

How much space do I need for a barn door?

You need wall space equal to the width of the door, plus 1 to 2 inches on each side, for full door movement. The door also needs about 2 inches of overlap on each side of the opening to cover it when closed.

Are barn doors soundproof?

Not completely. Barn doors do not seal tightly, so they block little sound and offer almost no privacy. They provide some visual separation, but a room that needs real quiet needs a swinging solid-core door instead.

Is a barn door right for your doorway?

It is right when you need floor space back, the room is tight, or you want the look, and the wall beside the opening is clear. It is wrong for bathrooms and bedrooms that need privacy, or for any doorway with switches, outlets, or windows in the rail path.

How do you keep a barn door from jumping off the track?

Install the anti-jump discs that come with the kit and tighten them fully, because a door without engaged discs can jump off the rail and fall. Set both rollers at the same height, keep the rail level, add door stops at each end, and fit the floor guide.

Related Guides

Windows and Doors guide · How to Install a Door

Note: a barn door hangs its full weight from the rail. If you cannot find solid studs, or the wall carries wiring where the rail must go, get a licensed professional to check the mounting before you drill.