The general rule is to allow 9-10′ of space at minimum, but ultimately you’ll simply need to make sure that you have enough room to swing without hitting a wall on either side. Especially when accommodating both right and left handed users, 12′ total is recommended, and 15′ or more is ideal.