Hydrogen is the most abundant element in the Sun, making up approximately 74% of its mass (about 92% by number of atoms). The Sun's composition is primarily hydrogen (74% by mass, 92% by count), with helium (24% by mass, 8% by count) as the second most abundant element. The remaining 2% consists of heavier elements like oxygen, carbon, neon, and iron.