The atmospheres of gas giants are primarily composed of hydrogen and helium, accompanied by trace amounts of methane and ammonia. Thus, these four components make up the primary components of these planets’ atmospheres.