Despite its savory role in roasted dishes and autumn soups, a pumpkin is botanically a fruit—and specifically a
type of berry called a pepo—because it develops from a flower’s ovary and encloses seeds
inside fleshy tissue beneath a thick, hard rind.
As a member of the cucurbit family alongside cucumbers, squash,
and melons, its scientific identity depends on plant structure rather than size or sweetness.
In everyday cooking, however, culinary labels follow flavor and preparation,
making it completely reasonable to treat pumpkin as a vegetable in hearty meals even while baking it into sweet pies.
Ultimately, this autumn staple holds two valid identities at once, bridging scientific classification and kitchen tradition.