Practice problems
Op-amp gain practice problems
An op-amp with two resistors around it makes a signal bigger by a gain the resistors set. These ten problems find the gain both ways round, then the output, then the resistor that gives a gain you want, and end where the output runs out of room at the rails. Type your answer to check it, and open the working whenever you want it.
The method
- Vout = G × Vin, with the sign: an inverting amp turns + into −
- To choose resistors, rearrange: Rf = (G − 1) × Rg non-inverting, Rin = Rf ÷ |G| inverting
- The output can't pass its limits, about 1.5 V inside each rail: ±10.5 V on ±12 V rails. Ask for more and it clips
The gain has no unit: it's how many times bigger the output is.
The problems
Type your answer and tap Check. Every one has the working, step by step.
Problem 1 of 10
A non-inverting amplifier has Rf = 33 kΩ and Rg = 10 kΩ. What is its gain?
Show the working
- A non-inverting amp always adds 1: G = 1 + Rf over Rg.
- G = 1 + 33 kΩ over 10 kΩ = 1 + 3.3 = 4.3
Answer: 4.3
Problem 2 of 10
An inverting amplifier has Rf = 47 kΩ and Rin = 10 kΩ. What is its gain?
Show the working
- An inverting amp's gain is G = −Rf over Rin. The minus sign means the output is flipped.
- G = −47 kΩ over 10 kΩ = −4.7
Answer: −4.7
Problem 3 of 10
A non-inverting amplifier with Rf = 68 kΩ and Rg = 22 kΩ gets 0.4 V in. What is the output voltage?
Show the working
- G = 1 + 68 kΩ over 22 kΩ ≈ 1 + 3.09 = 4.09
- Vout = G × Vin = 4.09 × 0.4 V ≈ 1.64 V, the same sign as the input.
Answer: 1.64 V
Problem 4 of 10
An inverting amplifier with Rf = 100 kΩ and Rin = 22 kΩ gets 0.3 V in. What is the output voltage?
Show the working
- G = −100 kΩ over 22 kΩ ≈ −4.545
- Vout = −4.545 × 0.3 V ≈ −1.36 V. Positive in, negative out.
Answer: −1.36 V
Problem 5 of 10
You want a non-inverting gain of 8 and have Rg = 4.7 kΩ. What value of Rf gives it?
Show the working
- From G = 1 + Rf over Rg, the ratio must be G − 1 = 7.
- Rf = 7 × 4.7 kΩ = 32.9 kΩ. The nearest E12 value, 33 kΩ, gives a gain of about 8.02.
Answer: 32.9 kΩ
Problem 6 of 10
You want an inverting gain of −15 and have Rf = 150 kΩ. What input resistor Rin gives it?
Show the working
- The size of the gain is Rf over Rin = 15, so Rin = Rf over 15.
- Rin = 150 kΩ over 15 = 10 kΩ
Answer: 10 kΩ
Problem 7 of 10
A non-inverting amplifier with a gain of 11 runs on ±12 V rails, so its output can reach ±10.5 V. It gets a 0.8 V peak sine. What is the output's peak?
Show the working
- It would need 11 × 0.8 V = 8.8 V peak.
- 8.8 V is inside the 10.5 V limit, so nothing clips: the output is a clean 8.8 V peak.
Answer: 8.8 V
Problem 8 of 10
The same amplifier (gain 11, ±12 V rails) now gets a 1.2 V peak sine. What peak does the output actually reach?
Show the working
- It would need 11 × 1.2 V = 13.2 V peak.
- The output stops about 1.5 V short of each rail: 12 V − 1.5 V = 10.5 V.
- 13.2 V is past that, so the tops are cut flat at 10.5 V. The wave clips.
Answer: 10.5 V
Problem 9 of 10
An inverting amplifier with Rf = 220 kΩ and Rin = 10 kΩ runs on ±12 V rails. A steady +0.6 V goes in. What is the output voltage?
Show the working
- G = −220 kΩ over 10 kΩ = −22, so it would need −22 × 0.6 V = −13.2 V.
- The bottom limit is 1.5 V above the −12 V rail: −10.5 V.
- −13.2 V is past it, so the output sits at −10.5 V.
Answer: −10.5 V
Problem 10 of 10
Stretch: a non-inverting amplifier with Rf = 56 kΩ and Rg = 4.7 kΩ runs on ±9 V rails. What is the biggest input peak, in millivolts, that comes out without clipping?
Show the working
- The output limit is 1.5 V inside the rail: 9 V − 1.5 V = 7.5 V.
- G = 1 + 56 kΩ over 4.7 kΩ ≈ 12.9
- Vin = 7.5 V over 12.9 ≈ 0.581 V, which is 581 mV. Any bigger and the tops clip.
Answer: 581 mV
“Non-inverting amplifiers” is lesson 4 of 6 in Amplifier Peaks, Electronics World 6. Free with an account. Lessons unlock in order, so you’ll do the 38 before it first.
Free lesson
Now build it yourself
Each lesson comes in three short parts: see the idea, try it on a live board, then build it yourself, with quick checks as you go.
“Non-inverting amplifiers” is lesson 4 of 6 in Amplifier Peaks, Electronics World 6. Free with an account. Lessons unlock in order, so you’ll do the 38 before it first.
Or start from the very first lesson, no account neededCheck it with a calculator
The ideas behind it
- Non-inverting amplifier explainedAn op-amp, two resistors and gain G = 1 + R_f ÷ R_g: bigger, in step, and clipped at the rails.
- Op-amp inverting amplifier explainedSignal into the − input through a resistor: a bigger copy, upside down, with gain −R_f ÷ R_in.
- Voltage follower explainedAn op-amp whose output copies its input, so a weak source can drive a heavy load without sagging.
Questions people ask
What's the difference between inverting and non-inverting gain?
Non-inverting, G = 1 + Rf ÷ Rg: the output is the right way up and the gain is never below 1. Inverting, G = −Rf ÷ Rin: the output is flipped, and the gain can be any size, even less than 1. The same two resistors give a gain one bigger non-inverting.
Why does my answer clip at 10.5 V and not 12 V?
A classic op-amp's output can't reach its rails. It stops about 1.5 V short of each one, so on ±12 V the output runs from −10.5 V to +10.5 V. A rail-to-rail op-amp gets much closer. If input × gain asks for more, the output sits at the limit.
How do I pick resistors for a gain?
Choose one resistor in kilohms first, often 10 kΩ. Non-inverting, Rf = (G − 1) × Rg. Inverting, Rin = Rf ÷ |G|. Then pick the nearest standard value and check the gain it really gives.
More practice
- Ohm's law practice problemsFind V, I or R, then the power, with the working for each.
- Units and prefixes practice problemsConvert mA, kΩ, µF, nF, pF, ms and mV, with the working for each.
- LED resistor practice problemsSize the resistor for one LED or a string, round to a standard value, check the power.
- Electrical power practice problemsPower three ways, energy in kWh, battery life and running costs, all worked.
- Series and parallel resistors practice problemsTotals in series and parallel, mixed networks and branch currents, all worked.
- Kirchhoff's laws practice problemsBalance currents at a junction and voltages round a loop, with the working for each.
- Voltage divider practice problemsFind Vout, pick R2 for a target and work out loading, with the working for each.
- Capacitor practice problemsCharge, capacitance, series and parallel, and stored energy, with the working.
- RC time constant practice problemsτ = R × C, the 63% rule, charging and discharging, with the working.
- AC voltage and transformer practice problemsPeak, RMS, period, AC power and transformer turns ratios, with the working.
- Capacitive and inductive reactance practice problemsCapacitor and coil reactance, AC current and impedance, with the working.
- RC filter practice problemsCutoff frequency, choosing R or C, and the output either side of the cutoff, with the working.
- Decibel practice problemsRatios to dB and back, for power and voltage, gains that add and the −3 dB point.
- Zener diode practice problemsSize a Zener regulator's resistor, split its current and check the Zener's power.
- Transistor switch practice problemsBase current, base resistor and load current for a BJT switch, then a MOSFET.
- Binary and hex practice problemsBinary to decimal and back, bits needed, the largest n-bit number and hex.