How much clearance is needed on a gas fireplace?
You should try to determine the manufacturer and model of your fireplace and get a copy of the installation instructions, which will have detailed instructions on the required clearances.    The answer will vary depending on the construction of the fireplace.