Like all other parts of the plant except the tubers, the fruit contain the toxic alkaloid solanine and are therefore unsuitable for consumption.
Potato fruits are produced when the plants experience cool temperatures and sufficient water.
[2] In 2014, many gardeners in Michigan, United States, were alarmed when they found the green fruit which are not normally produced on the potato plant in that region.
This was due to the weather in July that year being cooler and wetter than normal, allowing the plants' flowers sufficient time to be pollinated and produce fruit.
[3] Dorothy L. Sayers's short story "The Leopard Lady", in the 1939 collection In the Teeth of the Evidence, features a child poisoned by potato berries injected with the alkaloid solanine to increase their toxicity.