# Redshift calculator > How fast is a galaxy moving away? Convert redshift to recession speed and Hubble-law distance, or work back from a speed, a distance or a shifted wavelength. Convert redshift z to recession velocity, Hubble-law distance and shifted wavelength, or find z from a velocity, a distance or an observed wavelength. - Page: https://how.box/redshift/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/redshift/?from={from}&z={z}&v={v}&d={d}&obs={obs}&rest={rest}&h0={h0} - `from` (z, velocity, distance or wavelength): z, velocity, distance or wavelength. Example: `z`. - `z` (number -0.99 to 1100): Redshift. Example: `0.1`. - `v` (number -299000 to 299000): Recession velocity, km/s. Example: `28000`. - `d` (number 0 to 100000): Distance, megaparsecs. Example: `400`. - `obs` (number 1 to 1e7): Observed wavelength, nm. Example: `721.9`. - `rest` (number 1 to 1e7): Rest wavelength, nm. Example: `656.28`. - `h0` (number 20 to 120): Hubble constant, km/s/Mpc. Example: `70`. Example answer: https://how.box/redshift/?from=z&z=0.1&v=28000&d=400&obs=721.9&rest=656.28&h0=70 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `redshift_calculate`: Convert between redshift z, recession velocity (relativistic Doppler), Hubble-law distance (v = H0 d, reliable below z about 0.1) and observed vs rest wavelength. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"redshift_calculate","arguments":{"from":"z","z":0.1,"velocity_kms":28000,"distance_mpc":400,"observed_nm":721.9,"rest_nm":656.28,"h0":70}}}` - GET: https://how.box/mcp/run/redshift_calculate?from=z&z=0.1&velocity_kms=28000&distance_mpc=400&observed_nm=721.9&rest_nm=656.28&h0=70 ## How it works Light from a galaxy that moves away from us arrives stretched to longer, redder wavelengths. The redshift z is the fractional stretch: z = 0.1 means every wavelength is 10 % longer than it was when emitted. Because the universe expands, distant galaxies recede faster the farther they are, which is Hubble's law, and a measured redshift gives both a speed and a rough distance. The wavelengths give z = λ_observed / λ_rest − 1. The recession speed follows from the relativistic Doppler formula, v / c = ((1 + z)² − 1) / ((1 + z)² + 1); z = 1 is 60 % of the speed of light, not 100 %. For small z, Hubble's law v = H₀ × d gives the distance d = c × z / H₀, with H₀ ≈ 70 km/s per megaparsec (1 Mpc = 3.26 million light-years): z = 0.1 gives about 428 Mpc, 1.4 billion light-years. The hydrogen-alpha line at 656.28 nm is then seen at 721.9 nm. H₀ is itself disputed: the cosmic microwave background (Planck) gives about 67.4 and nearby supernovae (SH0ES) about 73. Beyond z ≈ 0.1 the simple distance is only a rough guide, because the expansion changed while the light travelled; real distances need a cosmological model. Also, redshift of a nearby galaxy includes its own motion. Sources: Wikipedia on redshift; Hogg (1999), Distance measures in cosmology. ## FAQ **Can a redshift be greater than 1?** Yes. The most distant known galaxies have z above 10. The recession speed stays below the speed of light in this formula, but the expansion of space itself has no such limit. **What does a negative redshift mean?** A blueshift: the source approaches us, as the Andromeda galaxy does at about 300 km/s (z ≈ −0.001). Hubble's law gives no distance for it, because nearby motion dominates. **Why do you not just use v = c × z?** That is only accurate for small z. At z = 1 it would give the speed of light itself, while the relativistic formula gives 60 %. **What is the Hubble constant?** The rate of expansion today: each megaparsec of distance adds about 70 km/s to the recession speed. Methods disagree between about 67 and 73, so treat distances as approximate. **Is this the same as the Doppler effect of a moving car?** For nearby objects, yes. For distant galaxies most of the redshift is due to the stretching of space between us, though the arithmetic of this tool treats it as a Doppler shift. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)