Environmental boundaries anchor cognitive maps that support memory. However, trapezoidal boundary geometry distorts the regular firing patterns of entorhinal grid cells, proposedly providing a metric for cognitive maps. Here we test the impact of trapezoidal boundary geometry on human spatial memory using immersive virtual reality. Consistent with reduced regularity of grid patterns in rodents and a grid-cell model based on the eigenvectors of the successor representation, human positional memory was degraded in a trapezoid environment compared with a square environment—an effect that was particularly pronounced in the narrow part of the trapezoid. Congruent with changes in the spatial frequency of eigenvector grid patterns, distance estimates between remembered positions were persistently biased, revealing distorted memory maps that explained behaviour better than the objective maps. Our findings demonstrate that environmental geometry affects human spatial memory in a similar manner to rodent grid-cell activity and, therefore, strengthen the putative link between grid cells and behaviour along with their cognitive functions beyond navigation.