An inverting amplifier is an operational amplifier (op-amp) circuit configuration that outputs a scaled, 180-degree phase-inverted replica of the input voltage based on the ratio of two external resistors. In a real circuit, it flips signal polarity and scales amplitude while presenting a fixed, predictable input impedance to the source. Makers commonly confuse the inverting amplifier (an analog linear circuit) with a logic inverter (a digital NOT gate like the 74HC04) or a DC-AC power inverter. It is also frequently mixed up with the non-inverting amplifier configuration, where the input signal enters the positive terminal instead of the negative one.
The Core Mechanism: How the Inverting Amplifier Works
To understand this topology, you have to understand the concept of a "virtual ground." In a standard inverting setup, the non-inverting (+) pin of the op-amp is tied directly to ground (0V). The input signal is fed through an input resistor ($R_{in}$) to the inverting (-) pin, while a feedback resistor ($R_f$) connects the output back to that same (-) pin.
Because an ideal op-amp has massive open-loop gain, it will drive its output pin to whatever voltage is necessary to keep the voltage difference between the (+) and (-) pins at exactly zero. Since the (+) pin is physically held at 0V, the op-amp forces the (-) pin to sit at 0V as well. This is the virtual ground. No current flows into the op-amp's input pins; therefore, all current flowing through $R_{in}$ must flow through $R_f$.
Voltage Gain ($A_v$) = $- (R_f / R_{in})$
Output Voltage ($V_{out}$) = $V_{in} \times A_v$
The negative sign in the formula is the mathematical representation of the 180-degree phase shift. If you push a positive voltage into the input, the op-amp pulls the output negative to maintain the virtual ground, and vice versa. For a deeper dive into the internal transistor-level mechanics of this feedback loop, the All About Circuits semiconductor textbook provides an excellent breakdown of op-amp negative feedback.
Worked Numeric Example: Calculating Gain and Impedance
Let us move from theory to the bench. Suppose you are building a preamp stage for an active electric guitar pickup using a TL072 JFET-input op-amp powered by a dual ±12V supply.
- Input Resistor ($R_{in}$): 4.7 kΩ
- Feedback Resistor ($R_f$): 47 kΩ
- Input Signal ($V_{in}$): 0.2V peak (AC from the pickup)
Calculating Gain:
$A_v = - (47,000 / 4,700) = -10$
Calculating Output:
$V_{out} = 0.2V \times -10 = -2.0V$ peak.
Unlike a non-inverting amplifier (which boasts near-infinite input impedance), the input impedance of an inverting amplifier is simply the value of $R_{in}$. In this example, the guitar pickup "sees" a 4.7 kΩ load. Passive guitar pickups typically prefer a 1 MΩ load; driving them with 4.7 kΩ will form a low-pass filter with the pickup's internal inductance, killing your high-end treble frequencies. Always check your source impedance before selecting $R_{in}$.
Where You Meet the Inverting Amplifier in Practice
You will rarely see a standalone inverting amplifier just sitting on a board to flip a DC voltage. Its true power emerges in signal processing and conditioning:
- Audio Summing Mixers: Because the inverting input is a virtual ground, multiple input signals can be fed through separate resistors into the same node without crosstalk. This is the foundation of analog audio mixing consoles.
- Transimpedance Amplifiers (TIA): When you need to convert a tiny current from a photodiode into a usable voltage, the inverting topology is mandatory. The photodiode connects directly to the virtual ground, and $R_f$ sets the current-to-voltage conversion ratio.
- Active Filters: Multiple-feedback (MFB) low-pass and band-pass filters rely heavily on the inverting configuration to achieve high Q-factors without the component sensitivity issues of Sallen-Key topologies.
- DAC Output Buffering: Many digital-to-analog converters output a unipolar voltage (0-3.3V). An inverting amplifier, combined with a summing reference voltage, can shift and scale this into a bipolar AC signal (e.g., ±2V) for audio line-out jacks.
Real-World Scenario: Buffering a DAC Output (What Went Wrong)
The most common point of failure for hobbyists building inverting amplifiers occurs when mixing single-supply microcontrollers with dual-supply analog expectations.
The Setup: A maker is using an ESP32 and an MCP4921 12-bit DAC to generate a 0-3.3V audio waveform. They want to amplify and invert it to drive a ±5V audio line. They wire an LM358 op-amp in an inverting configuration with $R_{in} = 10k\Omega$ and $R_f = 15k\Omega$, powering the LM358 from a single +5V and GND rail. The non-inverting (+) pin is tied to literal Ground (0V).
The Numbers: The DAC outputs its midpoint bias of 1.65V.
Expected Gain = $- (15k / 10k) = -1.5$.
Expected Output = $1.65V \times -1.5 = -2.475V$.
The Outcome: The multimeter reads 0V at the output. When an audio signal is played, the output is horribly distorted, sounding like a harsh, gated buzzer (half-wave rectified).
What Went Wrong: The LM358 is powered by a single +5V supply, meaning its output can only swing between roughly 0V and 3.5V (it is not rail-to-rail). Because the (+) pin is tied to 0V, any positive voltage at the input forces the op-amp to drive the output negative to maintain the virtual ground. Since the op-amp physically cannot output a negative voltage on a single supply, it slams hard against the 0V bottom rail, clipping the entire negative half of the waveform.
The Fix: To make an inverting amplifier work on a single supply for AC signals, you must create a "virtual ground" at half the supply voltage.
- Create a 2.5V reference using a voltage divider (two 10kΩ resistors from 5V to GND) buffered by a unity-gain op-amp.
- Connect the non-inverting (+) pin of your inverting amplifier to this 2.5V reference, not to 0V.
- AC-couple your DAC output to the $R_{in}$ resistor using a 10µF series capacitor to block the DAC's DC offset.
- AC-couple the final output using another capacitor to strip away the 2.5V DC bias before sending it to your audio amplifier.
For a comprehensive guide on single-supply op-amp design, refer to Texas Instruments Application Report SLOA011A.
Inverting vs. Non-Inverting: When to Choose Which
Choosing between the two fundamental op-amp topologies dictates how your source interacts with the circuit. Use this matrix to make the decision:
| Criteria | Inverting Amplifier | Non-Inverting Amplifier |
|---|---|---|
| Phase Shift | 180 degrees (Inverted) | 0 degrees (Same phase) |
| Input Impedance | Low/Medium (Equal to $R_{in}$) | Extremely High (Op-amp input Z) |
| Voltage Gain Equation | $-R_f / R_{in}$ | $1 + (R_f / R_{in})$ |
| Minimum Gain | Can be less than 1 (Attenuation) | Cannot be less than 1 (Unity minimum) |
| Best Used For | Summing mixers, current-to-voltage, active filters | High-Z sensor buffering, voltage followers |
Frequently Asked Questions
Can an inverting amplifier have a gain of less than 1?
Yes. Because the gain is determined purely by the resistor ratio, making $R_f$ smaller than $R_{in}$ creates an attenuation circuit. For example, a 10kΩ feedback resistor and a 100kΩ input resistor yields a gain of -0.1. The non-inverting topology cannot do this; its minimum gain is always 1.
Why is my inverting op-amp oscillating at high frequencies on the bench?
The inverting node (virtual ground) is highly sensitive to stray parasitic capacitance. If you are using high-value resistors (e.g., 1MΩ) or have long breadboard jumper wires at the (-) pin, the capacitance creates a pole in the feedback loop, destroying phase margin and causing high-frequency oscillation (often in the MHz range, invisible to standard multimeters). Fix this by keeping the (-) node traces as short as physically possible, or by placing a small compensation capacitor (e.g., 10pF to 100pF) in parallel with $R_f$.
Do I need a compensation resistor on the non-inverting pin?
In older textbooks, you will see a resistor ($R_{comp} = R_{in} || R_f$) placed between the (+) pin and ground to balance input bias currents. For modern CMOS or JFET input op-amps (like the TL072, OPA2134, or MCP6002), input bias current is in the picoamp range, making this resistor unnecessary; it actually just adds thermal noise. You only need $R_{comp}$ if you are using legacy bipolar op-amps like the LM741 or NE5532.






