Hubbles Law Calculator - v = H0 * d in km/s, Mpc, and light-years
Use this hubbles law calculator to find recession velocity, distance, and the Hubble constant from any two of the three inputs.
Hubbles Law Calculator
Results
What Is Hubbles Law Calculator?
A hubbles law calculator turns Edwin Hubble's linear relationship between recession velocity and distance into a quick numeric answer. Supply the Hubble constant H0 (with presets for Planck 2018, SH0ES 2019, or a rounded 70 km/s/Mpc) and the distance; the calculator returns the recession velocity in km/s and as a percent of the speed of light. It also runs the other way: from a measured recession velocity it returns the comoving distance in Mpc, millions of light-years, or gigalight-years, plus the Hubble time and Hubble distance derived from the active H0.
- • Recession velocity from a catalog distance: Plug in a published comoving distance and the active H0 to read off v, v/c, and a low-z redshift comparison.
- • Distance from a measured radial velocity: Enter an observed recession velocity to recover the comoving distance in Mpc, Mly, and Gly under the chosen H0.
- • Hubble constant from a velocity-distance pair: Use a single galaxy with both a recession velocity and a distance to back out a local H0 estimate.
- • Cross-check the H0 tension: Switch between Planck 2018 and SH0ES 2019 presets to see how the same distance produces a different recession velocity.
The active H0 is shown next to the result panel, and the entered distance is converted to Mpc internally so the displayed recession velocity is always H0 in km/s/Mpc times d in Mpc.
For the kinematic cousin that turns the same distance and a central body's gravity into an orbital period, the Orbital Period Calculator solves T = 2 pi sqrt(a^3 / mu) under Earth, Sun, Moon, Mars, and custom mu presets.
How Hubbles Law Calculator Works
The calculator reads the H0 preset (or the custom H0 value), reads the active solve mode, converts the entered distance to Mpc, and applies v = H0 * d or its rearrangement. The Hubble time 1/H0 and the Hubble distance c / H0 drop out of the same H0, so the result panel can show characteristic age and horizon scales alongside the kinematics.
- v: Recession velocity in km/s, the speed of the Hubble flow.
- d: Comoving distance in Mpc, the present-day proper distance to the object.
- H0: Hubble constant in km/s per Mpc. Planck 2018 quotes 67.4, SH0ES 2019 quotes 74.03, and 70 is a common rounded value.
- t_H = 1 / H0 and D_H = c / H0: The Hubble time in gigayears and the Hubble distance in gigalight-years, two derived scales that read H0 as an age and as a horizon.
For low-redshift sources the same relationship is sometimes written d = c * z / H0, where z is the cosmological redshift and c * z is the non-relativistic approximation to the recession velocity. The result panel reports v / c alongside the entered redshift so the two views can be compared without swapping tools.
Recession velocity at 100 Mpc with Planck 2018 H0
H0 = 67.4 km/s/Mpc, d = 100 Mpc, Solve For = recession velocity
v = H0 * d = 67.4 * 100 = 6740 km/s. v/c = 6740 / 299792.458 = 0.02248, or 2.248% of c.
v = 6740.00 km/s (2.248% of c). Hubble time 1 / H0 = 14.49 Gyr, Hubble distance c / H0 = 14.49 Gly.
A galaxy at 100 Mpc under Planck 2018 recedes at about 2.25% of the speed of light.
According to Wikipedia, Hubble's law, the recession velocity of a distant galaxy is proportional to its distance from the observer, and the proportionality constant H0 (the Hubble constant) is conventionally expressed in kilometers per second per megaparsec.
For the orbital cousin that maps two sidereal periods to a synodic cycle, the Synodic Period Calculator shows how periodic motion looks under a different reference frame, in the same way the v = H0 * d relationship reads differently under Planck 2018 and SH0ES 2019 H0.
Key Concepts Explained
Four ideas cover every number the hubbles law calculator returns and the limitations behind them.
Hubble Constant H0 (km/s per Mpc)
The proportionality constant in v = H0 * d. Planck 2018 quotes 67.4 km/s/Mpc, SH0ES 2019 quotes 74.03 km/s/Mpc, and 70 is the textbook default.
Recession Velocity v (km/s)
The speed at which the Hubble flow carries the galaxy away from the observer. It can exceed c at large distances, a coordinate effect of expanding space.
Comoving Distance d (Mpc)
The present-day proper distance to the galaxy, defined by removing the cosmic scale factor so d in Mpc and H0 in km/s/Mpc are defined at the same epoch.
Hubble Time 1/H0 and Hubble Distance c/H0
Two derived scales that read H0 as an age and as a horizon: 1/H0 in gigayears and c/H0 in gigalight-years.
For the plasma-physics cousin that turns magnetic field and density into a characteristic wave speed, the Alfven Velocity Calculator solves V_A = B / sqrt(mu * rho) under the same teaching cluster of astrophysics unit conversions.
How to Use This Calculator
Five short steps move you from a galaxy distance or a recession velocity to a defensible v = H0 * d answer.
- 1 Pick the Hubble constant preset: Choose Planck 2018 for the CMB value, SH0ES 2019 for the Cepheid-supernova value, the rounded 70 for textbook defaults, or Custom.
- 2 Set the solve mode: Pick recession velocity from distance, distance from recession velocity, or Hubble constant from a velocity-distance pair.
- 3 Enter the distance and its unit: Type the comoving distance and pick Mpc, Mly, Gly, or ly. The calculator converts to Mpc before the formula runs.
- 4 Enter the recession velocity if solving for distance: When Solve For is distance, type the recession velocity in km/s. Negative values are allowed.
- 5 Read the result panel and the context rows: The primary result is v in km/s or d in Mpc. The Hubble time, Hubble distance, and v/c rows are derived from the active H0.
A nearby-galaxy catalog lists a comoving distance of 16.5 Mpc. Under SH0ES 2019 the calculator returns v = 1221.50 km/s (0.407% of c); under Planck 2018 the same distance gives v = 1112.10 km/s. The ratio between the two recession velocities is the cleanest way to feel the H0 tension in a single calculation.
For the observation-planning cousin that turns a wavelength and a telescope diameter into a diffraction-limited resolution, the Angular Resolution Calculator uses the same Gaussian-beam ideas that show up when the Hubble flow is measured with finite resolution.
Benefits of Using This Calculator
A dedicated hubbles law calculator keeps the units honest and lets the same panel support v, d, and H0 modes without re-deriving the algebra.
- • Three solve modes in one panel: Recession velocity, distance, and Hubble constant are computed by the same v = H0 * d family of equations.
- • Three H0 presets plus a custom value: Planck 2018, SH0ES 2019, and a rounded 70 are preloaded, with a Custom field for any H0. The active H0 is shown on the result panel.
- • Mpc, Mly, Gly, and ly distance units: Every entry is converted to Mpc internally, and the same distance is reported back in Mpc, Mly, and Gly.
- • Hubble time and Hubble distance rows: The result panel reports 1/H0 in gigayears and c/H0 in gigalight-years, so the active H0 reads as an age and as a horizon distance.
- • Redshift cross-check row: The c*z reference speed is reported next to the recession velocity for a low-z comparison.
The same panel supports classroom problems, lab tutorials, and observational sanity checks.
For the broader cosmological-context cousin that puts a number on communicable civilizations in the Milky Way, the Alien Civilization Calculator uses astrobiological Drake-style parameters that share the same Mpc and light-year unit family as the Hubble law result.
Factors That Affect Your Results
Three inputs drive the answer, and two limitations tell you when to expect a real measurement to differ from the model.
Hubble Constant Preset
Switching from Planck 2018 to SH0ES 2019 rescales every recession velocity by 1.098, enough to shift a galaxy across the low-velocity / noticeable-fraction-of-c boundary.
Comoving Distance
Recession velocity scales linearly with distance, so doubling the distance at fixed H0 doubles v. The same distance in Mpc and Mly enters the formula via 1 Mpc = 3.2615637769 Mly.
Solve Mode and Inputs
Velocity mode uses d, distance mode uses v, and H0 mode uses both. The active preset stays visible regardless of which way the equation is solved.
- • The Hubble flow approximation breaks down at low redshift (Local Group and Virgo Cluster), where peculiar velocities of several hundred km/s can dominate the recession signal. The linear v = H0 * d relationship is most accurate beyond roughly 50 Mpc.
- • At very high redshift the linear Hubble law gives way to the full cosmological model. For z above about 0.1, the relationship between recession velocity, redshift, and comoving distance depends on the matter and dark-energy content of the universe.
According to arXiv preprint 1807.06209 (Planck 2018 results VI), the cosmological-parameter fit to the cosmic microwave background gives a Hubble constant of 67.4 km/s per megaparsec, and according to the ESA / Hubble Space Telescope press release heic1906 (SH0ES 2019), the local distance ladder gives 74.03 km/s per megaparsec, 6.6 km/s/Mpc higher than the Planck 2018 value.
For the clock-rate cousin that quantifies how time reads differently under gravity or high velocity, the Time Dilation Calculator solves the time-dilation relation, which is the natural companion to Hubble's law when discussing how recession and time-of-flight relate at high redshift.
Frequently Asked Questions
Q: What is Hubble's law in simple terms?
A: Hubble's law says the recession velocity of a distant galaxy is proportional to its distance from the observer. The proportionality constant H0 is the Hubble constant, so v = H0 * d. The farther a galaxy is, the faster it appears to recede under cosmic expansion.
Q: What is the Hubble constant H0 used by this calculator?
A: The hubbles law calculator ships with three H0 presets: Planck 2018 (67.4 km/s/Mpc) from the cosmic microwave background, SH0ES 2019 (74.03 km/s/Mpc) from Cepheid and supernova calibration, and a rounded 70 km/s/Mpc. A Custom field accepts any H0 in km/s/Mpc.
Q: How do you convert a Hubble law result from Mpc to light-years?
A: The calculator converts the entered distance to Mpc internally, then reports the result in Mpc, million light-years, and gigalight-years. The conversion uses the IAU 2015 factor 1 Mpc = 3.2615637769 million light-years.
Q: Can this calculator estimate distance from a measured redshift?
A: Yes. Enter the recession velocity in the recession velocity box, choose Solve For = distance, and the calculator returns the comoving distance in Mpc, Mly, and Gly under the active H0. The c*z reference speed is shown for a low-z comparison.
Q: Why do different sources publish different Hubble constant values?
A: Different distance ladders produce different H0 values. The Planck 2018 cosmic microwave background fit gives 67.4 km/s/Mpc, while the SH0ES 2019 Cepheid-supernova calibration gives 74.03 km/s/Mpc. The 6.6 km/s/Mpc gap is the H0 tension.
Q: When does Hubble's law stop being accurate?
A: At low redshift (Local Group and Virgo Cluster), peculiar velocities of several hundred km/s can dominate the recession signal. At high redshift (z greater than about 0.1), the linear Hubble law gives way to the full cosmological model that depends on the matter and dark-energy content of the universe.