Potatoes with sprouts can be eaten safely if certain precautions are taken. The sprouts themselves contain higher levels of natural toxins called glycoalkaloids (including solanine and chaconine), which can be harmful in large amounts. However, if the potato is still firm, not green, not shriveled or soft, and the sprouts are removed before cooking, the potato is generally safe to eat. It is important to peel the potato thoroughly, especially around the eyes and any green areas, as these parts contain the most toxins. Cooking does not eliminate glycoalkaloids, so removing the toxic parts is essential. If a potato is soft, wrinkled, or extensively green, it should be discarded as it is more likely to contain harmful levels of toxins. Proper storage in a cool, dark, and dry place can help prevent sprouting and greening.