Olber's Paradox Calculator
See why the night sky isn't infinitely bright by computing cumulative starlight flux from concentric shells out to a finite horizon.
✨ What is Olber's Paradox?
Olber's paradox is the puzzle of why the night sky is dark instead of blazing bright, given that a simple, naive model of an infinite universe uniformly filled with stars predicts every line of sight should eventually hit a star's surface, making the entire sky glow as brightly as the Sun. Named after German astronomer Heinrich Wilhelm Olbers, who popularized it in 1823 (though earlier thinkers including Johannes Kepler and Edgar Allan Poe discussed related ideas), the paradox exposes a subtle and beautiful cancellation in how light and geometry interact across cosmic distances.
The core insight is this: a single star's brightness falls off with the square of distance, but a thin spherical shell around Earth at that same distance contains a number of stars that grows with the square of distance too (since the shell's surface area scales as r squared). These two effects cancel exactly, so every shell of stars, whether 10 light years away or 10 billion light years away, contributes the identical amount of total flux to the sky. Add up infinitely many equal contributions from an infinite universe, and the total diverges to infinity, which plainly does not match the dark night sky we observe.
A common misconception is that the paradox is resolved simply because distant stars are too dim to see individually. That misses the point entirely, the paradox is not about seeing individual faint stars, it is about the cumulative total of light from all shells added together, which the maths shows should not fade with distance at all. The real resolution is that the universe has a finite age, roughly 13.8 billion years, so light from stars beyond about 13.8 billion light years away (in this simplified, non-expanding picture) simply has not had time to reach Earth yet. That finite horizon caps the sum at a finite value instead of letting it diverge.
This calculator lets you experiment with the star density, average stellar luminosity, and horizon distance to see exactly how the total accumulated flux behaves, staying finite when the horizon is capped at a realistic value, and growing without bound if you artificially extend the horizon past the real age-of-universe limit, recreating the paradox numerically and visually.
📐 Formula
The finite-age resolution replaces an unbounded R with the actual light-travel horizon (approximately the age of the universe multiplied by the speed of light in this simplified, non-expanding model), per standard treatments of Olbers' paradox in cosmology references.
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — Local Star Density Out to the Real Horizon
n = 0.004 stars/ly³ (local galactic neighborhood), L = 1 L☉, R = 13.8 billion ly (age of universe)
Example 2 — Dense Star Field, Short Horizon
n = 1 star/ly³ (unrealistically dense, for illustration), L = 1 L☉, R = 1,000 ly
Example 3 — Naive Growth Past the Real Horizon
n = 0.004 stars/ly³, L = 1 L☉, R = 138 billion ly (10 times the real light-travel horizon)
❓ Frequently Asked Questions
🔗 Related Calculators
What is Olber's paradox?
Olbers' paradox asks why the night sky is dark if the universe contains infinitely many stars. In a static, infinite, uniformly star-filled universe, every line of sight should eventually terminate on a star's surface, making the whole sky as bright as the Sun. Since the sky is obviously dark at night, one of the paradox's assumptions (infinite, static, eternally old, uniformly filled) must be wrong.
Why does each shell of stars contribute equal flux, no matter how far away?
A single star's flux falls off as 1 over r squared. But a thin shell of radius r and fixed thickness contains a number of stars proportional to its surface area, which grows as r squared. These two effects cancel exactly, so each shell of equal thickness contributes the same total flux to the sky regardless of distance. Summing infinitely many equal-sized contributions produces an unbounded total.
What actually resolves Olber's paradox?
The universe has a finite age, about 13.8 billion years, so light from stars farther than roughly 13.8 billion light years away has not had time to reach Earth yet. This finite light-travel horizon caps the sum of shell contributions at a finite value instead of letting it grow forever. Cosmic expansion and the finite lifetime of stars add further (smaller) reductions in real sky brightness.
How does the calculator show the paradox?
The calculator sums the flux from all star shells out to a horizon distance you choose. With a realistic star density, luminosity, and the actual age-of-universe horizon, the total flux comes out to a modest fraction of full sunlight. If you keep increasing the horizon distance with the same star density, the total keeps climbing without limit, exactly as Olbers' original argument predicted, showing why a finite horizon is essential.
What units does the calculator use for star density?
Star density is entered in stars per cubic light year. For context, the real average density of stars in the Sun's immediate galactic neighborhood is roughly 0.004 stars per cubic light year (about 0.14 stars per cubic parsec). This calculator uses that as its default, though real space is far from uniformly filled at this density on very large scales.
Why is the flux expressed as a percentage of the solar constant?
The solar constant (about 1361 watts per square meter) is the flux Earth receives from direct sunlight. Comparing the computed sky flux to this familiar reference makes the result intuitive: a result near or above 100% means the whole sky would glow roughly as bright as staring directly at the Sun, the literal conclusion Olbers' paradox warns about if the universe were truly infinite and static.
Does the finite speed of light matter here?
Yes, it is central to the resolution. Because light travels at a finite speed, we only receive light from stars whose light has had enough time to reach us since the universe began. That defines a finite horizon distance (roughly the age of the universe multiplied by the speed of light in this simplified, non-expanding model), which is exactly the 'R' this calculator lets you set.
Did Olbers actually discover this paradox?
Heinrich Wilhelm Olbers popularized the puzzle in 1823, but earlier thinkers, including Johannes Kepler and Edgar Allan Poe, discussed versions of it. Poe's 1848 essay Eureka notably proposed that the finite age of the universe (limiting how far starlight has traveled) resolves the paradox, an idea later confirmed by modern cosmology.
Does the answer change if stars are brighter or more numerous?
Yes. Total flux scales directly and linearly with both star density and average stellar luminosity in this model (F equals n times L times R). Doubling the star density or the average luminosity doubles the total flux at any given horizon distance, since both directly scale the constant per-shell contribution nL.
Is real space actually filled uniformly with stars at a constant density?
No. Real space is mostly empty even within galaxies, and galaxies themselves are separated by vast, nearly starless voids. This calculator uses a simplified uniform-density model, the same idealization Olbers' original argument used, to isolate and demonstrate the geometric cancellation effect (1 over r squared dimming versus r squared shell star count) that creates the paradox in the first place.
How large would the horizon need to be for the sky to glow like the Sun?
Using the default local star density and luminosity, the flux reaches the full solar constant (100%) at a horizon distance of roughly 6 to 7 times the actual observable-universe light-travel distance, around 80 to 90 billion light years. Since the real universe is only about 13.8 billion years old, the actual horizon falls far short of that threshold, which is exactly why the night sky stays dark.