Table of Contents

Inverting Operational Amplifier: Gain Formula, Virtual Ground

inverting op amp featured template

An inverting operational amplifier is an op amp circuit that produces an output with opposite polarity from the input. In the ideal resistor-feedback form, the closed-loop gain is set by two external resistors:

Vout = -Vin x Rf / Rin
Av = -Rf / Rin

The negative sign means the output is inverted relative to the input. A positive input produces a negative-going output around the reference voltage, while a negative input produces a positive-going output. The circuit is commonly used for voltage gain, attenuation, signal inversion, summing, filtering, transimpedance-related structures, and active signal conditioning.

The second key idea is virtual ground. Negative feedback holds the inverting input close to the voltage applied to the non-inverting input while the op amp remains in its linear operating region. This is an analysis condition, not a physical ground connection.

Quick Take

ItemPractical Answer
Circuit typeNegative-feedback voltage amplifier with the signal applied through a resistor to the inverting input
Output polarityInverted relative to the input around the reference voltage
Ideal gain formulaAv = -Rf/Rin
Input impedanceApproximately set by Rin in the ideal basic circuit
Unity-gain inverterIf Rf = Rin, then Av = -1
Virtual groundThe inverting node stays close to the reference voltage because of negative feedback
Main practical risksOutput clipping, invalid input/output range, insufficient GBW, slew-rate limits, bias-current error, noise, and instability
Related circuitNon-Inverting Operational Amplifier

Inverting Operational Amplifier Circuit

Basic inverting operational amplifier circuit with Vin, Rin, Rf, virtual ground, and Vout
The basic inverting amplifier uses an input resistor and a feedback resistor to set the closed-loop gain.

A basic inverting amplifier contains these main parts:

Circuit ItemRole
VinInput signal applied through the input resistor
RinInput resistor that converts the input voltage into current
RfFeedback resistor from the output to the inverting input
Non-inverting inputConnected to ground or another reference voltage
Inverting inputSumming node where input and feedback currents meet
VoutOutput voltage produced by the op amp and feedback network

In the common dual-supply textbook version, the non-inverting input is tied to ground. Negative feedback then drives the output so that the inverting input remains very close to 0 V. In a single-supply design, the non-inverting input may instead be connected to a mid-supply reference or another bias voltage.

How the Inverting Op Amp Gain Formula Works

Inverting op amp current path showing input current, feedback current, and gain formula
In the ideal analysis, input current through Rin flows through Rf because the op amp input current is assumed to be negligible.

The gain equation can be derived by following current through the input and feedback resistors.

  1. The non-inverting input is connected to a reference voltage.
  2. Negative feedback keeps the inverting input close to that same reference.
  3. The ideal op amp input current is approximately zero.
  4. The current through Rin therefore flows through Rf.
  5. The output moves in the opposite direction to provide the required feedback current.

For a grounded reference:

Iin = Vin / Rin
If = -Vout / Rf

Iin = If

Vin / Rin = -Vout / Rf

Vout = -Vin x Rf / Rin
Av = Vout / Vin = -Rf / Rin

The resistor ratio sets the ideal closed-loop gain. If Rf is larger than Rin, the magnitude of the gain is greater than 1. If they are equal, the gain is -1. If Rf is smaller, the circuit attenuates while still inverting polarity.

Worked Example: Gain of -10

Assume:

Rin = 10 kOhm
Rf = 100 kOhm

Then:

Av = -Rf / Rin
Av = -100 kOhm / 10 kOhm
Av = -10

For an input of +0.20 V:

Vout = -0.20 V x 10
Vout = -2.00 V

For an input of -0.20 V, the ideal output becomes +2.00 V. These results are valid only if the selected op amp has enough supply headroom, output swing, bandwidth, slew rate, and load-drive capability.

Unity-Gain Inverter

When Rf = Rin:

Av = -Rf / Rin = -1
Vout = -Vin

This configuration is called a unity-gain inverter. It preserves the input amplitude in the ideal model while reversing polarity around the reference voltage.

Do not confuse a unity-gain inverter with a voltage follower. A voltage follower is non-inverting and has Av = +1. A unity-gain inverter has Av = -1.

Virtual Ground Is Not a Physical Ground

Virtual ground conditions for an inverting op amp with negative feedback and linear operation
Virtual ground is valid only while negative feedback is active and the op amp remains inside its linear operating limits.

Virtual ground means the inverting input is held close to the non-inverting input voltage by negative feedback. In a dual-supply circuit with the non-inverting input tied to 0 V, the inverting input also stays close to 0 V.

The node is not physically connected to ground and should not be used as a power return or general ground node for other circuitry.

ConditionMeaning
Negative feedback is presentThe output must feed back to the inverting input through the intended feedback network
Op amp is operating linearlyThe output must not be saturated at a supply rail
Reference voltage is validThe non-inverting input sets the voltage that the inverting node follows
Input common-mode range is validThe op amp inputs must stay inside the datasheet's allowed operating range

If these conditions are not met, the virtual-ground approximation breaks down.

Single-Supply Inverting Amplifier

In a single-supply system, 0 V is often not a suitable signal midpoint. A 3.3 V or 5 V circuit may instead bias the non-inverting input at a reference voltage such as mid-supply.

The inverting input then follows Vref, not ground. For the basic resistor-feedback circuit, the level-shifted relationship is:

Vout = Vref - (Vin - Vref) x Rf / Rin

This is the same inverting behavior centered around the reference voltage. The op amp must still support the required input common-mode voltage and output swing around Vref.

Why the Output Is Inverted

