A white dwarf is an extremely dense and small star, typically the size of an ordinary planet. White dwarfs are the result of a low-mass star (like our Sun) running out of nuclear fuel and shedding its outer layers in a planetary nebula.