Op-Amp Circuits: Inverting, Non-Inverting, Summing

Almost every op-amp circuit you meet in a first circuits course is solved with two rules. With negative feedback, the op-amp drives its output so the two inputs sit at the same voltage, and no current flows into either input. Apply those two rules, write one KCL equation at the minus input, and the gain falls out. This page works the four circuits that come up most (inverting, non-inverting, summing and difference), then shows where a real op-amp stops obeying the rules: gain-bandwidth and slew rate.

Learning objectives

  • Use the two ideal op-amp rules to find the gain of any single op-amp stage with negative feedback
  • Choose between inverting and non-inverting for a given input resistance and sign
  • Design a summing and a difference amplifier from a target equation
  • Estimate a stage's bandwidth from the gain-bandwidth product, and the largest clean output swing from the slew rate

Prerequisites

The two rules, and when they hold

Rule 1: the voltage between the inputs is zero. Rule 2: no current flows into the inputs. Rule 2 is close to true for any op-amp (a JFET-input part like the TL072 draws picoamps). Rule 1 is only true while three things hold: there is negative feedback (output connected back to the minus input), the output is not at a supply rail, and the signal is slow enough that the op-amp still has gain to spare. When a circuit misbehaves, check those three before you check your algebra.

Inverting op-amp stage with gain -10 and non-inverting stage with gain 10, with their resistor values
The two worked examples: an inverting stage with gain -10 and a non-inverting stage with gain 10, both built from 10 kilohm and 90 or 100 kilohm resistors.

Inverting amplifier

The plus input is grounded, so by rule 1 the minus input is also at 0 V: a virtual ground. The current through Rin is vin / Rin. By rule 2 none of it enters the op-amp, so all of it flows through Rf, and the output has to sit at -(vin / Rin) x Rf. The gain is -Rf / Rin.

Worked example: Rin = 10 kilohms and Rf = 100 kilohms give a gain of -10. A 0.2 V input gives -2 V out. The source sees an input resistance of exactly Rin, 10 kilohms, because its far end is the virtual ground. That is the inverting stage's main drawback: to get a high input resistance you need a large Rin, and then a very large Rf for the same gain, which adds noise and makes stray capacitance matter.

Non-inverting amplifier

The input drives the plus pin directly. By rule 1 the minus pin is also at vin, and R1 and Rf form a divider from the output: vin = vout x R1 / (R1 + Rf). So the gain is 1 + Rf / R1, always at least 1 and never inverted. The input resistance is the op-amp's own, which for a JFET part is around a teraohm, so this is the stage to use when the source cannot supply current.

Worked example: R1 = 10 kilohms and Rf = 90 kilohms give a gain of 1 + 9 = 10. With Rf = 0 and R1 left open the gain is 1: the voltage follower, which copies a voltage while drawing almost no current from it.

Summing amplifier

Give the inverting stage several input resistors into the same virtual ground. Each input drives its own current vk / Rk into the node, the currents add, and all of them flow through Rf: vout = -Rf x (v1/R1 + v2/R2 + ...). With equal resistors it adds the inputs; with unequal ones it is a weighted sum, which is how a simple 4-bit DAC with binary-weighted resistors works.

Worked example: Rf = 20 kilohms, 1 V through 10 kilohms and 0.5 V through 20 kilohms. The output is -(2 x 1 + 1 x 0.5) = -2.5 V. Because the summing node is a virtual ground, the inputs do not load each other: changing one source does not change the current from another.

Difference amplifier

Put Rin and Rf on the minus input as in the inverting stage, and the same ratio as a divider (Rin to Rf to ground) on the plus input. Then vout = (Rf / Rin) x (v2 - v1). The ratios must match: a 1 percent mismatch between the two pairs lets some of the voltage common to both inputs through, which is why precision designs use a matched resistor network or an instrumentation amplifier.

Worked example: Rf / Rin = 47 kilohms / 4.7 kilohms = 10, v2 = 2.35 V and v1 = 2.20 V. The output is 10 x 0.15 = 1.5 V. This is the circuit for reading the small voltage across a current-sense resistor.

The four stages side by side

StageGainInput resistanceUse it for
Inverting-Rf / RinRinSign change, summing, a virtual-ground node
Non-inverting1 + Rf / R1Very high (the op-amp's own)Weak sources, buffering
Summing-Rf x sum of vk / RkRk per inputMixing, weighted sums, simple DACs
Difference(Rf / Rin) x (v2 - v1)Rin and Rin + RfSense resistors, removing a common offset

Where the ideal rules break: gain-bandwidth

A voltage-feedback op-amp's open-loop gain falls by 20 dB per decade above a low corner, so the product of closed-loop gain and bandwidth stays roughly constant. The datasheet calls it the gain-bandwidth product (GBW). The gain that sets the bandwidth is the noise gain, 1 + Rf / Rin, for both stages: it is the gain the op-amp sees around its own loop, not the signal gain.

Worked example with the TL072H, whose datasheet gives a typical GBW of 5.25 MHz. The non-inverting stage with noise gain 10 has a bandwidth of about 5.25 MHz / 10 = 525 kHz. The inverting stage with signal gain -10 has noise gain 11, so about 5.25 MHz / 11 = 477 kHz. Same signal gain magnitude, about 10 percent less bandwidth.

Where the ideal rules break: slew rate

The output can only change so fast. The TL072H's typical slew rate is 20 V/us. A sine of peak Vp has a steepest slope of 2 x pi x f x Vp, so the largest frequency it can reproduce without turning into a triangle (the full-power bandwidth) is SR / (2 x pi x Vp). For a 10 V peak output that is 20 V/us / (2 x pi x 10 V), about 318 kHz. For a 1 V peak it is about 3183 kHz, far above the gain-bandwidth limit, so small signals are limited by GBW and large ones by slew rate.

Common mistakes

  • Using the signal gain instead of the noise gain (1 + Rf / Rin) to work out bandwidth.
  • Forgetting that the inverting stage's input resistance is only Rin.
  • Applying rule 1 when the output is at a rail: the inputs are no longer equal.
  • Applying rule 1 to a comparator or any circuit with positive feedback.
  • A difference amplifier with mismatched resistor ratios, then wondering why a common offset leaks through.
  • Checking only the gain at DC and missing that the circuit has no gain left at the signal's frequency.

Quick check

1. An inverting stage has Rin = 4.7 kilohms and Rf = 47 kilohms. What are its gain and input resistance?

Gain -10, input resistance 4.7 kilohms.

2. You need a gain of +21 from an op-amp with a 1 MHz GBW. About what bandwidth do you get?

Noise gain 21, so about 1 MHz / 21, roughly 48 kHz.

3. A 20 kHz, 10 V peak output is wanted from a part with a 0.5 V/us slew rate. Is it clean?

No. It needs 2 x pi x 20 kHz x 10 V, about 1.26 V/us, more than the part can slew.

Summary

  • With negative feedback: inputs at the same voltage, no input current.
  • Inverting: -Rf / Rin, input resistance Rin. Non-inverting: 1 + Rf / R1, very high input resistance.
  • Summing and difference amplifiers are the inverting stage with more inputs or a matched divider.
  • Bandwidth is about GBW divided by the noise gain; a large clean swing needs SR above 2 x pi x f x Vp.

Related

Sources

Last verified

Checked against the TI TL07xx datasheet, revision W (July 2025), and the TI op-amp applications handbook on 28 November 2026. Every worked number on this page was recomputed separately before publishing.