Solanine is primarily found in the green parts of potatoes, including the skin, sprouts, and leaves. It is also present in lesser amounts in tomatoes and eggplants. The concentration of solanine increases when potatoes are exposed to light, stored improperly, or become damaged.