Audited ·Last updated 29 Jul 2026·7 citations·Tier 1·0 uses

Hubble's Law Calculator

Convert recession velocity to distance with v = H₀d. H₀ is editable and every answer is shown at both Planck's 67.4 and SH0ES' 73.04 — the Hubble tension.

Hubble's Law Calculator

What do you want to find?
Used when solving for distance. Must be zero or positive — a blueshifted galaxy is not in the Hubble flow. If you only have a redshift z, convert it first with the redshift calculator.
Used when solving for velocity. 1 Mpc = 3.2615637772 million light-years.
EDIT THIS. H₀ is disputed: Planck 2018 (CMB) gives 67.4 ± 0.5, SH0ES 2022 (Cepheids + supernovae) gives 73.04 ± 1.04, a 5σ disagreement. The 70 default is a neutral round number, not a recommendation.
Distance (Mpc)
100
d = v/H₀. In velocity mode this echoes the distance you entered.
Distance (million light-years)
326.1564
Recession velocity (km/s)
7,000
Distance if H₀ = 67.4 (Planck 2018, Mpc)
103.8576
Distance if H₀ = 73.04 (SH0ES 2022, Mpc)
95.8379
Hubble-tension spread on this object (Mpc)
8.0197
Hubble time, 1/H₀ (Gyr)
13.9685
Hubble distance, c/H₀ (Mpc)
4,282.7494
Is the linear law valid here?
Recession velocity is 2.33% of the speed of light — squarely in the Hubble flow, where the linear law is at its most trustworthy. Your dominant uncertainty here is the value of H₀ itself, not the law.

Background.

Hubble's law — the IAU has recommended calling it the Hubble–Lemaître law since Resolution B4 in 2018 — says that a distant galaxy's recession velocity is proportional to its distance: v = H₀d. Give this calculator a recession velocity in km/s and it returns the distance in megaparsecs and in million light-years; give it a distance and it returns the velocity. It also reports the Hubble time 1/H₀ and the Hubble distance c/H₀, and tells you whether the linear law is actually valid at the velocity you entered.

The single most important thing about this calculation is that H₀ is not settled, and this page refuses to pretend otherwise. It is an editable input, not a baked-in constant, and every answer is computed a second and third time at the two headline determinations so you can see what the disagreement costs you. Planck Collaboration VI (2020), fitting the base-ΛCDM model to the cosmic microwave background, reports H₀ = 67.4 ± 0.5 km/s/Mpc. The SH0ES team (Riess et al. 2022), climbing the local distance ladder through Cepheid-calibrated Type Ia supernovae, reports H₀ = 73.04 ± 1.04 km/s/Mpc, and states plainly that this is "a 5-sigma difference with H₀ predicted by Planck+ΛCDM, with no indication this arises from measurement errors". That is the Hubble tension, and it has survived a decade of attempts to make it go away. A third, independent programme — the Chicago-Carnegie Hubble Program, using the tip of the red giant branch with HST and JWST — lands at 70.39 ± 1.22 (stat) ± 1.33 (sys), between the two.

What that means for your answer, concretely: a galaxy receding at 7,000 km/s is 103.86 Mpc away if Planck is right and 95.84 Mpc away if SH0ES is right. That is an 8.02 Mpc gap on a single object — about 26 million light-years of pure disagreement about the expansion rate, not about the measurement of that galaxy. The default here is 70 km/s/Mpc, chosen as a neutral round number that belongs to nobody; it is a placeholder, not an endorsement, and you should replace it with whichever value your source used.

The law itself is an approximation with a well-defined domain, and the page names it beside the answer rather than burying it. It works best in the Hubble flow: far enough out that a galaxy's own peculiar motion inside its group or cluster is small compared with the expansion, and near enough that the universe's changing expansion rate has not yet mattered. Close in, peculiar velocities dominate — the Andromeda Galaxy is blueshifted and approaching us, which the law simply cannot describe, and this calculator rejects negative velocities for exactly that reason. Far out, past roughly 10% of the speed of light, the distance stops depending on H₀ alone and starts depending on the whole cosmological model: the matter density, the dark-energy density and the expansion history. Beyond the Hubble distance c/H₀ the linear law returns recession speeds greater than c, which is not a paradox — cosmological recession is the expansion of space, not motion through it — but it is a loud signal that you are far outside the regime the formula was derived for.

One more distinction the page keeps explicit. The Hubble time, 1/H₀, is what you get by pretending the expansion rate has always been what it is now; at H₀ = 70 it comes out at 13.97 Gyr. That is tantalisingly close to the measured age of the universe, and it is not the same quantity. The real age integrates the whole expansion history, which has not been constant, and the numerical near-coincidence is a feature of our particular cosmology rather than an identity. Treat 1/H₀ as a characteristic timescale for the expansion, and get the age of the universe from a cosmological fit instead.

