If you check the documentation that came with the washer, it should contain the maximum drain height. Generally, the maximum height is around 39" (99 cm). Newer washers often have a drain hose permanently attached, which is designed to make drain installation fool proof.
How high should a washing machine standpipe be?
Laundry standpipes must be tall enough to extend past the washing machine's overflow line—typically 30-36” in height, or 18”-30” above the trap.
Does a washing machine drain hose need to be elevated?
Yes, the drain hose should be raised, and it's always safer to do so higher than the washing machine itself. This would eliminate the possibility of siphoning. You may also take other measures to ensure that you have the best drainage possible.
What is the minimum height for a standpipe for a washing machine drain?