An operational amplifier according to an embodiment of the invention includes: a control signal input terminal receiving a digital control signal from an external device; first and second transistors as a differential pair of a differential amplifier circuit; a constant current circuit supplying a predetermined current to the differential pair; a first resistor provided between the constant current circuit and the first transistor and involving a first potential difference; and a second resistor provided between the constant current circuit and the second transistor and involving a second potential difference, the operational amplifier changing a resistance value ratio between the first resistor and the second resistor in accordance with the control signal input to the control signal input terminal.