In astrophysics and nuclear physics, nuclear pasta is a theoretical type of degenerate matter that is postulated to exist within the crusts of neutron stars. Between the surface of a neutron star and the quark–gluon plasma at the core, at matter densities of 1014 g/cm3, nuclear attraction and Coulomb repulsion forces are of similar magnitude. The competition between the forces leads to the formation of a variety of complex structures assembled from neutrons and protons. Astrophysicists call these types of structures nuclear pasta because the geometry of the structures resembles various types of pasta. In astrophysics and nuclear physics, nuclear pasta is a theoretical type of degenerate matter that is postulated to exist within the crusts of neutron stars. Between the surface of a neutron star and the quark–gluon plasma at the core, at matter densities of 1014 g/cm3, nuclear attraction and Coulomb repulsion forces are of similar magnitude. The competition between the forces leads to the formation of a variety of complex structures assembled from neutrons and protons. Astrophysicists call these types of structures nuclear pasta because the geometry of the structures resembles various types of pasta. Neutron stars form as remnants of massive stars after a supernova event. Unlike their progenitor star, neutron stars do not consist of a gaseous plasma. Rather, the intense gravitational attraction of the compact mass overcomes the electron degeneracy pressure and causes electron capture to occur within the star. The result is a compact ball of nearly pure neutron matter with sparse protons and electrons in between in a space several thousand times smaller than the progenitor star. At the surface, the pressure is low enough that conventional nuclei, such as helium and iron, can exist independently of one another and are not crushed together due to the mutual Coulomb repulsion of their nuclei. At the core, the pressure is so great that this Coulomb repulsion cannot support individual nuclei, and some form of ultradense matter, such as the theorized quark–gluon plasma, should exist.