Free calculator
Op-amp gain calculator
An op-amp with two resistors around it makes a signal bigger. Wired non-inverting, the output is the input times 1 + Rf ÷ Rg, the right way up. Wired inverting, it's −Rf ÷ Rin, flipped. Type your resistors, input and supply to get the gain, the output and whether it clips.
From the output to the − input.
From the − input to ground.
Into the + input. 50m = 50 mV.
12 for ±12 V. On one 9 V battery, biased at half, type 4.5.
About 1.5 V for a classic op-amp, nearly 0 for a rail-to-rail one.
Output peak, Vout = (1 + Rf ÷ Rg) × Vin
- Gain, G
- 4.9
- In decibels
- 13.8 dB
- Phase
- In phase, 0°
- Output limit
- ±10.5 V
- Biggest input before clipping
- 2.14 V
- Input resistance
- Very high, often over 1 GΩ
The formulas
A non-inverting amplifier takes the signal into the + input. Rf runs from the output to the − input, and Rg from the − input to ground:
An inverting amplifier grounds the + input and takes the signal in through Rin to the − input:
Either way, Vout = G × Vin, and the gain in decibels is 20 × log10|G|.
A worked example
A non-inverting amplifier with Rf = 39 kΩ and Rg = 10 kΩ:
A 1 V peak input comes out 4.9 V peak, in phase, about 13.8 dB. On ±12 V rails the output stops at ±10.5 V, so anything up to 10.5 ÷ 4.9 ≈ 2.1 V peak fits. Feed it more and the tops are clipped flat.
Picking resistors
For a non-inverting gain G, choose Rf ÷ Rg = G − 1 from standard values: 22 kΩ and 2.2 kΩ give ×11. Keep both in the kilohms. The output can supply only about 25 mA, and it drives the feedback resistors as well as the load.
On one battery, rest the + input at half the supply with two equal resistors and bring the signal in through a capacitor. The output then swings around the middle, so type half the battery as the supply: 4.5 for 9 V.
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 neededThe 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.
- Op-amp summing amplifier explainedSeveral inputs into one virtual ground: an op-amp that adds signals, each with its own gain.
- 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 is the gain of a non-inverting amplifier?
G = 1 + Rf ÷ Rg, where Rf runs from the output to the − input and Rg from the − input to ground. With Rf = 47 kΩ and Rg = 10 kΩ, G = 1 + 4.7 = 5.7. The output is in phase with the input.
What is the gain of an inverting amplifier?
G = −Rf ÷ Rin. The minus sign means the output is flipped upside down, 180° out of phase. With Rf = 22 kΩ and Rin = 10 kΩ, G = −2.2: 1 V in gives −2.2 V out.
Why is my op-amp's output clipping?
The output can't go past its supply rails, and a classic op-amp stops about 1.5 V short of each one. On ±12 V that's ±10.5 V, so a 2 V peak at a gain of 5.7, which asks for 11.4 V, is cut flat at 10.5 V. Lower the gain, shrink the input, or use a rail-to-rail op-amp.
What gain does a voltage follower have?
Exactly 1. It's a non-inverting amplifier with Rf a plain wire and no Rg, so G = 1 + 0 = 1. The output copies the input, but it can drive a load the source couldn't.
More calculators
- Ohm's law calculatorAny two of V, I and R give the third, and the power.
- Electrical power calculatorWatts from any two of V, I and R, and the resistor rating that stays cool.
- LED resistor calculatorThe resistor for one LED or a string, rounded to a value you can buy.
- Resistor colour code calculatorBands to ohms, or ohms to bands, on 4- and 5-band resistors.
- Resistors in series and parallel calculatorThe total of up to eight resistors, in series or in parallel.
- Voltage divider calculatorVout from two resistors, or the resistor for the Vout you need.