What is hubble's law calculator?

Hubble's law is the observed linear relation between the recession velocity of a distant galaxy and its distance from us: v = H₀d, where H₀ — the Hubble constant — is the present-day expansion rate, quoted in the slightly awkward but standard units of kilometres per second per megaparsec. Edwin Hubble published the relation in 1929 in the Proceedings of the National Academy of Sciences, building on Georges Lemaître's 1927 theoretical work; IAU Resolution B4 (2018) recommends the name Hubble–Lemaître law, adopted by 78% of the 4,060 members who voted.

H₀ has dimensions of inverse time, which is why it can be turned directly into two derived quantities. The Hubble time, 1/H₀, is a characteristic timescale for the expansion — 13.97 Gyr at H₀ = 70 — and the Hubble distance, c/H₀, is the distance at which the linear law would predict recession at exactly the speed of light: 4,282.75 Mpc at H₀ = 70. Numerically the Hubble time in gigayears and the Hubble distance in gigalight-years are the same number, because one is just c times the other.

What Hubble's law is not: it is not a Doppler shift caused by galaxies flying through space, it is not valid for objects bound into our own Local Group, and it is not a replacement for a cosmological model at large redshift. It is the leading-order term of a distance–redshift relation whose higher-order terms carry the information about dark energy, and it is exactly because those higher-order terms matter that supernova cosmology exists at all.

How to use this calculator.

  1. Choose whether you are solving for distance or for velocity.
  2. Enter the recession velocity in km/s, or the distance in megaparsecs. If you have a redshift z rather than a velocity, convert it on the redshift calculator first — v = cz is only valid at small z.
  3. Set the Hubble constant. Use the value your source used; 67.4 for Planck-based work, 73.04 for SH0ES-based work, 70 if you genuinely have no preference.
  4. Read the primary answer, then look at the two alternate distances underneath — they show what the unresolved H₀ disagreement costs on your specific object.
  5. Check the regime note before quoting the number. Below about 1% of light speed the answer is contaminated by peculiar motion; above about 10% it needs a full cosmological model.

The formula.

v = H₀ × d ⇒ d = v ⁄ H₀ · t_H = 1⁄H₀ · d_H = c⁄H₀

The core arithmetic is one division or one multiplication: d = v/H₀ when you know the velocity, v = H₀d when you know the distance. The units work out because H₀ is quoted in km/s per Mpc, so dividing a km/s by it leaves Mpc directly.

The derived quantities need the unit chain spelled out. The Hubble time is 1/H₀, but H₀ is not in inverse seconds, so the conversion runs through the megaparsec: 1 Mpc = 3.0856775814913673 × 10¹⁹ km exactly, so 1/H₀ = (3.0856775814913673 × 10¹⁹ km/Mpc) ÷ (H₀ km/s/Mpc) seconds. At H₀ = 70 that is 4.408 × 10¹⁷ s, and dividing by the Julian gigayear (3.15576 × 10¹⁶ s) gives 13.9684603 Gyr. The Hubble distance is simply c/H₀ = 299,792.458 ÷ 70 = 4,282.7494 Mpc. Converting that to gigalight-years gives 13.9684603 Gly — the same number as the Hubble time in Gyr, which is a useful arithmetic check that the unit chain is right rather than a coincidence.

The two comparison distances are the identical calculation run again at H₀ = 67.4 and H₀ = 73.04. Because d ∝ 1/H₀, their ratio is fixed at 73.04/67.4 = 1.08368 whatever the object: Planck's H₀ always puts a given recession velocity 8.37% further away than SH0ES' does. The tension spread output is the absolute difference in Mpc, which does scale with the object.

Rounding stage: there is no intermediate rounding anywhere. All arithmetic runs at 40 significant digits and is rounded once, at the return boundary, to ten decimal places. The regime bands are decided on the unrounded v/c ratio.

A scope note about the regime bands themselves, in the interests of not overclaiming: the two band edges used here, at 1% and 10% of the speed of light, are a presentation convention chosen for this page, not published thresholds from any paper. They are round numbers picked to separate three regimes that really are physically distinct — peculiar-motion-dominated, Hubble flow, and model-dependent. The Hubble-distance warning, by contrast, is exact: c/H₀ is where the linear law's own output reaches c.

Invalid-domain behaviour: H₀ ≤ 0 raises a field error, because H₀ = 0 is the singularity of d = v/H₀ and describes a static universe in which the law has no distance solution. A negative recession velocity also raises an error rather than returning a negative distance — blueshifted galaxies exist, but their motion is peculiar velocity within a gravitationally bound system, which Hubble's law does not describe.

A worked example.

Example

