The Differential Op Amp: Symbol, Pinout, and Safe Defaults
A differential op amp is the workhorse of analog signal conditioning. At its core, it subtracts the voltage at its inverting input (-) from the voltage at its non-inverting input (+), multiplying the difference by its open-loop gain. In practical circuit design, we apply negative feedback to tame that massive open-loop gain into a precise, stable closed-loop gain while rejecting common-mode noise—signals that appear identically on both inputs.
Symbol and Pinout Description
The standard schematic symbol is a triangle pointing right. The non-inverting input (+) and inverting input (-) are on the left vertical edge, and the output is on the right point. Power rails (VCC and VEE/GND) are typically drawn on the top and bottom but are often omitted in high-level schematics.
For the ubiquitous 8-pin DIP or SOIC package (like the LM358 dual op amp), the standard pinout is:
- Pin 1: Output A
- Pin 2: Inverting Input A (-)
- Pin 3: Non-Inverting Input A (+)
- Pin 4: GND / VEE (Negative Supply)
- Pin 5: Non-Inverting Input B (+)
- Pin 6: Inverting Input B (-)
- Pin 7: Output B
- Pin 8: VCC (Positive Supply)
Safe Default Part Numbers for the Bench
When you need a differential amplifier and don't want to overthink the selection, these three part numbers cover 90% of hobbyist and prototyping needs:
- LM358 / LM324: The ultimate general-purpose single-supply defaults. Ratings: 3V to 32V single supply (or ±1.5V to ±16V dual), 1MHz gain-bandwidth product. Cost: ~$0.15/ea. Caveat: Crossover distortion near mid-supply and not rail-to-rail output.
- TL072: The go-to for audio and low-noise dual-supply applications. Ratings: ±18V max supply, JFET inputs (very low bias current), 3MHz bandwidth. Cost: ~$0.40/ea.
- INA128: When a standard op amp isn't enough, this true instrumentation amplifier features internal laser-trimmed matched resistors. Ratings: ±2.25V to ±18V, 120dB CMRR. Cost: ~$4.50/ea. Use this when measuring microvolt-level shunt drops in noisy environments.
Biasing and Operation Regions
How you bias a differential op amp depends entirely on your power supply architecture. If you are running a dual supply (e.g., ±12V), the inputs and outputs are referenced to 0V (ground). If you are running a single supply (e.g., 0V to 12V), you must create a "virtual ground"—usually a voltage divider buffered by another op amp or a simple RC network—to bias the inputs at mid-supply (6V) so the output can swing both positive and negative relative to that reference.
Operation Regions Table
Understanding where your op amp is operating prevents hours of debugging. Here are the typical regions for a standard BJT-input op amp like the LM358 on a 12V single supply (0V to 12V):
| Operation Region | Input Condition | Output Voltage (Typical 12V Supply) | Circuit Behavior |
|---|---|---|---|
| Linear (Active) | V+ ≈ V- (within mV) | 1.5V to 10.5V | Negative feedback is working. Vout = Gain × (V+ - V-). |
| Positive Saturation | V+ > V- by >1mV | ~10.5V (VCC - 1.5V) | Output is slammed to the positive rail. Feedback loop is broken or overloaded. |
| Negative Saturation | V- > V+ by >1mV | ~0.02V (VEE + 20mV) | Output is pulled to ground. Common in single-supply circuits when V+ drops below V-. |
| Common-Mode Violation | Inputs > 10V or < 0V | Unpredictable / Phase Reversal | Inputs exceed the datasheet's common-mode range. Output may flip polarity unexpectedly. |
Complete Application Circuit: High-Side Current Sense Amplifier
One of the most common and practical uses for a differential op amp is measuring current without breaking the ground plane. This high-side current sense circuit measures 0-5A across a shunt resistor and outputs a 0-5V signal suitable for a 5V microcontroller ADC (like an Arduino or ESP32).
Component List and Values
- U1: LMV358 (Low-voltage, rail-to-rail output version of the LM358, crucial for hitting exactly 5V on a 5V supply).
- R_shunt: 0.1Ω, 2W, 1% tolerance metal film.
- R1, R2 (Input Network): 10kΩ, 0.1% tolerance metal film. (Using 0.1% here is mandatory; 1% resistors will destroy your Common-Mode Rejection Ratio).
- R3, R4 (Feedback/Gain Network): 100kΩ, 0.1% tolerance metal film.
- C1 (Bypass): 100nF (0.1µF) X7R ceramic, placed physically adjacent to U1 VCC and GND pins.
- C2 (Filter): 10nF ceramic, placed in parallel with R4 to limit bandwidth and filter high-frequency switching noise.
Circuit Wiring and Math
Connect the load in series with R_shunt to the positive supply (e.g., 12V). The top of the shunt connects to R1, which goes to the non-inverting input (Pin 3). The bottom of the shunt connects to R2, which goes to the inverting input (Pin 2). R3 connects from Pin 2 to the Output (Pin 1). R4 connects from Pin 3 to your virtual ground or system ground (0V).
The Math: At 5A, the voltage drop across the 0.1Ω shunt is 0.5V. The differential gain is set by R3/R1 (100k / 10k = 10). Therefore, Vout = 0.5V × 10 = 5.0V. The 10nF capacitor across R4 creates a low-pass filter with a cutoff frequency of roughly 160Hz, effectively killing PWM noise from motor drivers while passing DC current readings.
Failure Modes and Multimeter Testing
Op amps rarely fail gracefully. According to Analog Devices application notes, the most common failure modes are input stage burnout from overvoltage transients, output short-circuits causing thermal shutdown, and latch-up from exceeding the absolute maximum supply ratings. When an op amp dies, it usually fails shorted to one of the supply rails.
How to Test with a Digital Multimeter (DMM)
Follow this numbered decision path to diagnose a suspect differential op amp on the bench:
- De-energize and Discharge: Remove power and short any large filter capacitors with a bleeder resistor. Never probe high-impedance op amp inputs with a powered circuit unless your DMM is rated for the voltage.
- Check Power Pins (Resistance Mode): Set your DMM to resistance. Measure between VCC (Pin 8) and GND (Pin 4). You should read a high resistance (typically >100kΩ). If it reads near 0Ω, the internal silicon is shorted. Desolder and replace.
- Test Input Protection Diodes (Diode Mode): Switch the DMM to diode test mode. Place the red probe on GND and the black probe on the non-inverting input (Pin 3). You should read a forward voltage drop of ~0.6V for BJT inputs. Reverse the probes; it should read "OL" (open loop). Repeat for the inverting input. If both directions read 0.00V, the input stage is fried.
- In-Circuit Functional Test (Voltage Mode): Power the circuit. Measure the voltage at the non-inverting and inverting inputs. In a functioning linear circuit with negative feedback, these two pins must be within a few millivolts of each other (the "virtual short"). If V+ is 2.50V and V- is 2.51V, the feedback loop is intact. If V+ is 2.5V and V- is 0V, and the output is slammed to the positive rail, the op amp has lost its feedback path or the output stage is blown.
Frequently Asked Questions
Why is my differential op amp output stuck at the supply rail?
If your output is pegged to VCC or VEE, the op amp is in saturation. This happens when the voltage difference between the non-inverting and inverting inputs exceeds a few millivolts without sufficient negative feedback to correct it. Check for an open feedback resistor (R3 in our circuit above), a shorted input trace, or an input common-mode voltage that exceeds the datasheet's specified range. If the inputs are tied together and the output is still at the rail, the internal output transistor is likely shorted.
What is the difference between a differential op amp and an instrumentation amplifier?
A standard differential op amp circuit uses a single op amp and four external resistors. Its performance is entirely dependent on how perfectly those external resistors match. An instrumentation amplifier (like the INA128) uses three internal op amps and laser-trimmed internal resistors to provide vastly superior Common-Mode Rejection Ratio (CMRR) and a single-pin gain setting. Use a standard differential op amp for cost-sensitive, low-precision tasks; use an instrumentation amp for medical, strain gauge, or high-noise industrial sensor applications.
How do I calculate the common-mode rejection ratio (CMRR) for my circuit?
CMRR dictates how well the circuit ignores noise that appears on both inputs. In a discrete differential op amp, CMRR is limited by resistor mismatch. The formula for resistor-limited CMRR in decibels is roughly: CMRR (dB) = 20 × log10( (Gain × Tolerance) / Tolerance ). Practically, if you use 1% resistors, your circuit CMRR is capped at about 40dB, meaning 1V of common-mode noise will leak through as 10mV of error at the output. Upgrading to 0.1% resistors pushes the CMRR to ~60dB, reducing that error to 1mV.
Can I use a single-supply op amp for AC-coupled differential signals?
Yes, but you must bias the inputs correctly. You cannot feed a purely AC signal (swinging positive and negative relative to ground) into a single-supply op amp referenced to 0V; the negative half-cycles will cause the input stage to clip or phase-reverse. You must create a mid-supply bias voltage (e.g., VCC/2) using a buffered voltage divider, and AC-couple your input signals through series capacitors (e.g., 1µF film) so the op amp only sees the AC ripple riding on top of the DC bias point.






