A hubbles law calculator applies v = H₀D, the rule that galaxies move away from us at a speed proportional to their distance. Enter a distance and get the recession speed, enter a speed and get the distance, or start from a redshift or two wavelengths. It also gives the Hubble time.
How to use the hubbles law calculator
- Choose the job: speed from distance, distance from speed, from redshift or from wavelengths.
- Optionally change the Hubble constant; the default is 70.3 km/s per Mpc.
- Enter the values and press Calculate.
Hubble’s law
Hubble’s law says that the speed at which a galaxy moves away from us is v = H₀D, where D is its proper distance and H₀ is the Hubble constant [1]. In this tool the speed is in km/s, the constant in km/s per Mpc and the distance in Mpc. A galaxy twice as far away recedes twice as fast, which is the signature of a uniformly expanding universe.
The Hubble constant
The Wikipedia page quotes values near 70 km/s per Mpc: it says that a galaxy 1 megaparsec away recedes at 70 km/s, and gives 67.4 from the Planck 2018 analysis and 74.03 from the Hubble Space Telescope [1]. The Hubble constant article lists 73.04 from the SH0ES team and 67.4 from Planck, and calls the gap between early- and late-universe values the Hubble tension [3]. This tool uses 70.3, a value between the two, when you leave the box blank. The difference between the methods is a known puzzle.
Speed from distance
Choose the first job and enter the distance in megaparsecs. A galaxy at 100 Mpc recedes at 70.3 × 100 = 7,030 km/s with the default constant, and at 6,770 km/s with 67.7. The same galaxy would have a redshift of about 0.023. This is our own example. A megaparsec is about 3.09 × 10¹⁹ km, according to the Wikipedia page [1].
Distance from speed
If you know the recession speed, the distance is D = v ÷ H₀. A speed of 7,030 km/s with 70.3 km/s per Mpc gives back 100 Mpc. In practice, astronomers get the speed from the redshift and use the law to estimate a distance, since the distance of a faraway galaxy is hard to measure directly. The result is only as good as the value of H₀ that you choose.
What redshift is
Redshift z is the fractional change in wavelength: z = (λ observed − λ emitted) ÷ λ emitted [2]. An object receding from us has its light stretched towards the red, so z is positive, and a negative value is a blueshift. The wavelengths can be in any unit, as long as both use the same one. A line emitted at 500 nm and seen at 550 nm has z = 0.1.
Speed and distance from redshift
For small redshifts, the Wikipedia page says that cz = v is a good approximation, where c is the speed of light [1], exactly 299,792,458 m/s [4]. So v = 299,792.458 × z km/s, and the distance is v ÷ H₀. For z = 0.1, the speed is 29,979 km/s and the distance 426.45 Mpc with the default constant. The page states that the approximation is valid at low redshift, and it fails for large z.
The relativistic comparison
For a larger redshift, the speed from the relativistic Doppler formula, v ÷ c = ((1 + z)² − 1) ÷ ((1 + z)² + 1), is the more accurate one for a source in plain motion. This formula follows from the relativistic Doppler relation, 1 + z = √((1 + v/c) ÷ (1 − v/c)) [2], solved for v. For z = 0.1 it gives 28,487 km/s, about 5 percent lower than cz. The tool shows it next to the simple result, and warns when z is above about 0.1.
The Hubble time
The reciprocal of the Hubble constant is a time, the Hubble time, which the Wikipedia page puts at about 14.4 billion years for its constant [1]. This is not the age of the universe, because the expansion has not been constant, as we explain it. The tool works it out as 1 Mpc in km, 3.09 × 10¹⁹, divided by H₀ and by a Julian year of 31,557,600 seconds, which is our own working: 13.93 billion years for 70.3.
Universe expansion
This tool also covers the universe expansion calculator job: the speed at which a distant object recedes and the age scale of the expansion. It treats the expansion as a single constant rate, which is accurate for nearby galaxies and a rough picture for the far ones. For those, a full cosmological model would be needed.
Limits and cautions
The law relates the speed of recession to the proper distance, and the calculator takes it as a simple proportion. It ignores the peculiar motion of nearby galaxies, such as those moving towards us, and the change of the expansion rate over time. The different values of H₀ from different methods mean that distances from this page can be off by several percent. Use it for estimates and teaching.
Common mistakes
- Using light-years instead of megaparsecs. The distance must be in Mpc, with H₀ in km/s per Mpc.
- Entering a blueshift. The observed wavelength must be longer than the emitted one.
- Using cz for a large redshift. Above about 0.1 the simple relation is only rough.
- Treating H₀ as settled. Different methods give about 67 to 74 km/s per Mpc.
What next
Use this often? Add Hubbles Law to your Home screen.
Frequently asked questions
What is a hubbles law calculator?
It applies v = H₀D to find a galaxy’s recession speed from its distance, or its distance from its speed or redshift.
What Hubble constant does it use?
70.3 km/s per Mpc by default, and you can enter another value such as 67.4 or 73.
How do I turn a redshift into a distance?
For a small redshift, multiply z by the speed of light to get the speed, then divide by H₀ to get the distance in megaparsecs.
Does it work as a redshift calculator?
Yes, enter the emitted and observed wavelengths to get z, the speed and the distance.
Is the result exact?
No, the simple law is a good approximation for nearby galaxies only, and H₀ itself is still debated.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.