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.

✨ Olber's Paradox Calculator
Star Density n (stars/ly³)
stars/ly³
0.00012
Average Luminosity L (L☉)
L☉
0.0120
Horizon Distance R (ly)
ly
Total Sky Flux
—
vs Solar Constant
—
Flux (L☉/ly²)
—
Naive Infinite-Universe Case
—

✨ 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

F(R)  =  n × L × R
n = star density (stars per cubic light year)
L = average stellar luminosity (watts, or solar luminosities)
R = horizon distance (light years), the farthest distance light has had time to travel
Shell contribution: dF = n × L × dr   (independent of r, since 1/r² dimming exactly cancels r² shell star count)
Naive infinite case: as R → ∞, F(R) → ∞ (diverges, the paradox itself)

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

1
Enter the star density - Type the average number of stars per cubic light year in the region you are modeling.
2
Enter the average stellar luminosity - Type the average star's luminosity in units of solar luminosities (1 means Sun-like).
3
Enter the horizon distance - Type how far out light has had time to travel, in light years. Use the age-of-universe preset for the real value.
4
Click Calculate - Press Calculate to see the total accumulated sky flux, its percentage of the solar constant, and the chart comparing the actual finite result to the naive infinite continuation.

💡 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)

1
F = n × L × R = 0.004 × 1 × 13,800,000,000 = 55,200,000 L☉/ly² = 5.520 × 10⁷ L☉/ly²
2
Converting to SI units (watts per square meter) using 1 L☉ = 3.828 × 10²⁶ W and 1 ly = 9.4607 × 10¹⁵ m gives F ≈ 2.361 × 10² W/m²
3
Compare to the solar constant (1361 W/m²): 236.1 / 1361 ≈ 17.35% as bright as staring directly at the Sun
Total flux ≈ 2.361 × 10² W/m² ≈ 17.35% of the solar constant, finite and modest thanks to the finite horizon
Try this example →

Example 2 — Dense Star Field, Short Horizon

n = 1 star/ly³ (unrealistically dense, for illustration), L = 1 L☉, R = 1,000 ly

1
F = 1 × 1 × 1,000 = 1,000 L☉/ly² = 1.000 × 10³ L☉/ly², far smaller than Example 1 despite a much higher density, because R is 13.8 million times smaller
2
Converting to SI units gives F ≈ 4.277 × 10⁻³ W/m²
3
Compare to the solar constant: 4.277 × 10⁻³ / 1361 ≈ 0.0003%, negligibly small, showing horizon distance dominates over density for this quantity
Total flux ≈ 4.277 × 10⁻³ W/m², roughly 0.0003% of the solar constant, confirming that horizon distance R matters far more than local density alone
Try this example →

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)

1
F = 0.004 × 1 × 138,000,000,000 = 552,000,000 L☉/ly² = 5.520 × 10⁸ L☉/ly², exactly 10 times Example 1's value, confirming F scales linearly with R
2
Converting to SI units gives F ≈ 2.361 × 10³ W/m²
3
Compare to the solar constant: 2,361 / 1,361 ≈ 173.46%, meaning this hypothetical sky would glow brighter than the Sun's own disk, the literal paradox, made possible only by extending R far past the real, finite age-of-universe limit
Total flux ≈ 2.361 × 10³ W/m² ≈ 173.46% of the solar constant, illustrating the unbounded growth Olbers' paradox describes once the horizon is pushed past its real, finite value
Try this example →

❓ Frequently Asked Questions

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.

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.