Tanks don't normally touch the wall.
Most toilets are designed to be about 1" from the wall.
But they could also touch the wall or be 3" or more inches away,
depending on the "rough-in" of the current drain location
That measurement is from the wall to the center of the drain.