Take a galaxy whose spectrum shows it receding at 7,000 km/s, and start with the neutral H₀ = 70 km/s/Mpc. d = v/H₀ = 7,000 ÷ 70 = 100 Mpc exactly. Converting, 100 × 3.2615637772 = 326.1563777 million light-years. Now the part that matters. Re-run the same division with Planck's CMB value: 7,000 ÷ 67.4 = 103.8575668 Mpc. Re-run it with the SH0ES ladder value: 7,000 ÷ 73.04 = 95.8378970 Mpc. The two answers differ by 8.0196697 Mpc — roughly 26 million light-years of disagreement about a single galaxy, arising entirely from the unresolved Hubble tension and not at all from any uncertainty in that galaxy's measured velocity. The derived constants at H₀ = 70: the Hubble time is 13.9684603 Gyr and the Hubble distance is 4,282.7494 Mpc. At Planck's 67.4 the Hubble time stretches to 14.5073030 Gyr; at SH0ES' 73.04 it shortens to 13.3870786 Gyr. Note that none of these is the age of the universe — they are what the age would be if the expansion rate had never changed. The regime note reports that 7,000 km/s is 2.33% of the speed of light, which puts this galaxy squarely in the Hubble flow: far enough out that peculiar velocities are a minor contaminant, near enough that the cosmological model has not started to matter. This is the regime in which the linear law is at its most trustworthy — and in which, as the numbers above show, your dominant uncertainty is H₀ itself rather than the law.

hubble Constant70
recession Velocity Kms7,000
solve Fordistance

Frequently asked questions.

What is the Hubble constant, and why can't you just tell me the value?
H₀ is the present-day expansion rate of the universe, in kilometres per second per megaparsec. There is no single agreed value. Planck Collaboration VI (2020), fitting ΛCDM to the cosmic microwave background, gives 67.4 ± 0.5. The SH0ES team (Riess et al. 2022), measuring the local distance ladder directly, gives 73.04 ± 1.04 and reports the disagreement as 5σ "with no indication this arises from measurement errors". An independent tip-of-the-red-giant-branch programme with HST and JWST lands at 70.39 ± 1.22 (stat) ± 1.33 (sys). Any calculator that hardcodes one of these is hiding an open research question from you. This one makes H₀ an editable input and shows the answer at both endpoints.
What is the Hubble tension?
It is the persistent, statistically significant disagreement between H₀ measured from the early universe (the CMB, interpreted through the ΛCDM model) and H₀ measured directly in the nearby universe (the distance ladder). The gap is about 8%, and both sides have spent a decade hunting for the systematic error that would explain it away without success. Either one measurement has an unidentified systematic, or ΛCDM is incomplete — new physics between recombination and today. This calculator does not take a side; it shows you both answers and the size of the gap on your object.
Why does the answer change so much with H₀?
Because distance is exactly inversely proportional to H₀. Divide the same velocity by a smaller number and you get a bigger distance. Planck's 67.4 and SH0ES' 73.04 differ by a factor of 1.08368, so a Planck-based distance is always 8.37% larger than a SH0ES-based one for the identical velocity — 103.86 Mpc versus 95.84 Mpc for a galaxy at 7,000 km/s. That ratio is fixed for every object; only the absolute gap in Mpc grows with distance.
Is the Hubble time the age of the universe?
No, though they are numerically close in our cosmology. The Hubble time 1/H₀ is what the age would be if the expansion rate had been constant forever — 13.97 Gyr at H₀ = 70. The real age integrates the entire expansion history, which included a decelerating matter-dominated era followed by dark-energy-driven acceleration, and comes from a cosmological fit rather than from H₀ alone. The near-agreement is a property of the particular universe we live in, not an identity, and treating 1/H₀ as "the age" is one of the most common errors in popular accounts.
Can a galaxy recede faster than light?
Under cosmological expansion, yes — and it is not a violation of relativity. Special relativity forbids anything from moving through space faster than light; cosmological recession is the expansion of space itself between two objects, which is a different thing and has no such limit. The Hubble distance c/H₀ (4,282.75 Mpc at H₀ = 70) is where the linear law's own output reaches c. In practice the linear law has long since stopped being accurate by then, which is why this calculator flags any distance beyond c/H₀ rather than quietly printing a superluminal velocity.
Why won't the calculator accept a negative velocity?
Because a blueshifted galaxy is not in the Hubble flow. The Andromeda Galaxy is approaching the Milky Way rather than receding from it, not because the universe is contracting but because the two are gravitationally bound in the Local Group and their mutual attraction overwhelms the local expansion. Hubble's law describes objects receding with the expansion; feeding it a negative velocity would return a negative distance, which is meaningless. Nearby objects need a direct distance indicator instead — parallax, Cepheids, or the tip of the red giant branch.
I have a redshift z, not a velocity. What do I do?
Convert it first, and be careful about which conversion. At small z the classical approximation v = cz is fine, but it overstates the velocity badly once z passes about 0.1 and gives physically impossible answers above z = 1. Use the redshift calculator, which computes both the classical and the relativistic Doppler velocity and tells you which is appropriate at your z. Then bring the velocity back here. At genuinely cosmological redshifts, neither this page nor a Doppler formula is enough — you need a full cosmological distance calculation with a specified model.
How far can I trust the linear law?
The comfortable range is what this page calls the Hubble flow: roughly 1% to 10% of the speed of light, meaning about 3,000 to 30,000 km/s, or about 43 to 430 Mpc at H₀ = 70. Below that, a galaxy's peculiar motion inside its group or cluster is a large fraction of its recession velocity, so a redshift-derived distance is badly contaminated. Above it, the distance stops depending on H₀ alone and starts depending on the matter and dark-energy densities and the expansion history. Those two band edges are round numbers chosen for this page rather than published thresholds — they mark where the physics changes character, not a sharp line.
Why is the Hubble time in Gyr the same number as the Hubble distance in Gly?
Because the Hubble distance is exactly c times the Hubble time. A light-year is the distance light travels in a year, so "c × 13.97 Gyr" is 13.97 Gly by definition. It is a useful check that a unit chain is right: if you compute 1/H₀ in gigayears through the megaparsec-to-kilometre conversion, and c/H₀ in megaparsecs and then convert to gigalight-years, the two must agree. This calculator computes them by different routes and the tests assert they match.
Should it be called Hubble's law or the Hubble–Lemaître law?
The IAU recommends Hubble–Lemaître law. Georges Lemaître published the theoretical relation, with an estimate of the constant, in 1927 — two years before Hubble's 1929 observational paper in PNAS. IAU Resolution B4 (2018) put the renaming to an electronic vote of all members; the vote closed on 26 October 2018 with 4,060 members participating (37% turnout), 78% in favour, 20% against and 2% abstaining. Both names remain in wide use, and this page uses "Hubble's law" in the title because that is what people search for while noting the recommendation.

