A brace from Jon Walters helped Wrexham home in an incident-packed match.
Jonathan Walters got a brace for Wrexham
He tapped in a superb Andy Holt cross for the first before Dean Bennett finished Mark Jones' fine through ball and Simon Spender blasted the third.
A bizarre mistake by home keeper Mike Ingham gifted Torquay's Alan Connell a goal, the striker nipping in after Ingham dropped the ball at his feet.
Walters got his second before Torquay's 90th-minute consolation, Tony Bedeau heading in Darren Garner's free kick.
Wrexham: Ingham, Linwood, Bayliss, Holt (Warhurst 26), Spender, Mark Jones, Ferguson, Danny Williams, Smith, Walters, Bennett (McEvilly 73), Warhurst (Mackin 68). Subs Not Used: Michael Jones, Foy.
Booked: Bayliss, Walters.
Goals: Walters 17, Bennett 44, Spender 49, Walters 76.
Torquay: Marriott, Woods, Taylor, Sharp, Hill, Sow (Constantine 52), Garner, Hewlett, Kuffour, Bedeau, Connell (Coleman 83). Subs Not Used: Bittner, Hancox, Sako.
Booked: Sharp, Woods, Garner.
Goals: Connell 66, Bedeau 90.
Ref: N Swarbrick (Lancashire).