Every star you see is a nuclear furnace holding back its own gravity with the outward push of fusion pressure. When the fuel runs out, gravity wins — but how it wins depends on one number: mass.
Below about 8 M☉, a dying star sheds its outer layers as a planetary nebula and settles into a white dwarf — an Earth-sized ember of carbon and oxygen held up by electron degeneracy pressure, a quantum rule that says you can't pack electrons any tighter than their wavefunctions allow. Sirius B, the companion to the brightest star in our sky, is one. So is Procyon B. These are the low-budget endings.
But electron degeneracy has a limit. Subrahmanyan Chandrasekhar showed in 1930 — aboard a steamer from Madras to England, at age 19 — that if a white dwarf's mass exceeds 1.4 M☉, its electrons are forced to move near the speed of light, the pressure they provide grows more slowly than the crushing inward weight, and the star collapses. The whole of stellar-death physics pivots on this single number. For the furnace side of the story — how the star got here and which reactions fired along the way — see Nuclear Fusion in Stars.
Above the Chandrasekhar limit, the star has two remaining options. Compress into a neutron star — a city-sized ball of neutron-degenerate matter, density 10¹⁴ g/cm³ — or, if it's heavier still, keep collapsing all the way down to a black hole.
The upper cap on neutron stars — roughly 2.3 M☉, known as the Tolman–Oppenheimer–Volkoff (TOV) limit — is fuzzier than Chandrasekhar's, because we don't fully understand matter at that density. The densest known neutron star weighs in at about 2.14 M☉. The first neutron-star collision observed by LIGO in 2017 probably produced a black hole after a brief hypermassive-neutron-star intermediary.
Try it tonight
Point a 4-inch scope at M1, the Crab Nebula in Taurus. At its heart is a neutron star left behind by a supernova observed by Chinese astronomers in AD 1054 — it now spins 33 times per second and beams radio, optical, and X-ray pulses at Earth. You can't see the pulses with your eye, but you're looking at the raw output of neutron degeneracy pressure working against gravity.