The toilet should be set at least 15 inches from the center of the flange to the wall frame. There is a standard distance from the back wall to the wall framing.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.