The controller for a handpiece is a controller for controlling a handpiece that is used for nail treatment, toreutics, jewelry work, die machining, medical use, dental use and other precision machining. The controller for a handpiece is used to connect a handpiece plug to a connection terminal shown as a small circular cutout at a lower right side of the right side elevational view, and shown as a small circular cutout in a lower right of the reference perspective view. In a connected state, upon turning on a power switch shown as a circular shape at a left side of the right side elevational view, and as a circular shape outwardly protruding in the reference perspective view, a handpiece bit is caused to operate, thereby enabling cutting, grinding, piecing and other precision machining. Further, upon turning an adjustment knob cylindrically protruding and shown at a about a center of the right side elevational view and at a lower right side of the reference perspective view, a motor rotation speed is changed, thereby achieving bit operation suitable for precision machining.