When you ask how to find gain of op amp circuits, the direct answer is that you do not use the internal open-loop gain of the silicon (which is typically 100,000 to 1,000,000+). Instead, practical op amp gain is strictly determined by the ratio of external feedback resistors in a closed-loop configuration. For an inverting amplifier, the voltage gain is -Rf / Rin. For a non-inverting amplifier, the gain is 1 + (Rf / Rin).
This guide moves past abstract textbook theory to show you exactly how to calculate, bias, and troubleshoot op amp gain on the workbench, complete with standard E24 resistor tables, safe default IC part numbers, and real-world multimeter diagnostic steps.
The Direct Answer: Calculating Op Amp Gain
Op amps rely on negative feedback to force the voltage difference between their two inputs to nearly zero (the 'virtual short' principle). By placing resistors in the feedback path, you dictate exactly how much the output must swing to maintain that balance.
The Core Formulas
- Inverting Configuration: The input signal enters through Rin into the inverting (-) input. The non-inverting (+) input is tied to ground.
Formula:Av = -(Rf / Rin) - Non-Inverting Configuration: The input signal enters directly into the non-inverting (+) input. The feedback network connects from the output to the inverting (-) input.
Formula:Av = 1 + (Rf / Rin) - Voltage Follower (Buffer): A special case of non-inverting where Rf = 0 and Rin = ∞.
Formula:Av = 1
Real-World Resistor Combinations for Target Gains
Instead of calculating arbitrary values, use standard E24 series (5% tolerance) resistors. Here is a data-dense reference for common target gains using easily sourced components.
| Target Gain (Av) | Configuration | Rin (Input) | Rf (Feedback) | Actual Calculated Gain | Error from Target |
|---|---|---|---|---|---|
| 2x | Non-Inverting | 10 kΩ | 10 kΩ | 2.00 | 0.0% |
| 5x | Non-Inverting | 10 kΩ | 39 kΩ | 4.90 | -2.0% |
| 10x | Inverting | 10 kΩ | 100 kΩ | -10.00 | 0.0% |
| 22x | Non-Inverting | 4.7 kΩ | 100 kΩ | 22.27 | +1.2% |
| 100x | Non-Inverting | 1 kΩ | 100 kΩ | 101.00 | +1.0% |
Note: As noted by All About Circuits, pushing gain above 100x in a single stage often invites noise and bandwidth limitations. Cascade two lower-gain stages (e.g., two 10x stages for 100x total) for better high-frequency performance.
Op Amp Pinouts, Symbols, and Operating Regions
Before wiring your gain network, you must correctly identify the pins. While schematics use a simple triangle symbol with '+' (non-inverting), '-' (inverting), and power rails, physical ICs use standardized footprints.
The Standard 8-Pin DIP Dual Op Amp Pinout
Approximately 90% of hobbyist and prototyping dual op amps (LM358, TL072, NE5532) share the exact same 8-pin Dual In-line Package (DIP) layout. Looking at the IC with the notch/dot facing left:
- Pin 1: Output A
- Pin 2: Inverting Input A (-)
- Pin 3: Non-Inverting Input A (+)
- Pin 4: V- (Ground or Negative Supply)
- Pin 5: Non-Inverting Input B (+)
- Pin 6: Inverting Input B (-)
- Pin 7: Output B
- Pin 8: V+ (Positive Supply)
Operating Regions and Electrical Behavior
An op amp operates in one of three distinct regions depending on the differential input voltage and the feedback network.
| Operating Region | Input Differential (V+ minus V-) | Output Voltage State | Typical Output Current | Circuit Behavior |
|---|---|---|---|---|
| Linear (Active) | ~0V (Virtual Short) | Between V- and V+ rails | 1 mA to 20 mA | Amplifying signal accurately; negative feedback is functioning. |
| Positive Saturation | > +1 mV | Pegged to V+ rail (minus dropout) | Max source current (e.g., 30mA) | Input signal exceeds feedback capability; acts as a high comparator. |
| Negative Saturation | < -1 mV | Pegged to V- rail (or GND) | Max sink current (e.g., 30mA) | Input signal drives output to the bottom rail; clipping occurs. |
Selecting and Biasing the Right Part for the Job
Choosing the wrong op amp is the most common reason a gain circuit fails to perform as calculated. According to Texas Instruments' amplifier design resources, you must match the IC's Gain-Bandwidth Product (GBWP) and input topology to your signal type.
Safe Default Part Numbers (with Ratings)
- LM358 (The Utility Knife): Single-supply capable (3V to 32V), GBWP 1 MHz, Slew Rate 0.3 V/µs. Costs ~$0.15. Use for: DC sensor amplification, LED drivers, slow-moving signals. Avoid for: Audio (crossover distortion).
- TL072 (The Audio Standard): Dual-supply (±5V to ±15V), GBWP 3 MHz, Slew Rate 13 V/µs, JFET inputs. Costs ~$0.80. Use for: Audio preamps, active filters, high-impedance sensor buffers.
- MCP6002 (The Microcontroller Interface): Single-supply (1.8V to 5.5V), Rail-to-Rail I/O, GBWP 1 MHz. Costs ~$0.60. Use for: Interfacing 3.3V sensors to ESP32/Arduino ADCs where you need the output to swing all the way to 3.3V.
- OPA2134 (The Precision/Audiophile): Dual-supply (±2.5V to ±18V), GBWP 8 MHz, Slew Rate 20 V/µs, FET inputs. Costs ~$4.50. Use for: High-fidelity audio, precision measurement equipment.
Complete Application Circuit: Single-Supply Microphone Preamp
Here is a complete, buildable non-inverting amplifier designed to boost an electret microphone signal (approx. 10mV AC) to a level readable by an ESP32 ADC (up to 3.0V peak), using an MCP6002 on a 3.3V single supply.
Component List & Values:
- U1: MCP6002 Dual Op Amp
- R1, R2: 47 kΩ (Voltage divider to create 1.65V virtual ground)
- C1: 10 µF ceramic (Decoupling the virtual ground to prevent AC feedback)
- C2: 1 µF film/ceramic (Input AC coupling capacitor)
- R3 (Rin): 1 kΩ
- R4 (Rf): 100 kΩ (Sets Gain = 1 + 100/1 = 101)
- C3: 100 nF (Power supply bypass, place physically adjacent to Pin 8 and Pin 4)
Wiring Steps:
- Connect 3.3V to Pin 8 (V+) and GND to Pin 4 (V-). Place C3 across these pins.
- Wire R1 from 3.3V to Pin 3 (In+). Wire R2 from Pin 3 to GND. Connect C1 from Pin 3 to GND. This biases the non-inverting input to 1.65V.
- Connect the microphone's positive terminal to one side of C2. Connect the other side of C2 to Pin 3. (C2 blocks the mic's DC bias from disrupting our 1.65V virtual ground).
- Wire R3 (1k) from Pin 2 (In-) to GND.
- Wire R4 (100k) from Pin 2 (In-) to Pin 1 (Output).
- The amplified, DC-biased AC signal is now available at Pin 1, swinging around 1.65V with a peak-to-peak amplitude of roughly 1V to 2V, perfectly safe for a 3.3V microcontroller ADC.
Troubleshooting: How Op Amps Fail and Multimeter Testing
Op amps rarely fail gracefully. When pushed beyond their absolute maximum ratings, the internal silicon junctions short out. The three most common failure modes are:
- Output Pegged to Rail: Internal short between the output stage and VCC or VEE. The output stays at maximum or minimum voltage regardless of input.
- Dead Output (0V): Blown output transistor or severed internal bond wire from excessive output current (e.g., accidentally shorting the output pin to ground).
- High-Frequency Oscillation: Not a physical failure, but a layout failure. Driving a highly capacitive load (like a long coaxial cable) without a series isolation resistor causes phase shift, turning negative feedback into positive feedback.
How to Test an Op Amp with a Digital Multimeter (DMM)
Follow this diagnostic sequence to determine if your IC is dead or if your circuit math is wrong.
Phase 1: Power-Off (Checking for Internal Shorts)
- Remove power from the circuit completely.
- Set your DMM to Diode Test / Continuity mode.
- Measure between V+ (Pin 8) and V- (Pin 4). You should read 'OL' (open loop). If it beeps or reads < 0.2V, the IC is internally shorted. Throw it away.
- Measure between the Output pin and V+, then Output and V-. You should see a diode drop (0.4V to 0.7V) due to internal protection diodes. If it reads 0.0V (dead short), the output stage is destroyed.
Phase 2: Power-On (Checking the Virtual Short)
- Restore power to the circuit.
- Set your DMM to DC Voltage mode.
- Verify supply voltage directly at Pin 8 and Pin 4. (If you have 5V at the breadboard rail but only 2V at Pin 8, you have a broken trace or missing bypass capacitor causing brownout).
- Measure the voltage at the Non-Inverting Input (+).
- Measure the voltage at the Inverting Input (-).
- The Verdict: In a properly functioning linear op amp circuit, these two voltages must be virtually identical (within 1mV to 5mV of each other). If Pin 3 reads 1.65V and Pin 2 reads 0.5V, the op amp has lost its ability to drive the feedback network and is either saturated or dead.






