General relativity

Black Hole Calculator

Squeeze any mass inside its Schwarzschild radius and it becomes a black hole. Enter a mass and get the event-horizon radius, the Hawking temperature, the evaporation time, the entropy and more — computed live in your browser.

Real Larzscript running in your browser454 automated checksOpen source · MITNo sign-up · your inputs never leave your device

Choose a mass

Event horizon radius rₛ
—
Photon sphere (1.5 rₛ)
—
Innermost stable orbit (3 rₛ)
—
Average density inside the horizon
—
Hawking temperature
—
Evaporation time (photon-only)
—
Entropy S / kᵇ
—
Show the Larzscript program that just ran
Run a calculation to see the exact program.

This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.

What this calculator does

A black hole of mass M that is not spinning and has no charge is described exactly by Schwarzschild's 1916 solution of Einstein's field equations. Its properties follow from four constants — the gravitational constant G, the speed of light c, Planck's constant ħ and Boltzmann's constant kB:

Horizon radius   rs = 2GM / c²
Photon sphere   1.5 rs   ·   innermost stable circular orbit   3 rs
Hawking temperature   T = ħc³ / (8π G M kB)
Evaporation time   t = 5120 π G² M³ / (ħ c⁴)
Entropy   S = kB c³ A / (4 G ħ),  A = 4πrs²

Sizes of familiar and famous black holes

The calculation is linear: double the mass and the horizon radius doubles. What changes wildly is the density, because volume grows as the cube of the radius — the bigger the black hole, the lower the average density inside its horizon.

Object squeezed into a black holeMassHorizon radiusAverage density
Earth5.972 × 10²⁴ kg8.87 mm2.04 × 10³⁰ kg/m³
Jupiter1.898 × 10²⁷ kg2.819 m2.02 × 10²⁵ kg/m³
the Sun1.988 × 10³⁰ kg2.953 km1.84 × 10¹⁹ kg/m³
a 10 solar-mass stellar black hole1.988 × 10³¹ kg29.53 km1.84 × 10¹⁷ kg/m³
Sagittarius A* (Milky Way centre, ~4.3 million suns)8.550 × 10³⁶ kg1.270 × 10⁷ km996 735 kg/m³
M87* (imaged by the Event Horizon Telescope, ~6.5 billion suns)1.292 × 10⁴⁰ kg128.3 AU0.436 kg/m³

The Sun's horizon radius is 2.953 km; the Earth's is under a centimetre (8.87 mm). The supermassive hole at the centre of our galaxy has a horizon about 1.270 × 10⁷ km across the radius — a few times the radius of the Sun.

What is verified

The horizon radius, Hawking temperature, lifetime, entropy and density are checked against independent calculations for masses from 10−8 kg to 5 × 1011 kg, and against published values: the Sun's 2.95 km, the Earth's 8.87 mm, a Hawking temperature of 6.17 × 10−8 K for one solar mass, a lifetime near 2 × 1067 years and an entropy near 1077 kB.

Limits: real astrophysical black holes spin, which changes the horizon and the orbits (the Kerr solution); this page treats the non-rotating case. The evaporation time uses the simplest, photon-only model; a complete calculation includes every particle species light enough to be emitted and gives shorter lifetimes.

Frequently asked questions

What is the Schwarzschild radius?

It is the radius of the event horizon of a non-rotating black hole of a given mass: rs = 2GM/c². Anything that passes inside it — even light — cannot get out. For the Sun it is 2.953 km, and for the Earth it is 8.87 millimetres.

Would the Sun become a black hole if it shrank?

Only if its entire mass were squeezed inside 2.953 km. The Sun does not have enough mass to collapse into a black hole on its own; it will end as a white dwarf. Very roughly, stars beginning life with more than about 20 times the Sun's mass can leave black holes behind.

Can a black hole really evaporate?

Stephen Hawking showed in 1974 that quantum effects make a black hole radiate like a warm body, with temperature T = ħc³/(8πGMkB). That is 6.17 × 10⁻⁸ K for one solar mass — far colder than the 2.7 K microwave background, so real stellar black holes currently absorb more than they emit and do not evaporate. The effect has never been observed directly.

How long would a black hole take to evaporate?

In the simple photon-only model this page uses, t = 5120πG²M³/(ħc⁴). A solar-mass black hole would need about 2.10 × 10⁶⁷ years — vastly longer than the age of the universe (13.8 billion years). A black hole of about 1.7 × 1011 kg would last roughly the age of the universe. Real evaporation also emits other particles, so treat the lifetimes as estimates.

What does the entropy number mean?

The Bekenstein–Hawking entropy S = kBc³A/(4Għ) is proportional to the horizon's area A, and it is enormous: 1.05 × 10⁷⁷ kB for a solar-mass hole — many orders of magnitude more than the Sun itself. It is a central clue in the search for a theory of quantum gravity.

Every number on this page is computed by the open-source larzscript-cosmos library (relativity, physconst, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →

All physics calculators → · Science calculators hub · Chemistry calculators →