Have no fear, the sun will not explode. You need about 8 times the mass of the sun in order for a star to explode in a supernova. The sun will expand into a red giant when it finishes fusing hydrogen into helium. When this happens the earth might be swallowed up in the expansion. After the sun finishes burning helium and continues up the fusion chain to iron the fusion in the core will fail and the outer layers of the sun will puff off into a planetary nebula. This won’t be a particularly violent event. The naked core leftover will be a white dwarf which is effectively just a molten ball of mostly carbon and oxygen gradually cooling off. It will take trillions of years to cool off.
Have no fear, the sun will not explode. You need about 8 times the mass of the sun in order for a star to explode in a supernova. The sun will expand into a red giant when it finishes fusing hydrogen into helium. When this happens the earth might be swallowed up in the expansion. After the sun finishes burning helium and continues up the fusion chain to iron the fusion in the core will fail and the outer layers of the sun will puff off into a planetary nebula. This won’t be a particularly violent event. The naked core leftover will be a white dwarf which is effectively just a molten ball of mostly carbon and oxygen gradually cooling off. It will take trillions of years to cool off.