Operational amplifiers · Part 16 of 36
Op-amp basics and the golden rules
Intermediate 15 min
What an op-amp is, open-loop gain, comparators, negative feedback and the two golden rules for analysing circuits.
What you will learn
- You can describe an op-amp’s inputs, output and open-loop gain.
- You can use an op-amp as a comparator.
- You can apply the two golden rules to a feedback circuit.
Before this: Bipolar transistors (BJTs)
A very high-gain difference amplifier
An operational amplifier has two inputs — non-inverting (+) and inverting (−) — and one output. It amplifies the difference between the inputs by an enormous factor, the open-loop gain A, typically 100,000 to 1,000,000 or more:
V_out = A × (V₊ − V₋)
It is powered from supply rails (for example +5 V and 0 V, or ±15 V), and the output can never go beyond them. The name comes from analogue computers of the 1940s–60s, where such amplifiers performed mathematical operations — adding, integrating, differentiating.

Without feedback: a comparator
With a gain of 100,000, a difference of just 0.1 mV drives the output 10 V — so in practice the output slams to the positive rail if V₊ > V₋ and to the negative rail otherwise. That makes a comparator: "is the temperature sensor's voltage above the threshold?" Dedicated comparator chips are faster and have outputs designed for this job; adding a little positive feedback (hysteresis) prevents the output from chattering when the input hovers near the threshold.
With negative feedback: precise and stable
Connect part of the output back to the inverting input. Now, if the output rises too far, it pulls V₋ up, which reduces the difference and pulls the output back down. The circuit settles where the difference is almost exactly zero. The huge, unreliable open-loop gain is traded for a modest, precise gain set only by resistors — Harold Black's 1927 invention of negative feedback, which made long-distance telephony possible.
The golden rules
For an op-amp with negative feedback, working within its limits:
- The output does whatever is needed to make the voltage difference between the inputs zero. (V₊ = V₋)
- The inputs draw no current.
These two rules (in the formulation popularised by Horowitz and Hill) let you analyse almost every op-amp circuit with Ohm's law and KCL.
The voltage follower
The simplest application: connect the output directly to the inverting input and the signal to the non-inverting input. Rule 1 says V₋ = V₊, and since V₋ is the output: V_out = V_in. A gain of 1 — what's the point? Rule 2: the input draws no current, while the output can supply milliamperes. The buffer lets a weak source (a voltage divider, a sensor with high internal resistance) drive a load without being loaded down — the fix for the divider problem in lesson "Kirchhoff's laws and the voltage divider".
Which op-amp?
The LM358 and the even older 741 (1968) appear in countless tutorials. For new designs at 3.3 V or 5 V you usually want a rail-to-rail CMOS op-amp, whose inputs and output can swing close to both supply rails — classic parts like the LM358 cannot reach the upper rail. The next lessons cover the standard circuits and the specifications that decide.
Key points
- An op-amp amplifies V₊ − V₋ by a huge open-loop gain; the output stays within the supply rails.
- Without feedback it acts as a comparator (add hysteresis against chatter).
- Negative feedback trades gain for precision and stability.
- Golden rules: (1) inputs at equal voltage, (2) no input current.
- The voltage follower (gain 1) buffers weak sources.
Flashcards
- Question: What does an op-amp amplify?
- Answer: The difference between its non-inverting and inverting inputs.
- Question: State the two golden rules.
- Answer: With negative feedback, the output makes V₊ = V₋; the inputs draw no current.
- Question: What is a voltage follower good for?
- Answer: Buffering a weak source so it can drive a load.
- Question: Why add hysteresis to a comparator?
- Answer: To stop the output chattering when the input is near the threshold.
Check yourself
Think about your answer, then open it. In the app the quiz is interactive, earns points and brings back what you missed.
An op-amp with open-loop gain 200,000 sees V₊ − V₋ = 20 µV. What output would that ideally give (in V)?
Show the answer
4 V (± 0.01 V)
200,000 × 20 µV = 4 V (if within the rails).
Source: The Art of Electronics, 4.1
In a voltage follower, V_in = 1.8 V. What is V_out?
- 1.8 V
- 0 V
- 3.6 V
- The positive rail
Show the answer
1.8 V
Golden rule 1: V₋ = V₊, and V₋ is the output.
Source: The Art of Electronics, 4.2
An op-amp without feedback compares 2.1 V (at +) with 2.0 V (at −), powered from 0 and 5 V. Its output is near…
- 5 V
- 0 V
- 0.1 V
- 2.05 V
Show the answer
5 V
Huge gain drives the output to the positive rail when V₊ > V₋.
Source: Op Amps for Everyone, ch. 3
Feeding part of the output back to the inverting input is called ___ feedback.
Show the answer
negative
Negative feedback reduces the input difference and stabilises gain.
Source: Op Amps for Everyone, ch. 2
Sources
- The Art of Electronics (3rd ed.), Horowitz & Hill, Cambridge University Press, 2015
- Op Amps for Everyone (Design Reference SLOD006B), Ron Mancini (ed.), Texas Instruments, 2002 (copy hosted by MIT 6.101)
- Microelectronic Circuits (8th ed.), Sedra & Smith, Oxford University Press, 2020
Facts checked on 2026-11-30. Skillgrove lessons are free learning material — no certificate and no accreditation.