EngineerPlay

Op-amp formulas

An ideal op-amp takes no input current and, with feedback, holds its − input at the voltage of its + input. So an inverting amplifier has A_v = −R_f / R_in and a non-inverting one A_v = 1 + R_f / R_g: 47 kΩ over 10 kΩ gives −4.7 or 5.7. The output stops short of the supply rails.

The formulas

FormulaWhat it givesSymbols
A_v = −R_f ÷ R_inGain of an inverting amplifierthe − input is a virtual earth at 0 V; the minus sign means the output is upside down
A_v = 1 + R_f ÷ R_gGain of a non-inverting amplifierR_g from the − input to ground; never less than 1 (a follower, R_f = 0, has gain 1)
V_out = V_s × R₂ ÷ (R₁ + R₂)Voltage follower fed from a dividerthe follower copies its + input, which the divider R₁, R₂ sets
V_out = −R_f ÷ R_in × V_inOutput of an inverting amplifieras long as it stays inside the output swing
V_out = (1 + R_f ÷ R_g) × V_inOutput of a non-inverting amplifiersame sign as the input
I = V_in ÷ R_inCurrent through R_in and R_f (inverting)no current goes into the op-amp, so the same current flows on through R_f
G = 20 × log₁₀(A_v)Voltage gain in decibelsthe size of the gain: 10 is 20 dB, 100 is 40 dB
A = 10^(G ÷ 20)Decibels back to a voltage ratioG in dB; 6 dB is about 2, 20 dB is 10
R_f = A × R_inFeedback resistor for an inverting gainA = the size of the wanted gain
R_f = (A_v − 1) × R_gFeedback resistor for a non-inverting gainthe 1 of the gain comes from the op-amp itself
V_sat = V_rail − 1.5 VLargest output (saturation)for an op-amp that swings to within 1.5 V of each rail; with no feedback (a comparator) the output sits at +V_sat or −V_sat
V_out = −R_f × (V₁ ÷ R₁ + V₂ ÷ R₂ + …)Summing amplifiereach input adds its own current into the virtual earth
V_out = R₂ ÷ R₁ × (V₂ − V₁)Difference amplifierwith R₃ = R₁ and R₄ = R₂; V₂ on the + side
V_out = A₁ × A₂ × V_inTwo stages in a rowthe gains multiply, signs included

Worked example

This example is made by the same code as the practice questions. Open the working to see every step.

The op-amp is ideal and runs on ±15 V. What is V_out, in V? Give your answer to 3 significant figures.

An inverting op-amp amplifier: R_in into the − input and R_f from the output back to itLabels shown, in drawing order: −, +, +15 V, −15 V, V_in, R_in = 6.8 kΩ, R_f = 39 kΩ, V_out, V_in = 0.8 V, V_out = ?.−++15 V−15 VV_inR_in = 6.8 kΩR_f = 39 kΩV_outV_in = 0.8 VV_out = ?
Show the working
  1. Write down what is given: R_f = 39 kΩ, R_in = 6.8 kΩ, V_in = 0.8 V.
  2. The inverting gain is −R_f ÷ R_in, and the output is the gain times the input: V_out = −R_f ÷ R_in × V_in.
  3. Work it out and round to 3 significant figures: V_out = −39 kΩ ÷ 6.8 kΩ × 0.8 V ≈ −4.59 V.
  4. Check: the output is the input turned upside down and made bigger. Answer: −4.59 V.

Remember: Inverting amplifier: A_v = −R_f ÷ R_in (the − input is a virtual earth and takes no current). Formula sheet

Common mistakes

These are the wrong answers the practice questions offer, and the slip that leads to each.

Questions

What is the formula for gain of an inverting amplifier?

A_v = −R_f ÷ R_in. Symbols: the − input is a virtual earth at 0 V; the minus sign means the output is upside down.

What is the formula for gain of a non-inverting amplifier?

A_v = 1 + R_f ÷ R_g. Symbols: R_g from the − input to ground; never less than 1 (a follower, R_f = 0, has gain 1).

What is the formula for voltage follower fed from a divider?

V_out = V_s × R₂ ÷ (R₁ + R₂). Symbols: the follower copies its + input, which the divider R₁, R₂ sets.