The invention relates to a method for operating a washing machine (1), comprising a suds container (2), a drum (3) for accommodating laundry items (4), a drive motor (5) for the drum (3), a pressure sensor (6) for determining a hydrostatic pressure p as a measure of a height of an aqueous liquid (7) located in the suds container (2), a control device (8), and at least one position sensor (9) for determining a position and a behavior of a vibration system (2, 3, 5) of the washing machine (1), which vibration system comprises the suds container (2), the drum (3), and the drive motor (5), during the operation of the washing machine (1), wherein the following steps are performed: (a) measuring the hydrostatic pressure of the aqueous liquid (7) in the suds container (2) by means of the pressure sensor (6); (b) measuring the position and the behavior of the vibration system (2, 3, 5) by means of the at least one position sensor (9); (c) forwarding the position-sensor signals measured in step (b) to the control devi