You can have an unlimited distance for your fixture drain. Your trap arm can be used as long as necessary, even if your toilet still needs a vent. If your plumbing code is the UPC, the toilet's trap is limited to 6 feet.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.