text: Production In 2022, world production of tomatoes was 186 million tonnes, with China accounting for 37% of the total, followed by India, Turkey, and the United States as major producers (table).
  Toxicity
  The leaves, stem, and green unripe fruit of the tomato plant contain small amounts of the alkaloid tomatine, whose effect on humans has not been studied. They also contain small amounts of solanine, a toxic alkaloid found in potato leaves and other plants in the nightshade family. However, solanine concentrations in foliage and green fruit are generally too small to be dangerous unless large amounts are consumed—for example, as greens.
  Small amounts of tomato foliage are sometimes used for flavoring without ill effect, and the green fruit of unripe red tomato varieties is sometimes used for cooking, particularly as fried green tomatoes. There are also tomato varieties with fully ripe fruit that is still green. Compared to potatoes, the amount of solanine in unripe green or fully ripe tomatoes is low. However, even in the case of potatoes, while solanine poisoning resulting from dosages several times the normal human consumption has been demonstrated, actual cases of poisoning from excessive consumption of potatoes are rare.
  Tomato plants can be toxic to dogs if they eat large amounts of the fruit, or chew plant material.