The Sun is expected to die in about 5 billion years. At that time, it will exhaust its hydrogen fuel and expand into a red giant, engulfing the inner planets including Mercury and Venus, and possibly Earth. After this red giant phase, it will shed its outer layers and shrink into a white dwarf star, a hot but dim remnant of its former self. Eventually, it will cool further and fade as a black dwarf, though this final stage takes much longer than the red giant phase. Life on Earth will become impossible much earlier—within about 1 billion years—as the Sun gradually heats up and causes Earth's oceans to boil away. Most life on Earth will likely end long before the Sun becomes a red giant. This entire process, from the Sun's current main sequence stage to its death, spans roughly 10 billion years, with the Sun about halfway through now.