Cosmogenic nuclides (or cosmogenic isotopes) are rare nuclides (isotopes) created when a high-energy cosmic ray interacts with the nucleus of an in situ Solar System atom, causing nucleons (protons and neutrons) to be expelled from the atom (see cosmic ray spallation). These nuclides are produced within Earth materials such as rocks or soil, in Earth's atmosphere, and in extraterrestrial items such as meteoroids.  By measuring cosmogenic nuclides, scientists are able to gain insight into a range of geological and astronomical processes.  There are both radioactive and stable cosmogenic nuclides.  Some of these radionuclides are tritium, carbon-14 and phosphorus-32.
Certain light (low atomic number) primordial nuclides (isotopes of lithium, beryllium and boron) are thought to have been created not only during the Big Bang, but also (and perhaps primarily) to have been made after the Big Bang, but before the condensation of the Solar System, by the process of cosmic ray spallation on interstellar gas and dust. This explains their higher abundance in cosmic dust as compared with their abundances on Earth. This also explains the overabundance of the early transition metals just before iron in the periodic table – the cosmic-ray spallation of iron produces scandium through chromium on the one hand and helium through boron on the other. However, the arbitrary defining qualification for cosmogenic nuclides of being formed "in situ in the Solar System" (meaning inside an already-aggregated piece of the Solar System) prevents primordial nuclides formed by cosmic ray spallation before the formation of the Solar System from being termed "cosmogenic nuclides"—even though the mechanism for their formation is exactly the same. These same nuclides still arrive on Earth in small amounts in cosmic rays, and are formed in meteoroids, in the atmosphere, on Earth, "cosmogenically". However, beryllium (all of it stable beryllium-9) is present primordially in the Solar System in much larger amounts, having existed prior to the condensation of the Solar System, and thus present in the materials from which the Solar System formed.
To make the distinction in another fashion, the timing of their formation determines which subset of cosmic ray spallation-produced nuclides are termed primordial or cosmogenic (a nuclide cannot belong to both classes). By convention, certain stable nuclides of lithium, beryllium, and boron are thought to have been produced by cosmic ray spallation in the period of time between the Big Bang and the Solar System's formation (thus making these primordial nuclides, by definition) are not termed "cosmogenic", even though they were formed by the same process as the cosmogenic nuclides (although at an earlier time). The primordial nuclide beryllium-9, the only stable beryllium isotope, is an example of this type of nuclide.
In contrast, even though the radioactive isotopes beryllium-7 and beryllium-10 fall into this series of three light elements (lithium, beryllium, boron) formed mostly by cosmic ray spallation nucleosynthesis, both of these nuclides have half lives too short (53 days and ca. 1.4 million years, resp.) for them to have been formed before the formation of the Solar System, and thus they cannot be primordial nuclides. Since the cosmic ray spallation route is the only possible source of beryllium-7 and beryllium-10 occurrence naturally in the environment, they are therefore cosmogenic.