"Gas" is a state of matter, not a specific chemical substance. Many different substances can exist as gases, such as:
* Oxygen: O₂
* Nitrogen: N₂
* Carbon dioxide: CO₂
* Methane: CH₄
* Hydrogen: H₂
* Helium: He
To determine the chemical formula for a gas, you need to specify which gas you're interested in.