Before anyone knew about nuclear energy, physicists asked what keeps the Sun shining. Chemical burning would last only thousands of years. In the 1850s and 1860s Hermann von Helmholtz and Lord Kelvin proposed the best idea then available: slow contraction, releasing gravitational energy, as the virial theorem describes.
💡 Why it works
A star of mass $M$ and radius $R$ has gravitational energy of order $GM^2/R$. By the virial theorem, about half of what contraction releases can be radiated. Divide the available energy by the rate at which it is spent, the luminosity $L$, and you get a time: $$t_{KH} \sim \frac{GM^2}{RL}.$$ For a uniform sphere the radiated energy available from collapsing from far away is $\tfrac{3}{10}GM^2/R$, which shortens the time by about a factor of 3; the order of magnitude is what matters.
🔑 Key idea
The Kelvin–Helmholtz time $t_{KH} \approx GM^2/(RL)$ is about 30 million years for the Sun, far shorter than Earth's age of about 4.5 billion years. Gravity cannot be the Sun's main power source, though it does power protostars before fusion begins.
Contraction as a power source: the cloud heats and shines as it shrinks, but the supply runs out in tens of millions of years.
Answer: About 10 billion years, roughly 300 times the Kelvin–Helmholtz time.
✏️ Worked example: How fast would the Sun have to shrink?
If contraction alone powered the Sun (uniform sphere, radiated energy $\tfrac{3}{10}GM^2/R$), how fast would its radius shrink?
$L = \dfrac{3GM^2}{10R^2}\left|\dfrac{dR}{dt}\right|$, so $\left|\dfrac{dR}{dt}\right| = \dfrac{10LR^2}{3GM^2}$.
$= 2.3 \times 10^{-6}$ m/s.
Answer: About 74 m per year: too slow to notice in a human lifetime, but fatal over geological time.
⚠️ Common mistake
Thinking the Sun could shine for billions of years just by shrinking. The gravitational energy is large but not large enough: at the Sun's luminosity it lasts only a few tens of millions of years. That clashed with geology and with Darwin's estimates of the time evolution needed, and radioactive dating later gave Earth an age of about 4.5 billion years. Check: compare $GM^2/(RL)$ with the age of Earth; they differ by a factor of over 100.
Practice
Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.