An electric door lock including: a lock housing; an operating member having a holding part and a shaft part, the shaft part able to be placed in the lock housing, the shaft part connected to the holding part, the holding part defined as a
long axis; a cog wheel able to be placed in the lock housing, the cog wheel having at least one bump; a
coupling plate installed on the shaft part of the operating member, the
coupling plate having at least one bulge and one protruding part, with the protruding part and the
long axis of the holding part designed to move in alignment with each other; a motor placed in the lock housing; three sensor switches set separately in the lock housing; operating the motor causing the bump of the cog wheel to rotate and push the bulge of the
coupling plate, so that the protruding part of the coupling plate of the electric door lock installed in the required position on a left-hand door or right-hand door, selectively touches the two sensor switches adjacent to each other, so as to reach the correct unlocked position or locked position.