References& sources.

  1. [1]Planck Collaboration VI (2020), "Planck 2018 results VI: Cosmological parameters", Astronomy & Astrophysics 641, A6; arXiv:1807.06209 (abstract retrieved 2026-07-29). Abstract quotes "Hubble constant H₀ = (67.4 ± 0.5) km/s/Mpc" for base-ΛCDM. Peer-reviewed; open-access preprint.
  2. [2]Riess, A. G., et al. (2022), "A Comprehensive Measurement of the Local Value of the Hubble Constant…" (SH0ES), Astrophysical Journal Letters 934, L7, doi:10.3847/2041-8213/ac5c5b; arXiv:2112.04510 (abstract retrieved 2026-07-29). Abstract: "Our baseline result from the Cepheid-SN sample is H0=73.04+-1.04 km/s/Mpc" and "We find a 5-sigma difference with H0 predicted by Planck+LCDM, with no indication this arises from measurement errors". Peer-reviewed; open-access preprint.
  3. [3]Freedman, W. L., et al., Chicago-Carnegie Hubble Program, "Status Report on the CCHP: Measurement of the Hubble Constant Using the Hubble and James Webb Space Telescopes", arXiv:2408.06153 (abstract retrieved 2026-07-29). Reports JWST TRGB H₀ = 68.81 ± 1.79 (stat) ± 1.32 (sys) and a best HST+JWST TRGB combination of 70.39 ± 1.22 (stat) ± 1.33 (sys) ± 0.70 (σ_SN) km/s/Mpc — an independent third determination. Open-access preprint.
  4. [4]Hubble, E. (1929), "A Relation Between Distance and Radial Velocity Among Extra-Galactic Nebulae", Proceedings of the National Academy of Sciences 15(3), 168–173. The original observational paper establishing the linear velocity–distance relation. Free full text via PubMed Central (page images); retrieved 2026-07-29.
  5. [5]International Astronomical Union, press release iau1812 (2018), "IAU members vote to recommend renaming the Hubble law as the Hubble–Lemaître law" (retrieved 2026-07-29). Records IAU 2018 Resolution B4 and the electronic vote closing 26 October 2018: 4,060 members voting (37% turnout), 78% in favour, 20% against, 2% abstaining.
  6. [6]Mamajek, E. E., et al. (2015), "IAU 2015 Resolution B2…", arXiv:1510.06262 (retrieved 2026-07-29). Source of the exact parsec definition, (648 000/π) au = 3.085 677 581 × 10¹⁶ m, used for every Mpc↔km and Mpc↔Mly conversion on this page. Open-access preprint of an adopted IAU resolution.
  7. [7]NIST/CODATA 2022, "Speed of light in vacuum": c = 299 792 458 m s⁻¹, exact. Retrieved 2026-07-29. Used for the Hubble distance c/H₀ and the v/c regime bands.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 682 calculators remain free
  • No billing is enabled
Coming soon