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
| Formula | What it gives | Symbols |
|---|---|---|
A_v = −R_f ÷ R_in | Gain of an inverting amplifier | the − input is a virtual earth at 0 V; the minus sign means the output is upside down |
A_v = 1 + R_f ÷ R_g | Gain of a non-inverting amplifier | R_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 divider | the follower copies its + input, which the divider R₁, R₂ sets |
V_out = −R_f ÷ R_in × V_in | Output of an inverting amplifier | as long as it stays inside the output swing |
V_out = (1 + R_f ÷ R_g) × V_in | Output of a non-inverting amplifier | same sign as the input |
I = V_in ÷ R_in | Current 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 decibels | the size of the gain: 10 is 20 dB, 100 is 40 dB |
A = 10^(G ÷ 20) | Decibels back to a voltage ratio | G in dB; 6 dB is about 2, 20 dB is 10 |
R_f = A × R_in | Feedback resistor for an inverting gain | A = the size of the wanted gain |
R_f = (A_v − 1) × R_g | Feedback resistor for a non-inverting gain | the 1 of the gain comes from the op-amp itself |
V_sat = V_rail − 1.5 V | Largest 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 amplifier | each input adds its own current into the virtual earth |
V_out = R₂ ÷ R₁ × (V₂ − V₁) | Difference amplifier | with R₃ = R₁ and R₄ = R₂; V₂ on the + side |
V_out = A₁ × A₂ × V_in | Two stages in a row | the 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.
Answer: −4.59 V. No current goes into the op-amp and its − input stays at 0 V, so the current through R_in flows on through R_f: V_out = −39 kΩ ÷ 6.8 kΩ × 0.8 V ≈ −4.59 V.
Show the working
- Write down what is given: R_f = 39 kΩ, R_in = 6.8 kΩ, V_in = 0.8 V.
- 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.
- Work it out and round to 3 significant figures: V_out = −39 kΩ ÷ 6.8 kΩ × 0.8 V ≈ −4.59 V.
- 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.
- Dropping the minus sign of an inverting amplifier: its output is upside down.
- Forgetting the 1 in the non-inverting gain 1 + R_f / R_g.
- Taking an output beyond the rails: it stops at V_sat, short of the supply.
- Using 10 × log₁₀ for a voltage gain: voltage ratios use 20 × log₁₀.
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.