An electric drill having a function for preventing drilling of unexpected oblique hole. Further in the electric drill, when the direction of drilling is displaced in drilling work using the electric drill, it is sensed automatically to stop the drilling. The electric drill performs drilling in the direction perpendicular a workpiece and have a tilt sensor mounted on a tilt sensor mounting surface defined in parallel to the ground surface.