If I remember it's supposed to be 15 to 20 ft. But to make sure, call the firemarshall or the city ordinance offices. Hope this helps, good luck to you.
Depends on if you have the money to pay for your house and your neighbors houses when they go up in flames or if you have enough insurance to cover fire damage from a fire pit and hot embers floating through the air and setting fire to the forest. Or if the neighbors complain because of the smoke from it..I had a enclosed fire box out in my yard and after neighbors complained I was no longer allowed to use it. I would also say it has a lot to with what your fire codes are in your area since I don't know what state your in..