When the input voltage rises above the reference, current through Rin flows toward the summing node. Because the op amp input draws very little current in the ideal model, the same current must be balanced through Rf. The output therefore moves in the opposite direction.

When the input voltage falls below the reference, the current direction reverses and the output moves in the opposite polarity. This feedback action is the reason the gain equation contains a negative sign.

Input Impedance and Resistor Selection

In the ideal basic inverting amplifier, the signal source sees approximately Rin as the input impedance. This is different from the very high input impedance of a non-inverting op amp configuration.

Design PointWhy It Matters
Lower RinLoads the source more heavily and increases current consumption
Higher resistor valuesReduce loading but increase thermal noise, bias-current error, leakage sensitivity, and parasitic effects
Resistor ratio accuracyDirectly affects closed-loop gain accuracy
Temperature coefficientGain can drift if Rf and Rin do not track
High-frequency operationFeedback-node capacitance and PCB layout can affect stability and bandwidth

There is no universal best resistor value. Choose the ratio for gain, then choose practical values based on source loading, noise, input bias current, leakage, power, bandwidth, and PCB layout.

Bandwidth and Slew-Rate Checks

The ideal formula does not guarantee the same gain at every frequency. The op amp's gain bandwidth product limits closed-loop bandwidth, while slew rate limits how quickly the output can change for large signals.

As a first-order estimate for a voltage-feedback op amp:

Closed-loop bandwidth ≈ GBW / noise gain

For a basic inverting amplifier, the noise gain is approximately:

Noise gain = 1 + Rf / Rin

This is important because signal gain may be -Rf/Rin, while stability and closed-loop bandwidth are related to the positive noise gain. For high-speed or precision circuits, use the manufacturer's datasheet curves and application guidance rather than relying only on a simple ratio.

Op Amp Datasheet Checks

Datasheet ItemWhy It Matters
Supply voltage rangeThe device must operate from the available rails
Input common-mode rangeThe reference and inverting node must remain in the valid input range
Output voltage swingThe required inverted output must fit within the available output range under load
Gain bandwidth productDetermines usable closed-loop bandwidth
Slew rateLimits large-signal output speed
Input offset voltageCreates DC output error
Input bias currentCreates error through Rin and Rf
NoiseImportant in sensor, audio, and high-gain applications
Output current and load stabilityThe next stage must not cause clipping or instability
Package and pinoutRequired for PCB compatibility and replacement
Lifecycle and temperature gradeRequired for production and long-term sourcing

Typical Applications

ApplicationWhy the Inverting Circuit HelpsKey Checks
Signal inversionReverses polarity with controlled gainOutput headroom, resistor ratio, bandwidth
AttenuationCan provide a gain magnitude below 1Noise, loading, output accuracy
Summing amplifierMultiple input currents can be combined at the same summing nodeResistor ratios, headroom, noise, channel interaction
Active filtersFeedback impedance can include resistors and capacitorsGBW, stability, component tolerance
Sensor scalingProvides gain and polarity controlOffset, bias current, source impedance
Reference or level shiftingAllows inversion around a non-zero reference voltageReference noise, common-mode range, output swing

Common Mistakes

Mistake 1: Treating Virtual Ground as a Real Ground

The summing node is only held near the reference voltage through negative feedback. It is not a power ground and should not be used as a return path for other circuitry.

Mistake 2: Ignoring Output Headroom

A calculated gain may require more output voltage than the op amp can produce. Always compare the maximum expected input with the supply rails, load current, and output-swing limits.

Mistake 3: Forgetting Source Loading

The source sees approximately Rin in the basic circuit. A resistor that is too low can load a weak sensor or previous stage.

Mistake 4: Using the Signal Gain to Estimate Bandwidth

For an inverting amplifier, stability and bandwidth are related to noise gain, which is approximately 1 + Rf/Rin, not only the signal gain magnitude Rf/Rin.

Mistake 5: Replacing an Op Amp by Package Alone

Matching SOIC-8, DIP-8, or another package does not guarantee electrical compatibility. Check pinout, supply range, input/output limits, GBW, slew rate, offset, bias current, noise, load drive, temperature grade, and lifecycle.

Related Op Amp Guides

FAQ

What is an inverting operational amplifier?

An inverting operational amplifier is an op amp circuit that amplifies or attenuates an input signal while reversing its polarity. In the ideal resistor-feedback form, the gain is Av = -Rf/Rin.

Why is the inverting op amp output negative?

The negative sign indicates polarity inversion relative to the reference voltage. Negative feedback drives the output in the opposite direction so current through the feedback resistor balances current through the input resistor.

What is virtual ground in an inverting amplifier?

Virtual ground means the inverting input is held close to the grounded or referenced non-inverting input by negative feedback. It is not a physical ground connection.

What happens if Rf equals Rin?

The ideal gain becomes -1, so the circuit acts as a unity-gain inverter: the output has the same magnitude as the input but opposite polarity.

Can an inverting op amp use a reference voltage instead of ground?

Yes. In single-supply circuits, the non-inverting input is often tied to a reference such as mid-supply. The inverting node follows that reference and the output swings around it.

Can an inverting amplifier have gain below 1?

Yes. If Rf is smaller than Rin, the magnitude of the closed-loop signal gain is below 1, so the circuit attenuates while still inverting the signal.

Request Quote or Submit BOM

If your design uses an inverting operational amplifier, include the exact op amp part number if known, package, quantity, supply rails, required gain, input signal range, frequency range, output load, and replacement requirements.

Use Send Inquiry for a known part number or a multi-line BOM. Stock, price, lead time, lifecycle, compliance, and replacement suitability should be verified during the quote review.

References and Further Reading