The present invention relates to a washing machine, having an actively movable balancer, and method of controlling the same. The washing machine according to an embodiment of the present invention includes: a tub; a drum; a balancing unit moving along a circumference of the drum; and a transmission coil provided at the tub, and to generate a magnetic field and transmit power wirelessly to the balancing unit, wherein the balancing unit comprises: a reception coil to generate electric power from the magnetic field formed by the transmission coil; and a position sensing unit to sense the magnetic field formed by the transmission coil and to generate a position signal when the balancing unit passes through the transmission coil.