An operational amplifier has two inputs and one output. It amplifies the difference between the non-inverting input and the inverting input. The open-loop gain is usually enormous, which is why op-amps are normally used with feedback rather than left uncontrolled.

Vout follows feedback Gain set by resistors Real limits matter
Schematic symbol for an operational amplifier + - non-inverting input inverting input output Feedback from the output decides what job the op-amp performs.
Op-amp symbol. The plus input is non-inverting, the minus input is inverting, and the surrounding feedback network turns the symbol into a useful circuit.

The feedback idea

With negative feedback, the output moves in whatever direction makes the two inputs nearly equal. This is the key mental model. The op-amp is not calmly deciding an output voltage from a tidy equation on its own; it is driving its output until the feedback network makes the input difference very small.

In a voltage follower, the output is connected directly to the inverting input. The signal goes into the non-inverting input. The output moves until the inverting input matches the signal. The result is a buffer: similar voltage, much stronger ability to drive a load.

Common op-amp circuits

Circuit What it does Why it is useful
Voltage follower Gain of about 1. Buffers a high-impedance signal.
Non-inverting amplifier Amplifies without flipping polarity. Sensor scaling and analogue front ends.
Inverting amplifier Amplifies and flips polarity. Audio, filters, summing, signal conditioning.
Active filter Shapes frequency response. Noise reduction before ADCs or audio stages.
Current sense amplifier Amplifies a small shunt voltage. Power monitoring and protection.

The table is only the quick map. The individual configurations are easier to understand with the feedback paths drawn out.

Open op-amp configurations

Supply rails are not optional details

An op-amp powered from 0 V and 5 V cannot output 12 V, and many op-amps cannot output all the way to 0 V or 5 V even when powered from those rails. "Rail-to-rail" parts get closer, but the datasheet still needs to be checked at the load current you expect.

Input range matters too. Some op-amps cannot correctly sense inputs near the negative rail, positive rail, or both. A circuit can look perfect on paper and fail because the input common-mode range is violated.

Bandwidth and slew rate

Op-amps are not infinitely fast. Gain bandwidth tells you how much gain is available at a given frequency. If you ask for high gain at a high frequency from a slow op-amp, the result will be smaller, delayed, distorted, or unstable.

Slew rate is the maximum speed at which the output voltage can change. A slow op-amp may be fine for a temperature sensor but unsuitable for audio, fast ADC driving, pulse detection, or control loops.

Offset, bias current, and noise

Real op-amps have input offset voltage. Even if both inputs are at the same voltage, the device may behave as if there is a tiny error. If your circuit has high gain, that tiny error can become a visible output offset.

Input bias current is small current that flows into or out of the input pins. With low resistor values it may not matter. With large resistor values, it can create voltage errors. Noise matters in small sensor signals, audio, precision measurement, and high gain circuits.

Op-amp or comparator?

An op-amp can compare two voltages in slow, forgiving situations, but a comparator is designed for that job. Comparators switch cleanly, recover from saturation more predictably, and often provide outputs suitable for logic circuits. If the circuit's purpose is "tell me which input is higher", a comparator is usually the proper starting point.

Practical rule

The ideal op-amp rules are useful for understanding feedback. The datasheet decides whether the real part can do the job at your supply voltage, signal range, frequency, load, accuracy, and temperature.

Common mistakes

  • Forgetting that the op-amp output cannot exceed its supply rails.
  • Choosing a part without checking input common-mode range.
  • Assuming rail-to-rail means perfectly to both rails under all loads.
  • Using an op-amp as a comparator in a circuit that needs clean switching.
  • Ignoring bandwidth, slew rate, offset, bias current, or noise.
  • Leaving feedback layout messy in high-gain or high-speed circuits.

A practical checklist

  1. What supply voltage is available?
  2. What input voltage range must the op-amp handle?
  3. How close must the output get to each rail, and into what load?
  4. What gain and bandwidth are required?
  5. Does offset, bias current, or noise affect the measurement?
  6. Is the circuit actually a comparator, filter, buffer, amplifier, or current sense stage?
Read: transistors as switches Next: configurations Back to Lab Notes