To make sure there is enough area for the door to open all the way, you must also measure the wall space in addition to the door itself. It is simple to calculate the track length by simply multiplying your door width by two. 72" of track length would be required for a 36" wide door.