An inverting amplifier applies the signal to the op amp’s inverting (−) input, so the output is 180° out of phase and the gain is −Rf/Rin. A non-inverting amplifier applies the signal to the non-inverting (+) input, so the output is in phase and the gain is 1 + Rf/Rg. The inverting circuit can have any gain, including less than 1, but its input impedance is only Rin. The non-inverting circuit has very high input impedance but its gain can never be below 1.
Inverting vs Non-Inverting Amplifier at a Glance
| Feature | Inverting amplifier | Non-inverting amplifier |
|---|---|---|
| Signal goes to | Inverting (−) input, through Rin | Non-inverting (+) input, directly |
| Voltage gain | −Rf / Rin | 1 + Rf / Rg |
| Phase of output | Inverted (180°) | Same as input (0°) |
| Gain range | Any value, including below 1 (attenuation) | 1 or more only |
| Input impedance | Equal to Rin | Very high (op-amp input × loop gain) |
| Noise gain (sets bandwidth) | 1 + Rf / Rin | 1 + Rf / Rg |
| Common-mode voltage at inputs | About 0 V (virtual ground) | Follows the input signal |
| Typical uses | Summing, scaling, attenuating, active filters, current-to-voltage | Buffering high-impedance sensors, signal gain, voltage follower |
How the Inverting Amplifier Works
Texas Instruments’ Handbook of Operational Amplifier Applications builds every circuit on two “summing point restraints”: an ideal op amp draws no input current, and with negative feedback the voltage between its two inputs is driven to zero. In the inverting amplifier the + input is grounded, so the − input is held at 0 V too: a virtual ground.
The input current is therefore Vin/Rin. None of it can enter the op amp, so the same current must flow through Rf, and the output has to swing to −Vin × Rf/Rin to pull it. That gives the gain of −Rf/Rin. TI notes that the driving source “sees” Rin as the input impedance.
Inverting amplifier example
- Rf = 22 kΩ, Rin = 4.7 kΩ → gain = −22 ÷ 4.7 = −4.68.
- A +1.5 V input gives −7.02 V out, which a ±15 V supply can deliver.
- The source must drive 4.7 kΩ. If it is a sensor with 10 kΩ output resistance, that resistance adds to Rin and the real gain drops to about −1.5: an inverting stage is a poor choice for high-impedance sources.
How the Non-Inverting Amplifier Works
Here the signal goes to the + input. Feedback forces the − input to the same voltage, and because no current flows into the op amp, Rf and Rg act as a simple voltage divider from the output. Solving the divider gives Vout/Vin = 1 + Rf/Rg. TI calls the input impedance of the ideal circuit infinite, and notes such circuits “are widely used in control and instrumentation where non-inverting gain is required.”
In a real op amp, Wikipedia gives the input impedance as the op amp’s differential input impedance multiplied by (1 + loop gain), so it is commonly many megohms. That is why the non-inverting amplifier is the usual first stage after a high-impedance sensor.
Non-inverting amplifier example: scaling a sensor for a PLC
A sensor gives 0 to 1 V, and the analog input of a PLC expects 0 to 10 V. A non-inverting gain of 10 does the job: choose Rg = 1 kΩ and Rf = 9.09 kΩ (a standard 1% value), for a gain of 1 + 9.09 = 10.09. Trim the last 1% in the PLC scaling, or use a 9 kΩ precision resistor. Use a rail-to-rail op amp, or a supply well above 10 V, so the output can actually reach 10 V. For more on analog signals into a controller, see our 4-20 mA guide.
The voltage follower
Set Rf = 0 (output wired to the − input) and leave out Rg, and the gain becomes exactly 1. TI says unity gain circuits “are used as electrical buffers to isolate circuits or devices from one another”. A follower lets a weak, high-impedance source drive a low-impedance load without its voltage being dragged down.
Op-Amp Gain Calculator
Phase: Why the Inverting Output Is Flipped
The inverting amplifier’s output is the negative of the input times the gain, so a positive input gives a negative output and an AC waveform is shifted 180°. In audio and many AC measurements that does not matter; in DC control loops it does. A sensor scaled with an inverting stage gives a falling output as the process value rises, so you need either a second inverting stage (−1) to flip it back, or a non-inverting stage from the start.
Gain, Bandwidth and Noise Gain
Wikipedia explains that an op amp’s open-loop gain falls with frequency, described by its gain-bandwidth product (GBW): a 1 MHz GBW op amp has a gain of 5 at 200 kHz and a gain of 1 at 1 MHz. Analog Devices tutorial MT-033 adds the key detail: what sets the closed-loop bandwidth and stability is the noise gain, which is 1 + Rf/Rin for both circuits, not the signal gain.
| Signal gain | Circuit | Noise gain | Bandwidth, 1 MHz GBW | Bandwidth, 10 MHz GBW |
|---|---|---|---|---|
| +1 | Non-inverting (follower) | 1 | 1,000 kHz | 10 MHz |
| -1 | Inverting | 2 | 500 kHz | 5 MHz |
| +2 | Non-inverting | 2 | 500 kHz | 5 MHz |
| -10 | Inverting | 11 | 91 kHz | 909 kHz |
| +10 | Non-inverting | 10 | 100 kHz | 1 MHz |
| +100 | Non-inverting | 100 | 10 kHz | 100 kHz |
Two practical consequences: an inverting unity-gain stage (−1) has only half the bandwidth of a follower, and the op amp’s offset voltage and noise are multiplied by the noise gain at the output. MT-033 says noise gain, not signal gain, is relevant in assessing stability, which is why some op amps are specified as stable only above a minimum gain.
Input Impedance and Loading
Input impedance is often what decides the choice. A thermocouple, pH probe, piezo sensor or voltage divider has significant source resistance. Connected to an inverting amplifier, that resistance appears in series with Rin and changes the gain. Connected to a non-inverting amplifier, it barely matters, because almost no current flows. See types of industrial sensors for the sensors these stages usually serve.
| Source | Better choice | Why |
|---|---|---|
| Low-impedance signal (another op amp, a DAC, a function generator) | Either | The source can drive Rin without error |
| High-impedance sensor or divider | Non-inverting or follower | Input draws almost no current |
| Several signals to add or mix | Inverting (summing amplifier) | Virtual ground keeps inputs from interacting |
| Signal must be reduced (gain below 1) | Inverting, or divider + follower | Non-inverting gain cannot go below 1 |
| Current to be converted to voltage (photodiode) | Inverting (transimpedance) | Current flows into the virtual ground through Rf |
Choosing Resistor Values
- Stay roughly between 1 kΩ and 100 kΩ. Wikipedia notes that resistors much greater than 1 MΩ cause excessive thermal noise and errors from bias or leakage currents; very low values load the op-amp output.
- Use 1% (or better) resistors where gain accuracy matters; gain error is roughly the sum of the two resistor tolerances.
- Balance the bias currents on bipolar op amps. Wikipedia’s heuristic is to make the resistance “looking out” of each input the same, for example a resistor equal to Rf ∥ Rin from the + input to ground in an inverting stage.
- Check output swing. Older op amps swing to within a volt or two of the supply; rail-to-rail types get within millivolts at light load.
| Target gain | Inverting: Rf / Rin | Non-inverting: Rf / Rg |
|---|---|---|
| 1 | 10 kΩ / 10 kΩ (−1) | 0 Ω, no Rg (follower) |
| 2 | 20 kΩ / 10 kΩ (−2) | 10 kΩ / 10 kΩ |
| 5 | 49.9 kΩ / 10 kΩ (−4.99) | 40.2 kΩ / 10 kΩ (5.02) |
| 10 | 100 kΩ / 10 kΩ (−10) | 9.09 kΩ / 1 kΩ (10.09) |
| 0.5 | 4.99 kΩ / 10 kΩ (−0.499) | Not possible |
Troubleshooting Op-Amp Amplifiers
- Output stuck at a rail: feedback is open, the inputs are swapped (positive feedback), or the gain × input exceeds the supply.
- Gain lower than calculated: source resistance adding to Rin (inverting), or the signal frequency is near GBW ÷ noise gain.
- DC offset at the output: input offset voltage times noise gain, or unbalanced bias currents through large resistors.
- Oscillation: capacitive load on the output, long feedback traces, or an op amp used below its minimum stable gain. Decouple the supply pins close to the chip.
- Output inverted when it should not be: an inverting stage was used where a non-inverting one was needed; add a −1 stage or redesign.
For a deeper look at the unity-gain case, including loading errors and op-amp stability, read our voltage follower guide.
Frequently Asked Questions
What is the difference between an inverting and a non-inverting amplifier?
An inverting amplifier feeds the signal into the op amp’s inverting (−) input, so the output is flipped 180° and the gain is −Rf/Rin. A non-inverting amplifier feeds the signal into the non-inverting (+) input, so the output stays in phase and the gain is 1 + Rf/Rg.
What is the gain formula of a non-inverting amplifier?
Gain = 1 + Rf ÷ Rg, where Rf is the feedback resistor and Rg is the resistor from the inverting input to ground. With Rf = 9 kΩ and Rg = 1 kΩ the gain is 10.
What is the gain formula of an inverting amplifier?
Gain = −Rf ÷ Rin. With Rf = 10 kΩ and Rin = 1 kΩ the gain is −10: a +0.5 V input gives −5 V out.
Can a non-inverting amplifier have a gain less than 1?
No. Its gain is 1 + Rf/Rg, so the minimum is 1 (the voltage follower, Rf = 0). To attenuate a signal, use an inverting stage with Rf smaller than Rin, or a resistor divider before a follower.
Why is the inverting input called a virtual ground?
In an inverting amplifier the non-inverting input is grounded, and negative feedback drives the inverting input to the same voltage, so it sits at about 0 V without being connected to ground. Texas Instruments describes it as being at ground potential but conducting no current to ground.
Which has higher input impedance, inverting or non-inverting?
The non-inverting amplifier. Its input is the op amp’s own input, which is very high (megohms to teraohms). An inverting amplifier’s input impedance equals Rin, because the source drives Rin into the virtual ground.
What is a voltage follower?
A non-inverting amplifier with the output tied straight to the inverting input, giving a gain of exactly 1. It has very high input impedance and low output impedance, so it is used as a buffer to stop one circuit loading another.
Why does the inverting amplifier have less bandwidth?
Bandwidth is set by noise gain, which is 1 + Rf/Rin for both circuits. A gain of −10 has a noise gain of 11, while a gain of +10 has a noise gain of 10, so the inverting stage has about 9% less bandwidth.
What resistor values should I use?
Values in the 1 kΩ to 100 kΩ range suit most general-purpose op amps. Wikipedia notes that resistors much above 1 MΩ add thermal noise and make errors from bias and leakage currents worse.
Can an inverting amplifier add signals together?
Yes. Connect several inputs, each through its own resistor, to the inverting input. The output is the negative weighted sum of the inputs: this is the summing amplifier, used for mixing and offset adjustment.
Sources and Further Reading
- Texas Instruments: Handbook of Operational Amplifier Applications (SBOA092B, PDF): ideal op amp, voltage follower, inverting and non-inverting gain derivations.
- Analog Devices MT-033: Voltage Feedback Op Amp Gain and Bandwidth (PDF): signal gain vs noise gain, bandwidth and stability.
- Wikipedia: Operational amplifier applications: input impedance, resistor values and bias-current balancing.
- Wikipedia: Operational amplifier: gain-bandwidth product, slew rate and output swing.
- Electronics Tutorials: Non-inverting operational amplifier: worked non-inverting examples.
- Electronics Tutorials: Inverting operational amplifier: worked inverting examples.
