The two ideal op amp rules form the foundation of all linear analog circuit design. Rule 1: Infinite input impedance means zero current flows into the input pins ($I_+ = I_- = 0$). Rule 2: Infinite open-loop gain, combined with negative feedback, forces the voltage difference between the inputs to zero ($V_+ = V_-$), creating a 'virtual short.' While no physical silicon perfectly matches these ideals, modern operational amplifiers come close enough that these rules allow you to calculate gain, impedance, and bias networks using basic algebra rather than complex transistor models.
In this guide, we will bridge the gap between textbook theory and the workbench. We will cover how to select and bias real-world op amps, map out their operation regions, build a complete amplifier circuit, and diagnose dead silicon with a digital multimeter (DMM).
The Two Golden Rules of Ideal Op Amps (and When They Break)
Before applying the rules, you need to recognize the device on your bench. The standard schematic symbol is a triangle with five primary terminals: Non-Inverting Input (+), Inverting Input (-), Output, Positive Supply (V+ or VCC), and Negative Supply (V- or VEE/GND). Physically, most hobbyist and prototyping op amps come in 8-pin DIP packages containing two independent amplifiers (a 'dual' op amp).
Here is how the physical pins map to a standard dual op amp (like the LM358 or TL072):
- Pin 1: Output A
- Pin 2: Inverting Input A (-)
- Pin 3: Non-Inverting Input A (+)
- Pin 4: V- (GND or VEE)
- Pin 5: Non-Inverting Input B (+)
- Pin 6: Inverting Input B (-)
- Pin 7: Output B
- Pin 8: V+ (VCC)
Rule 1: Zero Input Current ($I_{in} = 0$)
In an ideal world, the input stage draws absolutely no current. In reality, input bias current must flow to bias the internal transistors. For bipolar op amps like the LM358, this is typically 20nA to 50nA. For JFET or CMOS input op amps like the TL072, it drops to 5pA. When it breaks: If your feedback resistors are too large (e.g., in the megaohm range), even 20nA of bias current will create a significant voltage drop across the resistors, introducing a DC offset error at the output.
Rule 2: The Virtual Short ($V_+ = V_-$)
Because the open-loop gain of an ideal op amp is infinite, any tiny voltage difference between the inputs is amplified to the supply rails. Negative feedback forces the output to adjust until the inverting input exactly matches the non-inverting input. When it breaks: This rule only holds when the op amp is in its linear region with negative feedback. If the output saturates (hits the supply rail) or if you use the op amp as an open-loop comparator, the virtual short is broken, and $V_+$ will no longer equal $V_-$.
Selecting and Biasing Real-World Op Amps for the Job
Picking the right op amp prevents hours of debugging. Here are the three safe defaults for the workbench, complete with their critical ratings (assuming standard 25°C ambient temperature):
| Part Number | Topology / Input | Supply Voltage Range | Input Bias Current | Slew Rate | Best Application |
|---|---|---|---|---|---|
| LM358 | Bipolar / Dual | 3V to 32V (Single) or ±1.5V to ±16V (Dual) | ~20 nA | 0.3 V/µs | DC sensor buffering, single-supply battery circuits, low-frequency control loops. |
| TL072 | JFET / Dual | ±5V to ±18V (Dual only) | ~5 pA | 13 V/µs | Audio preamps, active filters, high-impedance sensor interfaces. |
| OPA2134 | FET / Dual | ±2.5V to ±18V (Dual) | ~5 pA | 20 V/µs | High-fidelity audio, precision DAC buffering, low-noise measurement. |
Source: Texas Instruments LM358 Datasheet
If you are running an LM358 off a single 9V battery, the op amp cannot output negative voltages. To handle AC signals (like audio), you must bias the non-inverting input at VCC/2 (4.5V). Create a 'virtual ground' using a voltage divider (two 10kΩ resistors in series from VCC to GND) and place a 10µF bypass capacitor from the midpoint to GND to filter out power supply noise. Tie your input signal to the non-inverting pin via a coupling capacitor.
Operation Regions and Application Circuit: The Non-Inverting Amplifier
An op amp operates in one of three distinct regions depending on the input differential and the feedback network. Understanding these regions is critical for knowing when Rule 2 (the virtual short) applies.
| Operation Region | Input Condition | Output Voltage ($V_{out}$) | Virtual Short Valid? |
|---|---|---|---|
| Linear (Active) | $V_+ \approx V_-$ (Negative feedback active) | Between $(V_{EE} + 0.2V)$ and $(V_{CC} - 1.5V)$ | Yes |
| Positive Saturation | $V_+ > V_-$ (Overdriven or open-loop) | Clamped near $V_{CC}$ (typically $V_{CC} - 1.5V$) | No |
| Negative Saturation | $V_+ < V_-$ (Overdriven or open-loop) | Clamped near $V_{EE}$ (typically $V_{EE} + 0.2V$) | No |
Complete Application Circuit: 11x Non-Inverting Amplifier
Let us build a practical DC amplifier using an LM358 on a dual ±12V supply. We want to amplify a 0.5V DC sensor signal to 5.5V.
- Power: Connect +12V to Pin 8 (V+) and -12V to Pin 4 (V-). Place a 100nF ceramic bypass capacitor directly between Pin 8 and Pin 4 to prevent high-frequency oscillation.
- Input: Feed the 0.5V DC signal into Pin 3 (Non-Inverting Input).
- Feedback Network: Connect a 10kΩ feedback resistor ($R_f$) from Pin 1 (Output) to Pin 2 (Inverting Input).
- Ground Resistor: Connect a 1kΩ resistor ($R_g$) from Pin 2 (Inverting Input) to Ground (0V).
The Math: The gain of a non-inverting amplifier is $A_v = 1 + (R_f / R_g)$.
$A_v = 1 + (10,000 / 1,000) = 11$.
With 0.5V at Pin 3, Rule 2 dictates that Pin 2 must also sit at 0.5V. The current through $R_g$ is $I = 0.5V / 1k\Omega = 0.5mA$. By Rule 1, zero current enters Pin 2, so that same 0.5mA must flow through $R_f$. The voltage drop across $R_f$ is $V = 0.5mA \times 10k\Omega = 5.0V$. The output at Pin 1 is therefore $0.5V + 5.0V = 5.5V$.
Bench Testing: How Op Amps Fail and How to Test Them
Op amps typically fail due to three mechanisms: latch-up (input voltage exceeds the supply rail, triggering internal parasitic thyristors), output short circuits (driving a capacitive load or shorting the output pin to a rail, burning the output stage), and ESD damage (punching through the thin gate oxides of FET-input devices).
Here is how to test a suspect 8-pin dual op amp using a standard digital multimeter.
- The Dead-Short Test (Power Off): Set your DMM to resistance mode. Measure across Pin 4 (V-) and Pin 8 (V+). You should read anywhere from a few kilohms to megaohms (depending on the parallel bypass caps and bias networks). If you read < 5Ω, the internal silicon is likely shorted, or a board-level component has failed.
- The ESD / Diode Test (Power Off): Set the DMM to diode test mode. Measure from the input pins (2, 3, 5, 6) to the supply rails (4 and 8). You are checking the internal ESD protection diodes. You should read a standard silicon diode drop (0.5V to 0.7V) in one direction and 'OL' (open loop) in the reverse. A reading of 0.0V or 'OL' in both directions indicates a blown input stage.
- The Virtual Short Verification (Power On): Power the circuit. Set the DMM to DC millivolts. Place the red probe on Pin 3 and the black probe on Pin 2 (for amplifier A). If the circuit is in the linear region, the DMM should read < 5mV (the input offset voltage). If you read > 100mV, the op amp is either saturated, missing its feedback path, or dead.
- The Rail Check (Power On): Measure the output pin (Pin 1 or 7) relative to ground. If the output is stuck exactly at V+ or V- (within 1.5V of the rail) regardless of the input signal, the output stage has likely burned out or the op amp has latched up.
For deeper troubleshooting methodologies, refer to the All About Circuits semiconductor guide on op amp failure modes.
Frequently Asked Questions About Ideal Op Amp Rules
Why do ideal op amp rules assume infinite open-loop gain?
The assumption of infinite open-loop gain is a mathematical necessity to make the 'virtual short' rule work. The output voltage is defined as $V_{out} = A_{OL} \times (V_+ - V_-)$. If $A_{OL}$ is infinite, the only way $V_{out}$ can remain a finite, real-world number (like 5V) is if the voltage difference $(V_+ - V_-)$ is infinitesimally close to zero. In real op amps, $A_{OL}$ is typically 100,000 to 1,000,000 (100dB to 120dB), which makes the error small enough to ignore for most DC and audio applications.
Do the ideal op amp rules apply to comparators?
No. The second rule (the virtual short) relies entirely on negative feedback to force the inputs to match. Comparators are designed to run open-loop (no feedback) or with positive feedback (hysteresis). Because there is no negative feedback to pull the inverting pin toward the non-inverting pin, the output simply slams into the positive or negative supply rail based on which input is higher. Never use the virtual short rule when analyzing a comparator circuit.
How do input bias currents violate the first ideal op amp rule?
The first rule states that zero current enters the input pins. In reality, bipolar input stages require base current, and FET input stages require gate leakage current. If your external feedback resistors are high (e.g., 1MΩ), a bias current of just 100nA will create a 0.1V error ($V = I \times R$). To mitigate this, you must either use FET-input op amps (like the TL072 with 5pA bias current) for high-impedance circuits, or ensure the Thevenin equivalent resistance seen by both the inverting and non-inverting pins is perfectly matched so the voltage drops cancel out.
What happens to the virtual short rule when the op amp saturates?
The rule instantly breaks. If you demand a 15V output from an op amp powered by a 12V single supply, the output transistors fully turn on and clamp the output near the 12V rail. Because the output can no longer move higher, it can no longer push current through the feedback network to raise the voltage at the inverting pin. The inverting pin voltage will fall behind the non-inverting pin voltage, creating a measurable differential voltage. The op amp is now in positive saturation, and linear math no longer applies.
Which op amp should I use for a 3.3V microcontroller ADC buffer?
Do not use the LM358 or TL072 for a 3.3V rail-to-rail ADC buffer. The LM358 cannot swing its output all the way to the positive rail (it loses about 1.5V), meaning a 3.3V supply will only yield a ~1.8V maximum output. Instead, use a modern CMOS rail-to-rail input/output (RRIO) op amp like the MCP6002 or OPA2340. These are specifically designed to operate on low single supplies (1.8V to 5.5V) and will swing within millivolts of both the 3.3V and GND rails, maximizing your microcontroller's ADC resolution.






