📘 CodingMarble Learn

Operational Amplifier Configurations: Inverting, Non-Inverting and Summing

An op-amp with negative feedback gives a fixed, useful gain set only by resistors. Inverting amplifier: G = −Rf/Rin (output flipped). Non-inverting amplifier: G = 1 + Rf/Rin (same way up). Summing amplifier: Vout = −Rf(V1/R1 + V2/R2 + …), used in audio mixers and digital-to-analogue converters. Real op-amps have finite gain, finite bandwidth (gain × bandwidth ≈ constant) and their output saturates near the supply voltages.

🎬 Step-by-step story

  1. Two golden rules for an op-amp with feedback: (1) no current goes into its inputs; (2) it adjusts the output until V₊ = V₋. Blue wave = input, orange wave = output.
  2. Inverting amplifier: input goes through Rin into V₋; Rf feeds the output back. The orange wave is upside-down and Rf/Rin = 3 times bigger.
  3. Non-inverting amplifier: the input goes straight into V₊. The output is the same way up and 1 + Rf/Rin = 3 times bigger.
  4. Summing amplifier: two inputs each go through a resistor into V₋. The output is minus the weighted sum. Two waves mix into one.
  5. Real op-amp: the output cannot go past the supply (±12 V here). Turn the input up and the tops of the wave are cut off: saturation, also called clipping.
  6. Free play: choose a mode, change Rin, Rf and the input, and read the gain below.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why does the op-amp make V₊ equal V₋?

Any tiny difference is multiplied by about 10⁵ and pushed back through Rf, which cancels the difference. The circuit settles where V₊ ≈ V₋.

Why is the inverting output upside-down?

When Vin goes positive, current flows into the virtual earth through Rin and must leave through Rf, so the output end of Rf must be negative.

Why is the non-inverting gain 1 + Rf/Rin, not Rf/Rin?

Rf and Rin form a divider; V₋ is only part of Vout. Vout = Vin × (Rin + Rf)/Rin = Vin(1 + Rf/Rin).

How can one op-amp add two signals?

Each input sends its own current into the virtual earth. The currents add, and the total goes through Rf, so the output is proportional to the sum.

Why are the wave tops flat when the input is large?

The output cannot go past the supply rails, so anything bigger is cut off. That is saturation.

Two golden rules and the virtual earth

When part of the output is fed back to the inverting input (negative feedback), an op-amp follows two simple rules:

  1. No current flows into V₊ or V₋ (infinite input resistance).
  2. The output changes until V₊ = V₋ (because the open-loop gain is huge).

If V₊ is connected to 0 V, then V₋ is also held at 0 V even though it is not wired to earth. We call this point a virtual earth.

Inverting amplifier configuration

Input Vin goes through Rin to V₋. Rf joins V₋ to the output. V₊ is at 0 V.

V₋ is a virtual earth, so the current in Rin is Vin/Rin. No current goes into the op-amp, so the same current flows through Rf: −Vout/Rf. Set them equal:

G = Vout / Vin = −Rf / Rin

The minus sign means the output is inverted (180° out of phase). The input resistance of the whole circuit is just Rin.

Non-inverting amplifier configuration

Vin goes straight to V₊. Rf and Rin form a potential divider from the output to earth, with the middle point at V₋.

V₋ = Vout × Rin/(Rin + Rf) and V₋ = V₊ = Vin, so

G = 1 + Rf / Rin

Output is in phase with input. Gain is always at least 1. The input resistance is very high, so it hardly loads a weak sensor. With Rf = 0 (and Rin removed) G = 1: a voltage follower (buffer).

Summing amplifier configuration

Several inputs V1, V2, V3 each go through their own resistor R1, R2, R3 to the virtual earth at V₋. Their currents add and all flow through Rf:

Vout = −Rf (V1/R1 + V2/R2 + V3/R3)

If all resistors are equal to Rf, Vout = −(V1 + V2 + V3). Uses: audio mixers (each channel has its own volume) and digital-to-analogue converters, where resistors R, 2R, 4R, 8R give binary weights 8:4:2:1.

Real operational amplifiers

Try it: be the op-amp

Hold a ruler with its middle on a pencil (a see-saw). Push one end down 1 cm at 3 cm from the pencil: the far end, 9 cm away, moves up 3 cm. Like the inverting amp, the output is the opposite way and Rf/Rin = 9/3 = 3 times bigger. Then check it in the 3D with Rin = 10, Rf = 30.

Key formulas and definitions

Worked examples

1. Inverting amp: Rin = 10 kΩ, Rf = 50 kΩ, Vin = 0.2 V. Find G and Vout.

G = −50/10 = −5. Vout = −5 × 0.2 = −1.0 V.

2. Non-inverting amp: Rin = 2 kΩ, Rf = 18 kΩ, Vin = 0.3 V. Find Vout.

G = 1 + 18/2 = 10. Vout = 10 × 0.3 = 3.0 V.

3. Design an inverting amp with gain −20 and Rin = 4.7 kΩ.

Rf = 20 × 4.7 = 94 kΩ (use the nearest value, 100 kΩ, if precision is not vital).

4. Summing amp: Rf = 10 kΩ, R1 = 10 kΩ, R2 = 5 kΩ, V1 = 0.5 V, V2 = 0.2 V. Find Vout.

Vout = −10(0.5/10 + 0.2/5) = −10(0.05 + 0.04) = −0.9 V.

5. Inverting amp with gain −15 on a ±12 V supply. Input peak 1.0 V. What does the output look like?

It wants −15 V peaks, but it cannot go past about ±12 V. So the wave is clipped flat at the supply: saturation.

6. An op-amp has a gain-bandwidth product of 1.0 MHz. It is used as a non-inverting amp with Rf = 99 kΩ, Rin = 1 kΩ. Find the bandwidth.

G = 1 + 99/1 = 100. Bandwidth = 1.0 MHz / 100 = 10 kHz.

7. A 3-bit DAC uses a summing amp with Rf = 1 kΩ and input resistors 1 kΩ (MSB), 2 kΩ, 4 kΩ (LSB). Each bit is 0 V or 4 V. Find Vout for input 101.

Vout = −1(4/1 + 0/2 + 4/4) = −(4 + 0 + 1) = −5 V. The size 5 matches binary 101.

Common mistakes

Practice quiz

1. Gain of an inverting amplifier is:
2. Gain of a non-inverting amplifier with Rf = Rin is:
3. A virtual earth is found at:
4. In a summing amp with all resistors equal, Vout =
5. If the gain is raised, the bandwidth of a real op-amp circuit:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between an inverting and a non-inverting amplifier?

The inverting amp flips the signal and has gain −Rf/Rin; its input goes to V₋. The non-inverting amp keeps the signal the same way up with gain 1 + Rf/Rin; its input goes to V₊ and it has a very high input resistance.

Why is it called a virtual earth?

In an inverting amp V₊ is at 0 V and feedback keeps V₋ equal to it, so V₋ sits at 0 V without being connected to earth.

What limits a real op-amp?

Saturation at the supply voltages, a finite open-loop gain that falls with frequency (constant gain-bandwidth product), a finite slew rate and small offset voltages and input currents.

Where this is taught

England (GCSE, A level)Year 133.13 Electronics

Learn first

Learn next

Related lessons

All Physics lessons