A sliding barn door saves the floor space a swinging door needs, and it has become a popular choice for pantries, bathrooms and home offices. But the door must be larger than the opening, and it needs clear wall space to slide into. This calculator works out the door, the track and where to mount it.
How the calculation works
- Door width = opening width + overlap on each side × 2
- Door height = opening height + overlap at the top
- Track length = 2 × door width, so the door can clear the opening fully
- Track mounting height = gap under the door + door height + hanger allowance
- Clear wall beside the opening = door width
A 36 × 80 in opening with 1 in of overlap on each side and at the top needs a door about 38 in wide and 81 in tall. The track should be 76 in long and mounted about 83.5 in above the floor, allowing a 0.5 in gap under the door and 2 in for the hangers. You need 38 in of clear wall beside the opening, with no switches, outlets or windows in the way.
Overlap and privacy
| Overlap each side | Result |
|---|---|
| 1 in | the usual minimum, small gaps visible |
| 2 in | better privacy and less light through the sides |
| 3 in or more | best for bathrooms, needs more wall |
Because the door hangs in front of the wall, it never seals like a hinged door. For a bathroom, choose a larger overlap, add a soft stop and a latch, or consider a pocket door.
Installation tips
- Mount the track on a header board (often a 1 × 6 or 2 × 6) screwed into every stud, since a solid wood door can weigh 50 to 100 lb.
- Check the track’s weight rating and the stud locations before buying hardware.
- Fit a floor guide so the door does not swing out, and end stops to stop it at the right place.
- Leave room for trim: if the opening has casing, the door must clear it, which may need spacers.
- Choose soft-close hardware for quiet operation, and a flush pull on the side that slides against the wall.