Stellar Surface Gravity / log g Calculator

Calculate a star's surface gravity g = GM/R² from its mass and radius, and the astronomically standard log g (base-10 log of g in cgs units), with a rough dwarf/giant/supergiant/white-dwarf/neutron-star classification, a log g ladder, and a mass-radius diagram with constant-log-g contour lines.

Surface gravity / log g calculator

Surface gravity g = GM/R² is almost always quoted as log g — the base-10 logarithm of g in cgs units (cm/s²) — because it spans such a huge range across stellar types. The Sun: g ≈ 2.74 × 10⁴ cm/s², log g ≈ 4.44. Giants and supergiants have enormous radii and correspondingly tiny log g; compact remnants (white dwarfs, neutron stars) have minuscule radii and enormous log g.

log g ≈ +4.44Dwarf (main sequence)
g = 27397.2 cm/s² = 274 m/s² · 27.937× Earth's surface gravity
-113579111315The SunRed giantRed supergiant (Betelgeuse-like)White dwarf (Sirius B-like)Neutron starthis star

Supergiant → giant → dwarf → white dwarf → neutron star, left to right — a rough guide, not a substitute for spectroscopic luminosity classification.

10 M☉10¹ M☉10⁻⁵ R☉10⁻⁴ R☉10⁻³ R☉10⁻² R☉10⁻¹ R☉10 R☉10¹ R☉10² R☉10³ R☉log g=0log g=2log g=4log g=6log g=8log g=10log g=12log g=14The SunRed giantRed supergiant (Betelgeuse-like)White dwarf (Sirius B-like)Neutron star

Diagonal lines mark constant log g (each has slope ½ in this log-log space, since g ∝ M/R²). Where a star sits relative to them is its log g, read directly off the chart.

Ask how strong gravity is at a star’s surface, and the honest answer depends entirely on how much the star has puffed up or collapsed — mass alone tells you surprisingly little. A red giant can outweigh the Sun and still have gravity dozens of times weaker at its surface, simply because its radius is enormous; a white dwarf with the Sun’s mass crammed into Earth’s size has surface gravity hundreds of thousands of times stronger. Surface gravity, more than mass, is what tells you what kind of star you’re looking at.

The formula, and why log g

g=GMR2g = \frac{GM}{R^2}

Straightforward — but astronomers almost never quote g directly. Instead, by long-standing convention, g is computed in cgs units (centimeters and grams, not meters and kilograms) and then log₁₀’d, giving log g. The Sun: g ≈ 2.74 × 10⁴ cm/s², log g ≈ 4.44 — a number worth memorizing, since virtually every other log g gets compared against it implicitly.

The reason for the logarithm is the same reason magnitude and pH use one: the actual range of g across real stars spans roughly 20 orders of magnitude, from bloated red supergiants to neutron stars. A single logarithmic number makes that entire range comparable at a glance.

What log g tells you

These bands are a genuinely useful rule of thumb, not a substitute for actual spectroscopic luminosity classification — real log g measurements (from pressure-broadened spectral lines, among other methods) are one of the standard tools used to determine that classification in the first place.

Reading the two charts