Goals from Danny Swailes, Aaron Wilbraham (two) and Sean O´Hanlon did the damage for Paul Ince´s men, who will see League One football confirmed if Stockport lose on Wednesday night.
It also left Wrexham - who briefly got back to 2-1 through a Neil Roberts penalty - seven points adrift of safety with five games remaining.
Copyright (c) PA Sport 2008, All Rights Reserved.
Do YOU want to write for GiveMeSport? Get started today by signing-up and submitting an article HERE: https://www.givemesport.com/writeforgms