Jupiter, a gas giant, is primarily composed of hydrogen and helium. Together, these elements make up over 99% of its mass. Hydrogen accounts for around 75%, while helium contributes about 24%. The remaining 1% consists of trace amounts of other elements.