Astrophysics Calculators
Free astrophysics calculators for stellar luminosity, black holes, cosmology, and more. Stefan-Boltzmann law, Schwarzschild radius, Hubble's law, and beyond.
Astrophysics Calculators - Stars, Black Holes, and Cosmology
Astrophysics calculators translate the fundamental equations of stellar physics and cosmology into fast, practical results. From the Stefan-Boltzmann law to the Schwarzschild radius, from Hubble’s law to the main-sequence lifetime equation, each calculator shows the governing formula, defines all variables with SI or solar units, and walks through a worked example. Every result is grounded in IAU 2015 nominal solar constants and current cosmological parameters.
Stellar Physics
The Stellar Luminosity & Radius Calculator applies the Stefan-Boltzmann law in two directions: find luminosity from radius and temperature, or find radius from luminosity and temperature. Uses solar units (L☉, R☉) with the IAU 2015 reference values T☉ = 5,778 K and L☉ = 3.828 × 1026 W. Outputs the Morgan-Keenan spectral class based on temperature.
The Hertzsprung-Russell Diagram Classifier takes stellar temperature and luminosity as inputs and returns the spectral type, luminosity class (main sequence, giant, supergiant, white dwarf), and the star’s position on the H-R diagram.
The Main Sequence Lifetime Calculator estimates how long a star burns hydrogen on the main sequence using the nuclear timescale formula t = (M/M☉) / (L/L☉) × 10 Gyr. Shows lifetime in gigayears and compares to the Sun.
The Chandrasekhar Limit Calculator computes the maximum mass a white dwarf can support (M☉) as a function of mean molecular weight per electron (μe). Supports both computing the limit for a given composition and checking whether a specific white dwarf is stable.
The TOV Limit Estimator estimates the Tolman-Oppenheimer-Volkoff maximum neutron star mass using a parameterized equation-of-state stiffness (s). Preset EOS profiles (soft, moderate, stiff, causal) let you quickly bracket the allowed range.
The Stellar Magnitude & Distance Modulus Calculator implements the three-way distance modulus equation (μ = m − M = 5 log10(d/10 pc)) in all directions: find distance from apparent and absolute magnitudes, find absolute magnitude from apparent magnitude and distance, or find apparent magnitude from absolute magnitude and distance. Outputs in parsecs, kiloparsecs, megaparsecs, and light-years.
The Bolometric Correction Calculator converts a star’s absolute V magnitude to its absolute bolometric magnitude (Mbol = MV + BCV) and total luminosity, using the Flower (1996) / Torres (2010) piecewise polynomial fit for BCV as a function of effective temperature. A Manual BC mode accepts a bolometric correction value directly, for example from a spectral-type table. Classifies the temperature regime (cool, Sun-like, or hot) used in the fit. Presets: Sun (BCV ≈ −0.08), Sirius A, Betelgeuse, and Rigel.
Black Holes and Compact Objects
The Eddington Luminosity Calculator computes the maximum luminosity a compact object can sustain before radiation pressure halts accretion (LEdd = 4πGMmpc/σT). Also shows the Eddington-limited accretion rate and solves for the mass implied by a given luminosity.
The Schwarzschild Radius Calculator computes the event horizon radius of a non-rotating black hole (rs = 2GM/c2) in km, AU, or light-years depending on object size. Includes mean collapse density and a reverse mode to find mass from a known event horizon radius.
The Hawking Radiation Temperature Calculator computes the Hawking temperature (TH = ℏc3/8πGMkB), evaporation time, Hawking luminosity, and peak emission wavelength for any black hole mass. Supports mass input in kg, grams, tonnes, and solar masses.
The Black Hole Evaporation Time Calculator computes the complete evaporation lifetime via Hawking radiation (t = 5120πG²M³/ℏc4) plus the initial Hawking temperature and luminosity. Includes a reverse mode: enter a target evaporation timescale to find the required initial mass. Covers lifetimes from femtoseconds to zettayears.
The Gravitational Time Dilation Calculator computes time dilation via the Schwarzschild metric (α = √(1 − rs/r)) for any mass and distance, and the Lorentz factor for any velocity up to 99.9999% of c. Outputs the dilation factor, clock rate percentage, and annual clock drift in human-readable units (microseconds to days per year).
The Kerr Metric Frame Dragging Calculator computes the full Boyer-Lindquist structure of a rotating black hole: outer and inner horizons (r±), equatorial ergosphere radius, frame-dragging angular velocity (ΩH), prograde and retrograde ISCO radii via the Bardeen-Press-Teukolsky formula, and extractable spin energy fraction. Includes a spin inference mode to derive a☆ from an observed horizon radius.
The Photon Sphere Radius Calculator computes the radius of the light sphere (rph = 3GM/c2 = 1.5 rs) for any non-rotating black hole mass, together with the Schwarzschild radius for comparison and the coordinate orbital period of a photon at the photon sphere. Includes an inverse mode to find the implied mass from a known photon orbit radius.
The ISCO Calculator computes the innermost stable circular orbit radius for Schwarzschild black holes (rISCO = 6GM/c2 = 3 rs) and Kerr black holes (prograde and retrograde ISCO as a function of spin parameter a* via the Bardeen-Press-Teukolsky formula). Shows orbital period and velocity at the Schwarzschild ISCO and outputs in km and gravitational radii.
The Gravitational Wave Chirp Mass Calculator computes the chirp mass Mc = (m1m2)3/5/(m1+m2)1/5, symmetric mass ratio η, and mass ratio q for any compact binary (BBH, BNS, or BH-NS). Also computes the inspiral time to merger at any reference GW frequency using the post-Newtonian formula t = (5/256π)(πGMc/c3)−5/3 f−8/3. A reverse mode recovers component masses from a known chirp mass and mass ratio. Presets for GW150914, GW170817, and a generic BH-NS system.
The Pulsar Spin-Down & Magnetic Field Calculator applies the standard magnetic dipole spin-down model to compute surface B-field (B = 3.2 × 1019 √(ṖP) Gauss), spin-down luminosity Ėrot = 4π2İP/P3, and characteristic age τ = P/(2̇P). Also outputs angular velocity and light-cylinder radius. Auto-classifies as millisecond pulsar, magnetar candidate, young energetic pulsar, or normal pulsar. Presets: Crab (P = 0.033 s), Vela, PSR B1937+21 (first MSP discovered), and Hulse-Taylor PSR B1913+16.
The Neutron Star Cooling Timescale Calculator models neutron star thermal evolution using simplified Modified Urca (slow, Tcore ∝ t−1/6) and Direct Urca (fast, Tcore ∝ t−1/4) cooling laws, converting core temperature to observed surface temperature via an envelope relation and estimating the peak thermal photon energy via Wien’s law. A reverse mode infers age from a measured surface temperature. Presets calibrated against real observations: Cassiopeia A (330 yr, Teff ≈ 1.95 MK), Vela pulsar (11 kyr, Teff ≈ 1.46 MK), young and old neutron stars.
The Synchrotron Radiation Frequency Calculator computes the critical synchrotron frequency νc = 3eBγ2sinα/(4πmec) for relativistic electrons gyrating in a magnetic field. Outputs: emission frequency (auto-scaled to MHz/GHz/THz/EHz), wavelength (pm to m), EM band classification (radio through gamma-ray), synchrotron power loss P = (4/3)σTcγ2UB, and synchrotron cooling time. B-field unit selector (uG/mG/G/nT/T). Presets: ISM Radio (5 μG, γ = 500), Radio Lobe hotspot (100 μG, γ = 5000), PWN X-ray Crab-like (200 μG, γ = 108), AGN Jet (1 mG, γ = 106).
The Gravitational Wave Strain Amplitude Calculator computes the dimensionless strain h for compact binaries using the quadrupole formula h = (4/r)(GMc/c²)(πGMcfGW/c³)2/3 and for rotating neutron stars with equatorial ellipticity h = 4GIε(2πfrot)²/(c4r). Outputs: strain amplitude, chirp mass or moment of inertia, GW luminosity in watts, Schwarzschild radii for binary components. Presets: GW150914 (BBH, 36+29 M⊙, 410 Mpc), GW170817 (BNS, 40 Mpc), BH-NS, and rotating NS presets for Crab, MSP B1937+21, magnetar, and newborn NS.
The Binary Merger Timescale Calculator implements the Peters (1964) post-Newtonian formula for GW-driven inspiral: da/dt = −(64/5)G³m1m2(m1+m2)/c5a³ × f(e), where f(e) = [1+(73/24)e²+(37/96)e4]/(1−e²)7/2 is the eccentricity enhancement factor. Numerically integrates the coupled ODE system for a(t) and e(t) with 2,000 steps for accurate eccentric-orbit merger times. Accepts semi-major axis (AU, km, m, R⊙) or orbital period (days). Outputs: merger time (yr/kyr/Myr/Gyr), orbital period, da/dt, dP/dt, chirp mass, GW frequency. Presets: Hulse-Taylor PSR B1913+16 (e=0.617, T≈300 Myr), Double Pulsar J0737-3039 (T≈85 Myr), GW150914-like BBH, Sun-Earth reference.
The LIGO Sensitivity Band Matcher classifies a gravitational wave frequency, entered directly or derived from binary masses and orbital separation via Kepler’s third law (fGW = 2forb = (1/π)√(G(m1+m2)/a³)), against the operating bands of current and planned detectors. Covers the LIGO/Virgo/KAGRA ground-based band (10 to 5,000 Hz, peak sensitivity 20 to 300 Hz), the planned LISA millihertz band, and the nanohertz pulsar timing array band (NANOGrav, EPTA, PPTA). Flags separations inside the ISCO as already-merged. Presets: GW150914-like BBH, BNS inspiral, LISA-band massive black hole binary, and a PTA-band supermassive black hole binary.
The X-ray Binary Luminosity Calculator computes accretion luminosity L = ηṀc² and Eddington luminosity LEdd = 4πGMmpc/σT for compact X-ray binary accretors. Two modes: Accretion Rate (input η, Ṁ in M⊙/yr) and Eddington Fraction (specify L/LEdd directly). Outputs: luminosity in watts and solar luminosities, Eddington ratio, Eddington accretion rate, and source classification (BH XRB, NS LMXB, ULX, super-Eddington). Presets: Cygnus X-1 (21.2 M⊙ BH, η=0.057), Her X-1 (NS X-ray pulsar), Sco X-1 (NS LMXB), M33 X-7 (extragalactic massive BH), ULX (10× Eddington), AGN (108 M⊙).
The Bremsstrahlung Cooling Rate Calculator computes total thermal (free-free) emissivity εff = 1.4×10−27T1/2neniZ²gB and the radiative cooling time tcool = (3/2)(ne+ni)kBT/εff for a hot ionized plasma. An optional Total Luminosity mode integrates emissivity over a spherical emitting region. Temperature input in Kelvin or keV. Presets: solar corona, cool-core galaxy cluster (tcool ≈ 922 Myr, the classic cooling-flow signature), HII region, and supernova remnant shocked gas.
The Accretion Disk Temperature Profile Calculator applies the Shakura-Sunyaev thin-disk model to compute the peak disk temperature Tpeak = [(3GM&Mdot;)/(8πσrp3)]1/4×[1−√(rin/rp)]1/4 at rpeak = (49/36)rin. Outputs: peak temperature (K), inner disk radius in km and gravitational radii, disk luminosity and Eddington ratio, Wien peak wavelength, and emission band (X-ray, UV, infrared). Supports ISCO inner boundary for Schwarzschild BH or custom neutron star surface radius. Presets: stellar BH (10 M☉, 10−8 M☉/yr), AGN (108 M☉, 0.1 M☉/yr), neutron star (1.4 M☉, 10 km), X-ray binary (7 M☉).
Cosmology
The Hubble’s Law and Recession Velocity Calculator applies v = H₀ × d in all three directions: enter a distance in megaparsecs to find the recession velocity, enter a recession velocity to find the implied distance, or enter a spectroscopic redshift z to convert it to both. The Hubble constant is adjustable from 50 to 100 km/s/Mpc to compare Planck and SH0ES values. Outputs include recession velocity in km/s and as a percentage of c, redshift z, lookback time, and the Hubble time 1/H₀.
The Cosmological Redshift Calculator converts spectral line shifts to redshift z and derived cosmological quantities, or takes a redshift z as input and returns scale factor a = 1/(1+z), relativistic recession velocity, CMB temperature at that epoch (T = 2.725 × (1+z) K), and the wavelength stretch factor. Preset spectral lines include H-alpha, Lyman-alpha, Ca K, O III, and Mg II.
The Parallax & Parsec Distance Calculator converts stellar parallax in milliarcseconds to distance in parsecs, light-years, and AU using d(pc) = 1000/p(mas), and also shows the distance modulus μ = 5 log10(d) − 5. An inverse mode computes the expected parallax angle for any given distance, useful for predicting what Hipparcos or Gaia would measure for a star at a known distance.
The Roche Limit Calculator computes the fluid body Roche limit (d = 2.44 RM (ρM/ρm)1/3) and rigid body Roche limit (d = 1.26 RM (ρM/ρm)1/3) for any primary-secondary pair. Presets cover Earth, Mars, Jupiter, Saturn, and the Sun as primary bodies; a Mass Mode accepts mass and radius inputs and derives densities automatically. Shows results in km and as multiples of the primary radius.
The Comoving Distance & Lookback Time Calculator integrates the full flat ΛCDM Friedmann equation (Simpson's rule, up to 8,000 steps) to compute comoving distance dC, lookback time tL, luminosity distance dL, and angular diameter distance dA for any redshift z from 0.001 to 1,100. Cosmology presets include Planck 2018, Planck 2015, WMAP9, and SH0ES; object presets span Virgo, Coma, 3C 273, SDSS DR18, GN-z11, and the CMB surface of last scattering. Displays a curvature warning when |Ωk| > 0.01.
The Age of Universe & Hubble Constant Calculator uses the Friedmann integral to compute the true cosmic age t0 = (1/H0) ∫0∞ dz/[(1+z)E(z)] with 10,000 integration steps. A simple mode returns the Hubble time 1/H0 for direct comparison. Cosmology presets include Planck 2018 (13.797 Gyr), SH0ES (12.8 Gyr), WMAP9, and Einstein–de Sitter (⅔ tH ≈ 9.67 Gyr). Shows the age-to-Hubble-time ratio and the Hubble time as a reference scale.
The Dark Energy Density Parameter Calculator computes the dark energy fraction ΩΛ = 1 − Ωm − Ωr − Ωk from Hubble constant H0 and density parameters, then converts to physical units: critical density ρc = 3H02/(8πG), dark energy density ρΛ = ΩΛρc, and cosmological constant Λ = 3H02ΩΛ/c2. Cosmology presets cover Planck 2018, SH0ES, and WMAP9. A reverse mode accepts ΩΛ directly and returns the implied matter fraction. Outputs are scaled to 10−27 kg/m3 and 10−52 m−2 for direct comparison with published values.
Star Formation
The Jeans Mass & Jeans Length Calculator computes the Jeans instability thresholds for a self-gravitating gas cloud: Jeans length λJ = √(πcs2/Gρ), Jeans mass MJ = (π/6)ρλJ3, and free-fall time tff = √(3π/32Gρ). A cloud mode derives density and sound speed from temperature, number density, mean molecular weight, and adiabatic index γ; a direct mode accepts cs and ρ directly. Gas presets cover giant molecular clouds (10 K, 100 cm−3), dense protostellar cores (10 K, 104 cm−3), cold neutral medium, and warm neutral medium.
CMB and Thermal History
The CMB Temperature vs Redshift Calculator computes the Cosmic Microwave Background temperature at any cosmic epoch using T(z) = 2.725 × (1 + z) K (FIRAS T0). An inverse mode accepts any temperature and returns the corresponding redshift and scale factor. Also outputs the peak photon wavelength via Wien's displacement law and the characteristic photon energy E = kBT in eV or meV. Cosmological epoch presets: Today (z = 0), Reionization (z = 10), Recombination (z = 1100).
Orbital Mechanics
The Hill Sphere Radius Calculator computes the gravitational sphere of influence rH = a(1−e)(m/3M)1/3 for any secondary body orbiting a primary, including the eccentricity correction. Outputs the stable prograde orbit limit (0.5 rH) and retrograde orbit limit (0.7 rH), plus the rH/a ratio. Preset systems with real eccentricities: Sun-Earth (e = 0.0167, rH ≈ 1.47 × 106 km), Sun-Mars (e = 0.0934), Sun-Jupiter (e = 0.0489, rH ≈ 50 × 106 km), and Sun-Pluto (e = 0.2488, rH ≈ 5.75 × 106 km).
The Lagrange Point Calculator computes all five Lagrange equilibrium positions (L1 through L5) for any two-body gravitational system using the mass ratio μ = m/(M+m) and orbital separation a. Outputs the Hill sphere radius rH = a(μ/3)1/3 (equal to the L1 and L2 distance from the secondary), L1 and L2 from the primary, L3 on the far side, and L4/L5 Trojan-point distances. Checks the 27μ(1−μ) < 1 stability criterion for Trojan orbits. Presets: Sun-Earth (JWST at L2), Earth-Moon, Sun-Jupiter (Trojan asteroids), and Sun-Saturn.
The Orbital Decay Rate Calculator applies the Peters (1964) post-Newtonian formula for gravitational-wave-driven orbital decay: da/dt = −(64/5)G3m1m2(m1+m2)/c5a3 × f(e), where f(e) is the eccentricity enhancement factor (1 + 73e2/24 + 37e4/96)/(1−e2)7/2. Computes the instantaneous decay rate da/dt and dP/dt, and integrates the Peters equation numerically (600-step loop) to find the time to coalescence for eccentric orbits. Accepts orbital period (days) or semi-major axis (AU). Presets: Hulse-Taylor pulsar (PSR B1913+16), double neutron star binary, BBH GW150914, and BH-NS system.
The N-Body Gravitational Interaction Estimator computes instantaneous pairwise gravitational forces, net accelerations, and gravitational potential energy for 2-body and 3-body collinear systems using Newton's law F = Gm₁m₂/r². Two-body mode also outputs escape velocities from each body's gravitational field at the given separation. Accepts mass inputs in Solar masses, Jupiter masses, Earth masses, and kg; distances in AU, km, m, light-years, and parsecs.
The Orbital Precession Calculator computes the general relativistic perihelion advance per orbit and per century using the post-Newtonian formula Δφ = 6πGM/(c²a(1−e²)). Star-Planet mode covers single primary systems; Binary mode uses total mass M = m₁ + m₂ for compact binaries. Presets include Mercury (42.99 arcsec/century), Earth (3.84 arcsec/century), Mars, Venus, and PSR B1913+16 (421.98 deg/century).
The Tidal Locking Timescale Calculator implements the Peale (1977) / Goldreich & Soter formula tlock = 2αmω0Qa6 / (9k2GM2R3) for the time to synchronise a body's rotation with its orbital period under tidal dissipation. Inputs: body mass and radius, partner mass, orbital separation, initial rotation period, tidal quality factor Q, Love number k2, and moment-of-inertia constant α. The a6 dependence makes orbital distance the dominant factor. Presets: Earth-Moon (Q = 38), Mercury-Sun (Q = 100), Hot Jupiter at 0.05 AU (Q = 105), and Proxima Cen b (Q = 105).
Observational Astronomy
The Angular Resolution Calculator applies the Rayleigh criterion θ = 1.22λ/D to compute the diffraction-limited angular resolution of any telescope or optical instrument. A reverse mode finds the minimum aperture needed to achieve a target resolution at any wavelength. Outputs auto-scale between microarcseconds, milliarcseconds, arcseconds, arcminutes, and degrees. Presets: Human Eye (5 mm), Hubble (2.4 m), JWST (6.5 m, 2 μm), VLT (8.2 m), VLA (36 km baseline), and Event Horizon Telescope (10,000 km baseline at 1.3 mm).
The Doppler Shift & Radial Velocity Calculator computes radial velocity from spectral line shifts using both the classical formula (v = z·c, valid for z < 0.1) and the relativistic formula (v = c × ((1+z)² − 1) / ((1+z)² + 1), valid at any redshift). A Velocity to Wavelength mode inverts the calculation to predict where any spectral line will appear for a given recession velocity. Eight preset lines: H-alpha (656.28 nm), H-beta, Lyman-alpha, Ca K, Ca H, Na D, O III, and Mg II.
The Flux Density & Apparent Magnitude Converter converts between flux density (Jy, mJy, μJy, nJy) and apparent magnitude in both the AB and Vega photometric systems across eight standard filters (UBVRIJHK). The AB system uses a flat zero-point of 3,631 Jy; Vega zero-points follow Bessell (1998) / Cox (2000). A Flux Ratio mode converts between flux ratio and magnitude difference using Pogson's law (Δm = −2.5 log10(F2/F1)). Also outputs flux in SI (W/m²/Hz) and CGS (erg/s/cm²/Hz). Presets: Sun, Sirius, Vega, faintest naked-eye star, and HST detection limit.
The Signal-to-Noise Ratio for Photon Counting Detectors implements the standard CCD equation SNR = St / √(St + npix(Bt + Dt + R²)) for source count rate S, sky background B, dark current D, read noise R, aperture size npix, and exposure time t. A reverse mode solves the quadratic for the exposure time needed to reach a target SNR. Classifies the dominant noise source (source, sky, dark, or read-noise limited) and reduces exactly to the pure Poisson √N limit for ideal photon counters. Presets: bright star, faint star, X-ray photon counting, and deep-sky imaging.
Who These Calculators Are For
Students in introductory astronomy and astrophysics courses will find all key formulas covered with worked examples using real stars. Physics and engineering students use them for problem-set verification and for building intuition about the extreme scales involved in stellar and cosmological physics. Amateur astronomers use them to estimate physical properties of stars from catalog data. Educators use them as interactive companions to lectures on the Hertzsprung-Russell diagram, stellar evolution, and black hole physics.