Op-amp circuits: inverting, non-inverting and summing
Operational-amplifier (op-amp) inverting, non-inverting, and summing amplifier circuits: assumptions, derivations, formulas, and exam-style examples.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Operational amplifiers (op-amps) are the basic building blocks inside analog instrumentation, sensor signal conditioning, audio amplifiers, data acquisition front-ends (IoT), and active filters. The inverting, non-inverting, and summing amplifier configurations give predictable gain, polarity, and combining of signals using only resistors and an op-amp.
Key ideas
- Ideal op-amp model: Assumptions commonly used in analysis:
- Infinite open-loop gain
A_OL → ∞. - Infinite input resistance (no input current into either input terminal).
- Zero output resistance (output is an ideal voltage source).
- Infinite bandwidth (gain independent of frequency) and zero input offset (for DC analysis unless stated otherwise). Under these, two “golden rules” are applied when negative feedback is used and the op-amp is not saturated:
- The input currents are zero:
i+ = 0andi− = 0. - The input voltages are equal:
v+ = v−(often called a virtual short).
- Infinite open-loop gain
- Virtual short vs. virtual ground: A virtual short means
v+ = v−, not a direct wire connection. A virtual ground is a special case when one input is held at 0 V (ground), so the other input node is also at approximately 0 V by feedback, even though it is not physically connected to ground. - Negative feedback: Feeding back a portion of the output to the inverting input to control the closed-loop gain, stabilize the amplifier, and reduce sensitivity to the op-amp’s internal parameters.
- Saturation/Clipping: The op-amp output cannot exceed its supply rails (e.g., ±12 V or 0 to +5 V). If the demanded output gain times input exceeds the rail, the output saturates (clips) at a value near the rail.
- Resistor ratios set gain: In basic inverting and non-inverting amplifiers, the closed-loop gain depends on the ratio of two resistors, not their absolute values (assuming the ideal model).
- Summing amplifier: An inverting amplifier extended to add (algebraically sum) multiple input voltages using multiple input resistors into the inverting node.
Exact statements, assumptions, derivations students are asked to show:
- Inverting amplifier (with negative feedback)
- Circuit description to draw and label:
- Draw an op-amp as a triangle with output on the right, inputs on the left: upper input labeled “+” (non-inverting), lower input labeled “−” (inverting).
- Connect the “+” input to ground (0 V reference).
- From the signal source
Vs(left), draw a resistorRinto the “−” input node (call this nodeV−). - From the output
Vo, draw a feedback resistorRfback to the “−” input node. - Clearly label:
Vs,Rin,Rf, nodeV−, ground at the “+” input, outputVo, and supply rails (small labels like +VCC, −VEE if required by your university diagram standards).
- Assumptions: Ideal op-amp, linear region (not saturated), negative feedback via
Rf. - Derivation:
- Because the “+” input is at 0 V (ground) and with ideal negative feedback,
v+ = v− = 0 V(virtual ground at the inverting node). - No input current into op-amp: current through
Rinequals current throughRf.Iin = (Vs − V−)/Rin = (Vs − 0)/Rin = Vs/RinIf = (V− − Vo)/Rf = (0 − Vo)/Rf = −Vo/Rf - KCL at node:
Iin + (op-amp input current) = If, with op-amp input current = 0, soVs/Rin = −Vo/Rf. - Therefore,
Vo = −(Rf/Rin)·Vs. The gain isAv = Vo/Vs = −Rf/Rin. - Input resistance seen by source is approximately
Rin(becauseV−is held near 0 V).
- Because the “+” input is at 0 V (ground) and with ideal negative feedback,
- Non-inverting amplifier (with negative feedback)
- Circuit description to draw and label:
- Draw op-amp triangle. Apply input
Vsto the “+” input directly. - Make a feedback divider from output
Voto the “−” input: a resistorRffrom output to “−” input, and a resistorR1from “−” input to ground. - Label
Vs,Vo,Rf,R1, nodeV−, and ground.
- Draw op-amp triangle. Apply input
- Assumptions: Ideal op-amp, linear region, negative feedback via divider.
- Derivation:
- With ideal op-amp and feedback,
v+ = v−. The “+” input is atVs, soV− = Vs. - By voltage divider at node
V−:V− = Vo·(R1/(Rf + R1)). - Equate:
Vs = Vo·(R1/(Rf + R1))→Vo = Vs·(1 + Rf/R1). - Gain is
Av = 1 + Rf/R1, always positive (no inversion) and ≥ 1. - Input resistance is very high (ideally infinite) because input is directly into the non-inverting input terminal.
- With ideal op-amp and feedback,
- Inverting summing amplifier (weighted summer)
- Circuit description to draw and label:
- Same as inverting amplifier, but multiple input sources
V1, V2, …, Vn, each feeding the inverting node through its own input resistorR1, R2, …, Rn. - “+” input is grounded. Feedback resistor
RffromVoto inverting node. - Label all sources, resistors, node
V−,Rf,Vo.
- Same as inverting amplifier, but multiple input sources
- Assumptions: Ideal op-amp, linear region, negative feedback, sources referenced to ground (unless stated otherwise).
- Derivation:
- Virtual ground at
V−givesV− ≈ 0 V. No input current into op-amp, so sum of currents through all input resistors flows throughRf. - For each input
Viwith resistorRi: currentIi = (Vi − 0)/Ri = Vi/Ri. The feedback currentIf = −Vo/Rf. - KCL:
Σ(Vi/Ri) = −Vo/Rf→Vo = −Rf·Σ(Vi/Ri). - Special case (equal resistors
Ri = R):Vo = −(Rf/R)·(V1 + V2 + … + Vn). - Output is the inverted weighted sum of inputs.
- Virtual ground at
- Averaging amplifier (a summing variant)
- Using the summing amplifier with
Rf = R/nand all input resistors equal toR, the output becomesVo = −(1/n)·(V1 + V2 + … + Vn)(an inverted average). To get a non-inverted average, you can follow it with a unity-gain inverter stage.
- Practical notes students should mention briefly
- Input and output saturation:
Vois limited near the supply rails; exact headroom depends on the op-amp type (e.g., rail-to-rail vs. not). Always check expectedVoagainst supplies. - Input bias currents and resistor selection: In precision DC work, bias currents through large resistors cause offset; a bias compensation resistor equal to the parallel of feedback network is often placed at the non-inverting input (this is generally beyond first-year numericals but may be asked as a short note).
- Bandwidth: Real op-amps have finite gain-bandwidth product (GBW). Closed-loop gain × bandwidth ≈ constant (for single-pole models), so higher gain reduces bandwidth. For this topic, most exam questions treat DC/low-frequency ideal cases.
Formulas
Vo = −(Rf/Rin)·Vs
- Inverting amplifier closed-loop gain.
VoandVsin volts (V),RfandRinin ohms (Ω). Applies with ideal op-amp, negative feedback, and linear (unsaturated) operation.
Av(inverting) = Vo/Vs = −Rf/Rin
- Dimensionless gain. Same applicability as above.
Vo = Vs·(1 + Rf/R1)
- Non-inverting amplifier closed-loop gain.
Vo,Vsin V;Rf,R1in Ω. Ideal op-amp, negative feedback, linear operation.
Av(non-inverting) = 1 + Rf/R1
- Dimensionless. Same applicability.
Vo = −Rf·Σ(Vi/Ri)
- Inverting summing amplifier (weighted sum).
Voand eachViin V;Rf,Riin Ω. Ideal op-amp, negative feedback, linear operation.
Vo = −(Rf/R)·(V1 + V2 + … + Vn)
- Equal-resistor summing amplifier. All
Ri = R. Same applicability.
Rin(effective, inverting) ≈ Rin
- Effective input resistance seen by the source in an inverting amplifier equals the input resistor value
Rin(Ω) due to virtual ground. Ideal model.
Rin(effective, non-inverting) → ∞ (ideally)
- Very high input resistance at the non-inverting input; in practice depends on op-amp input stage. Ideal model statement.
V− = V+ (with negative feedback, ideal op-amp, unsaturated)
- Virtual short condition. Voltages in V. This is not a direct wire; it is an analysis result under assumptions.
Finite rails: Vo ∈ [−VEE + headroom, +VCC − headroom]
- Output cannot exceed supplies. Headroom depends on op-amp design. Use to check saturation qualitatively.
Worked examples
Example 1: Inverting amplifier gain and output, with saturation check
Given: Vs = 0.2 V, Rin = 10 kΩ, Rf = 100 kΩ, op-amp powered by ±12 V supplies.
- Formula:
Vo = −(Rf/Rin)·Vs. - Numbers:
Vo = −(100 kΩ / 10 kΩ) · 0.2 V = −(10) · 0.2 V = −2.0 V. - Units: Output in volts.
Vo = −2.0 V. - Saturation check: Rails are ±12 V, demanded output is −2.0 V, which is within range. No saturation. Final answer: Vo = −2.0 V (no clipping).
Example 2: Non-inverting amplifier design for desired gain
Design a non-inverting amplifier with gain Av = 11 using standard resistor values, and find Vo for Vs = 0.15 V. Assume ±5 V rails.
- Formula:
Av = 1 + Rf/R1. ForAv = 11, needRf/R1 = 10. - Choose convenient values keeping the ratio 10: e.g.,
R1 = 10 kΩ,Rf = 100 kΩ. - Output for given input:
Vo = Av·Vs = 11 · 0.15 V = 1.65 V. - Saturation check: Rails ±5 V, 1.65 V is inside. No clipping. Final answer: Use R1 = 10 kΩ, Rf = 100 kΩ; Vo = 1.65 V for Vs = 0.15 V.
Example 3: 3-input inverting summing amplifier (weighted)
Given a summing amplifier with Rf = 47 kΩ. Inputs: V1 = 0.50 V via R1 = 10 kΩ, V2 = −0.20 V via R2 = 20 kΩ, V3 = 1.00 V via R3 = 47 kΩ. Rails ±15 V. Find Vo. Also state whether the circuit saturates.
- Formula:
Vo = −Rf·(V1/R1 + V2/R2 + V3/R3). - Compute individual terms (carry units):
V1/R1 = 0.50 V / 10 kΩ = 0.050 mA = 50 µA(current equivalent; algebraically 0.00005 A). Numerically as current:0.50/10000 A = 0.00005 A.V2/R2 = −0.20 V / 20 kΩ = −0.010 mA = −10 µA(−0.00001 A).V3/R3 = 1.00 V / 47 kΩ ≈ 0.0212766 mA ≈ 21.2766 µA(≈ 0.0000212766 A). Sum:50 µA − 10 µA + 21.2766 µA = 61.2766 µA(0.0000612766 A).
- Multiply by
Rf = 47 kΩ:Vo = −47 kΩ × 61.2766 µA = −(47000 Ω) × (61.2766 × 10⁻⁶ A)Vo = −(47000 × 0.0000612766) V ≈ −2.879999 V(check: 47000 × 0.0000612766 ≈ 2.879999 ≈ 2.88).
- Saturation check: Rails ±15 V, demanded output ≈ −2.88 V, inside range. No saturation. Final answer: Vo ≈ −2.88 V (no clipping).
Example 4 (optional design extension, if asked): Averaging 4 inputs
Design an inverting averaging amplifier for four equal-weight inputs such that Vo = −(V1 + V2 + V3 + V4)/4.
- Choose any convenient
Rfor all inputs (e.g.,R = 40 kΩ), then setRf = R/4 = 10 kΩ. This gives the required scaling. State that the output is inverted; if a non-inverted average is required, follow with a unity-gain inverting stage (another op-amp withRin = Rf).
Common mistakes
- Mixing up
RinandRfin the inverting formula, giving wrong gain magnitude. - Assuming
V−is physically grounded in inverting configuration; it is a virtual ground only. - Ignoring saturation: computing a large
Vo(e.g., ±30 V) when supplies are ±12 V. Always compare to rails. - Using kΩ and Ω carelessly: not converting units properly (e.g., 10 kΩ = 10000 Ω).
- Assuming the non-inverting input draws current in ideal analysis; ideal inputs draw zero current.
- Forgetting that non-inverting gain is
1 + Rf/R1, notRf/R1. - In summing circuits, forgetting to use algebraic signs of input voltages (negative inputs reduce the sum).
- Designing with extreme resistor values (very high resistances increase noise and offset sensitivity; very low values load sources or cause high current). Even if not numerically penalized, mention reasonable ranges (e.g., 1 kΩ to 1 MΩ) if design judgment is requested.
For your exam
- Short notes: Ideal op-amp assumptions; effect of negative feedback; summing amplifier and averaging amplifier; saturation/clipping; brief mention of input bias current compensation.
- Derivations: Step-by-step derivation of
Vo = −(Rf/Rin)·Vsfor inverting,Vo = Vs·(1 + Rf/R1)for non-inverting, andVo = −Rf·Σ(Vi/Ri)for summing. State assumptions: ideal op-amp, negative feedback, linear region. - Diagrams: Neat, labeled circuit diagrams for each configuration. Include input labels, resistor values, ground reference, feedback path, and output node. If asked, draw supply rails as +VCC and −VEE (or VDD and VSS for single supply with a mid-bias, if specified).
- Numericals: Compute gains and outputs with units, check for saturation vs supply rails, and handle sign conventions correctly. For summing, handle weighted inputs by their resistor ratios.
- Design problems: Choose resistor values for a target gain ratio. Show ratio first, then propose standard resistor values that meet the ratio. Optionally comment on practical ranges and tolerance.
- Extra credit: Briefly state bandwidth trade-off (GBW) and input/output impedance characteristics for both configurations, but keep the core DC formulas correct.
A full-marks answer typically includes: a correct and labeled diagram, clear statement of assumptions, neat derivation lines with KCL/voltage-divider steps, final formula boxed/underlined (in your handwriting), correct units, and a saturation check.
Quick check
- An inverting amplifier uses
Rin = 5 kΩandRf = 50 kΩ. IfVs = −0.1 V, what isVo? Assume no saturation. - A non-inverting amplifier has
R1 = 4.7 kΩto ground andRf = 47 kΩto output. Find the gain andVoforVs = 0.2 V. - A 2-input summing amplifier has
Rf = 22 kΩ,R1 = 10 kΩwithV1 = 0.3 V, andR2 = 20 kΩwithV2 = 0.5 V. FindVo(assume ideal op-amp and no saturation).
Answers: 1) Av = −Rf/Rin = −10, so Vo = (−10) × (−0.1 V) = 1.0 V. 2) Av = 1 + (47/4.7) = 11; Vo = 11 × 0.2 V = 2.2 V. 3) Vo = −Rf·(V1/R1 + V2/R2) = −22k·(0.3/10k + 0.5/20k) = −22k·(0.00003 + 0.000025) = −22k·0.000055 ≈ −1.21 V (exact: −1.21 V).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?