The legs are 1/2" from the back. If there's an issue with this, the cabinet can be drilled into the wall & only have them standing with the 2 front legs. This causes no issue.