An electric nail gun includes a nail-striking subunit that is adapted to strike a nail, a lifting wheel that is movable to become engageable and not engageable with the nail-striking subunit, a driving member that is rotatable by a motor, and a transmission shaft that is movably connected between the driving member and the lifting wheel, and that is convertible between a first position, where the lifting wheel is engageable with the nail-striking subunit such that rotation of the driving member results in movement of the nail-striking subunit, and a second position, where the lifting wheel is not engageable with the nail-striking subunit such that rotation of the driving member does not result in movement of the nail-striking subunit.