A method for operating a washing machine appliance includes flowing a volume of liquid into a tub, agitating articles within the tub for a first period, the tub containing the volume of liquid, and measuring movement of the tub during agitation of the articles within the tub, the tub containing the volume of liquid. The movement is measured using an accelerometer and a gyroscope. The method further includes agitating articles within the tub for a second period when the final measured movement is greater than an out-of-balance movement threshold, the tub containing the volume of liquid. The method further includes draining liquid from the tub when the final measured movement is less than the out-of-balance movement threshold, and spinning a basket after draining liquid from the tub.