The abundance of the chemical elements is a measure of the occurrences of the chemical elements relative to all other elements in a given environment. Abundance is measured in one of three ways: by mass fraction (in commercial contexts often called weight fraction), by mole fraction (fraction of atoms by numerical count, or sometimes fraction of molecules in gases), or by volume fraction. Volume fraction is a common abundance measure in mixed gases such as planetary atmospheres, and is similar in value to molecular mole fraction for gas mixtures at relatively low densities and pressures, and ideal gas mixtures. Most abundance values in this article are given as mass fractions.
The abundance of chemical elements in the universe is dominated by the large amounts of hydrogen and helium which were produced during Big Bang nucleosynthesis. Remaining elements, making up only about 2% of the universe, were largely produced by supernova nucleosynthesis. Elements with even atomic numbers are generally more common than their neighbors in the periodic table, due to their favorable energetics of formation, described by the Oddo–Harkins rule.
The abundance of elements in the Sun and outer planets is similar to that in the universe. Due to solar heating, the elements of Earth and the inner rocky planets of the Solar System have undergone an additional depletion of volatile hydrogen, helium, neon, nitrogen, and carbon (which volatilizes as methane). The crust, mantle, and core of the Earth show evidence of chemical segregation plus some sequestration by density. Lighter silicates of aluminium are found in the crust, with more magnesium silicate in the mantle, while metallic iron and nickel compose the core. The abundance of elements in specialized environments, such as atmospheres, oceans, or the human body, are primarily a product of chemical interactions with the medium in which they reside.