What if the Sun became a red giant?
It is not a question of if. In about 7.6 billion years the Sun swells into a red giant, as almost every star its size does. This scenario lets it happen in twenty years, with the real numbers, and lets gravity sort out what happens to the planets.
What the scenario does
Over 20 simulated years the Sun grows to what a stellar model by Schröder and Smith (2008) gives for the tip of its red giant phase: 256 times as wide (1.19 times the distance from Earth to the Sun today), 2,730 times as bright, with a surface of 2,600 degrees, and a third lighter: it loses 0.332 solar masses in a wind. Like a real red giant it changes slowly at first and fastest at the end. The simulation runs at a year a second, so the Sun swells for 20 seconds and then stays a red giant.
What happens
Mercury and Venus are swallowed. The swelling Sun reaches Mercury after about 18 years and Venus just before the end, after about 20, when the Sun is already more than a hundred times its size.
Earth drifts out of reach. As the Sun loses mass, its pull weakens and every orbit widens. A slow loss of a third of the mass makes an orbit one and a half times as wide: Earth ends up at about 1.46 times its distance today, and at its closest comes within about 37 million km of the Sun's surface. Mars moves out to 2.0 to 2.3 times Earth's distance, Pluto from 39 to about 47.
Earth is baked. It gets about 1,300 times the light it gets today. In the app's simple temperature model that is about 1,450 °C: no oceans, molten rock. Mars reaches about 1,000 °C.
The habitable zone moves to the Kuiper belt. Liquid water would now be possible between about 50 and 88 times Earth's distance today, beyond Neptune. Pluto, just inside it, warms from -225 to about 45 °C. Switch on "Habitable zone" under View to see it move out.
These numbers come from runs from three starting dates; they hardly differ. Where the planets are when the Sun reaches them changes little, because it swells so slowly at first.
Could it really happen?
Yes, but much more slowly: the real swelling takes hundreds of millions of years, not twenty. And Earth probably does not get away. Schröder and Smith found that the giant Sun raises tides on Earth's orbit and drags on it through its thin outer layers, enough to pull Earth in just before the Sun reaches its largest size. Orbliterator has no tides between a planet and a star, only gravity between points, so here Earth escapes. After this phase the real Sun shrinks again, swells a second time, and ends as a white dwarf the size of Earth. The scenario stops at the first peak.
Things to try
The asteroid belt. Switch on "Asteroid belt and Kuiper belt" under View before you run it, and watch the belt drift outwards with the planets.
From Earth. Pick Earth under "Centre" and watch the Sun fill the sky.
Too fast. Press Reset, then Today in the message, select the Sun and take a third off its mass in one go under Tamper. A sudden loss leaves the orbits much more stretched than the slow wind of a red giant.
More: What if the Sun lost half its mass? · What if Earth stopped orbiting the Sun? · All scenarios · What is real and what is not to scale