Disclosed is a washing machine (100) comprising: a cabinet (110) including an upper cover (112) forming a rear portion of the upper surface of the cabinet (110); a tub (130) provided within the cabinet (110); a rotatable drum (140) provided within the tub (130); a detergent dispenser (300) located above the front portion of the tub (130) and exposed to the exterior of the washing machine; and a detergent dispenser cover (200, 400) opening and closing the upper surface of the detergent dispenser (300) exposed by the upper cover (112) and formed in front of the upper cover (112).