This chemical is in high concentrations in the leaves, stems, and sprouts of the plant, while it is less concentrated in the tubers. Prolonged exposure to light or any damage to the potatoes, increases the levels of solanine in them. Hence, if a potato has turned green it's likely to contain higher levels of this toxin.