Astronomical Distance Converter (Light-Years, AU, Parsecs)

Convert any distance between kilometres, miles, light-time, AU, light-years and parsecs, see light travel times, a table of real distances and a solar-system scale model.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Convert a distance

    Type a number, choose its unit and read it in all other units with the light travel time.

  2. 2
    Follow the working

    Read how each conversion factor is defined in the worked steps.

  3. 3
    Explore real distances

    Open Distances to things to compare the planets, nearby stars and galaxies.

  4. 4
    Add your own object

    Press + Object and enter a name, a distance and its unit.

  5. 5
    Build a scale model

    In Scale model choose the Sun's size and read each planet's size and distance.

  6. 6
    Practise and export

    Answer conversion questions in Practice, export a CSV or print the scale model.

About this tool

Distances in space are so large that kilometres stop being useful. Astronomers use the astronomical unit for the solar system, the light-year for popular science and the parsec for professional work. Students meet all three and need to move between them, often in a question that also asks how long light takes to make the journey. This converter takes a distance in any of ten units and shows it in all of them at once, together with the light travel time and the working. A second tab lists real distances from the Moon to the Andromeda Galaxy, and a scale-model tab works out how big each planet and how far from the Sun it would be if the Sun were a ball of a size you choose.

The units and where they come from

- Astronomical unit (AU): fixed by the International Astronomical Union in 2012 at exactly 149 597 870.7 km, close to the average Earth-Sun distance. - Light-year: the distance light travels in one Julian year of 365.25 days at 299 792.458 km/s, which is 9.4607 × 10¹² km. - Parsec: the distance at which one astronomical unit spans an angle of one arcsecond. It equals 648 000/π AU, which is 206 264.8 AU or 3.2616 light-years. Kiloparsecs and megaparsecs are used for galaxies. - Light-seconds, light-minutes and light-hours are convenient inside the solar system: the Sun is about 8.3 light-minutes away.

Light travel time

Because light has a finite speed, looking at a distant object means looking back in time. The time is simply distance divided by the speed of light. Sunlight takes 499 seconds to reach Earth, radio signals take over four hours to reach Neptune, and the light we see from the Andromeda Galaxy left it about 2.5 million years ago.

Distances to real objects

The table lists the planets at their mean distances from the Sun, the Moon, nearby stars such as Proxima Centauri at 4.25 light-years, bright stars such as Sirius, Vega, Polaris and Betelgeuse, the centre of the Milky Way and the Andromeda Galaxy. Each row shows the distance in millions of kilometres or parsecs, in light-years and as a light travel time. You can add objects of your own, such as a space probe, in any unit.

A scale model of the solar system

Choose how wide the Sun should be, for example a 30 cm ball. Every planet is then scaled by the same factor for both its size and its distance. Earth becomes a 2.75 mm bead about 32 m away and Neptune a 1 cm marble almost a kilometre away; Proxima Centauri would be more than 8 000 km away. A logarithmic strip shows all eight planets on one line, which is the only way they fit.

Worked example

Proxima Centauri is 4.2465 light-years away. In parsecs: 4.2465 ÷ 3.2616 = 1.302 pc. In kilometres: 4.2465 × 9.4607 × 10¹² = 4.02 × 10¹³ km. Its light takes 4.25 years to arrive, and its parallax angle is 1 ÷ 1.302 = 0.768 arcseconds.

Limits

Planet distances are averages; real distances change along each orbit. Star and galaxy distances are rounded published estimates with real uncertainty, especially for distant giants such as Betelgeuse. The tool converts lengths; it does not account for the expansion of the universe, where distance definitions for very remote galaxies differ.

Worked example

4.2465 ly ÷ 3.2616 = 1.302 pc = 4.02 × 10¹³ km; light takes 4.25 years; parallax 0.768″.

Quick facts

Frequently asked questions

Is a light-year a unit of time?

No. It is a distance: how far light travels in one year, about 9.46 trillion kilometres.

Why do astronomers prefer parsecs?

Parsecs come straight from parallax measurements: a star with a parallax of p arcseconds is 1/p parsecs away.

How long does sunlight take to reach Earth?

About 499 seconds, or 8 minutes 19 seconds, at the mean distance of 1 AU.

Why is the AU an exact number?

Since 2012 the IAU defines it as exactly 149 597 870.7 km instead of deriving it from the Earth's orbit.

How accurate are the star distances?

Nearby stars are known to better than one per cent. Distant giants such as Betelgeuse and Rigel can be uncertain by ten per cent or more.

Can I print the scale model?

Yes. Print scale model gives a table of model sizes and distances for the Sun size you chose.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages