Red giant will begin to expand into a subgiant. Eventually, the pressure builds up so much that the core will begin to fuse helium, and will expand even more into a red giant. At its largest, its surface (photosphere) will approximately reach the current orbit of Earth. It will then lose its atmosphere completely; its outer layers forming a planetary nebula and the core a white dwarf. The evolution of the Sun into and through the red-giant phase has been extensively modelled, but it remains unclear whether Earth will be engulfed by the Sun or will continue in orbit. The uncertainty arises
Ice giant by extreme ultraviolet (EUV) radiation emitted by θ Orionis C suggests another possible mechanism for the formation of ice giants. Multiple-Jupiter-mass gas-giant protoplanets could have rapidly formed due to disk instability before having the majority of their hydrogen envelopes stripped off by intense EUV radiation from a nearby massive star. In the Carina Nebula, EUV fluxes are approximately 100 times higher than in Trapezium's Orion Nebula. Protoplanetary disks are present in both nebulae. Higher EUV fluxes make this an even more likely possibility for ice-giant formation. The stronger EUV would increase the removal of the gas envelopes from the protoplanets