Yeovil scored twice in five second-half minutes to clinch the points at Gillingham and limber up for their play-off date with Nottingham Forest.
Jean-Paul Kalala collected a loose ball to lash home his first goal for the Glovers from 25 yards.
Yeovil wrapped up the points when Wayne Gray slotted past Simon Royce after being released by Martin Brittain.
Gillingham almost took the lead when Glovers' defender Mark Lynch headed a cross just wide of his own goal.
Gillingham: Royce, Southall, Chorley, Cox, Jackman, Bentley, Flynn (Stone 46), Crofts, Easton (Cumbers 83), Spiller, McDonald (Clohessy 46).
Subs Not Used: Johnson, Collin.
Booked: Stone.
Yeovil: Mildenhall, Lynch, Guyett, Forbes, Lindegaard, Brittain, Barry, Kalala, Welsh (Alcock 74), Gray (McCallum 88), Clarke (Webb 57).
Subs Not Used: Behcet, Smeaton.
Goals: Kalala 63, Gray 68.
Att: 7,484.
Ref: A Penn (W Midlands).