To really figure out if a tomato is a fruit or vegetable, you need to know what makes a fruit a fruit, and a vegetable a vegetable. The big question to ask is, DOES IT HAVE SEEDS?
If the answer is yes, then technically, you have a FRUIT. This, of course, makes your tomato a fruit. It also makes cucumbers, squash, green beans and walnuts all fruits as well. VEGETABLES such as, radishes, celery, carrots, and lettuce do NOT have seeds (that are part of what we eat) and so they are grouped as vegetables.”
By these definitions, a pumpkin is a fruit, botanically speaking. So are squash and zucchini.
A fruit is the mature ovary of any flowering plant. A vegetable is a plant. We usually think of it as a plant grown for food even though a lot of plants are referred to as vegetation. So a tomato is both.