In a coil device, an iron core has a plurality of tooth portions. A coil group has: a plurality of winding portions provided at the tooth portions; and a plurality of terminal conducting wire portions led out from the winding portions. A coil end connection portion is provided with a plurality of terminals to which the terminal conducting wire portions are connected. The coil end connection portion has: a connection portion main body fixed to the iron core; and a movable guide portion connected through an elastic deformation portion to the connection portion main body. The connection portion main body is provided with terminals. The movable guide portion guides the terminal conducting wire portions to the terminals.