Mine is 3.5 inches from the wall. I can go as close as 2.5 inches till the closed loop and return plumbing touches the wall. I had to get really low profile elbows to do it. Using regular elbows, my tank would be 5 inches from the wall at least. If you can access everything from the front, then there really is no need to keep any space behind the tank.