A greenhouse gas is a gas that absorbs and emits radiant energy within the thermal infrared range, causing the greenhouse effect. Carbon dioxide and methane are two of the primary greenhouse gases in Earth’s atmosphere.