Box turtles need far more floor space than first-time keepers usually expect. They are active walkers that roam and forage across a sizeable territory in the wild, so a cramped tank leads to stress and pacing behavior. Floor area matters much more than height, and a common guideline is to provide the largest horizontal footprint you reasonably can rather than a tall, narrow vivarium.
An enclosure also has to accommodate a full temperature and humidity gradient, which takes room. The turtle should be able to move from a warm basking zone to a cooler retreat and from a drier area to a humid hide, all without feeling exposed. A space too small to support those gradients forces compromises that undermine the animal's health.
Plan for growth and enrichment when you size an enclosure. A setup that feels generous for a single adult quickly becomes tight once you add substrate depth, hides, a water area, and plants. Erring toward more space is almost always the better mistake, and many keepers find that an outdoor pen or a custom-built indoor table outperforms a standard glass tank for this reason.