A washing machine and a method for controlling the same are disclosed. The washing machine includes a plurality of washing devices, each of which includes a heater. Based on a target temperature of wash water heated by one heater of any one of the washing devices, the washing machine changes a target temperature setting environment of wash water heated by the remaining heater. The washing machine includes a first heater to heat wash water stored in a first tub, a second heater to heat wash water stored in a second tub, a control panel to provide a target temperature setting menu for setting a target temperature of the wash water stored in the first tub, and a controller to drive the first heater and the second heater. The controller changes the target temperature setting menu supplied from the control panel in response to the second target temperature.