And because the Sun is mostly made up of hydrogen gas, it will take billions of years to fully deplete it. Once the Sun stops burning, it will transform into a red giant and its surface will start to expand continuously and will eventually be large enough to engulf the Earth.