Op amp gain calculator with output voltage and dB
This op amp gain calculator uses the two basic feedback circuits from the Texas Instruments handbook of operational amplifier applications: inverting gain −Rf/Rin and non-inverting gain 1 + Rf/Rin. Example: Rf = 100 kΩ and Rin = 10 kΩ give a gain of −10 (20 dB); 0.5 V in becomes −5 V out.
Example: Circuit: inverting amplifier · Feedback resistor Rf 100 kΩ · Input resistor Rin (to ground for non-inverting) 10 kΩ · Input voltage (optional) 0.5 V → Gain: G = -10, output -5 V. Source: Texas Instruments, B. Carter & T. R. Brown, Handbook of Operational Amplifier Applications (SBOA092B), Fig. 11–17: inverting E_O = −(R_O/R_I)·E_I, non-inverting E_O = (1 + R_O/R_I)·E_I, voltage follower E_O = E_I; an op amp pushed to saturation behaves unpredictably (read 10.10.2026). Updated: .
How it is calculated
Inverting: G = −Rf / Rin. Non-inverting: G = 1 + Rf / Rin. The Texas Instruments handbook derives both from two rules for the ideal op amp with negative feedback: no current flows into the inputs, and the voltage between the inputs approaches zero. In the inverting amplifier the input signal drives the inverting input through Rin; in the non-inverting amplifier Rf and Rin form a voltage divider, which is why its gain can never be below 1.
Examples
| Circuit | Rf / Rin | Gain | dB |
|---|---|---|---|
| inverting | 100 kΩ / 10 kΩ | −10 | 20 dB |
| inverting | 10 kΩ / 10 kΩ | −1 (inverter) | 0 dB |
| non-inverting | 90 kΩ / 10 kΩ | 10 | 20 dB |
| non-inverting | 47 kΩ / 10 kΩ | 5.7 | 15.12 dB |
| non-inverting | 0 / any | 1 (voltage follower) | 0 dB |
The gain in dB is a voltage level: NIST SP 811 defines the level of a field quantity as 20 lg(F/F₀) dB, so a gain of 10 is 20 dB and 5.7 is 15.12 dB. The minus sign of the inverting amplifier only means the output is upside down; it does not change the dB value.
Output voltage and saturation
Output = gain × input: −10 × 0.5 V = −5 V. With 2 V in the same circuit would need −20 V, which a ±15 V supply cannot deliver – the op amp saturates. The handbook warns that recovery from saturation is not specified and behaviour then becomes unpredictable, so the calculator flags this case. Rf and Rin as a plain divider are covered by the voltage divider calculator; to combine resistors into a needed Rf, use the parallel resistor calculator.
Frequently asked questions
What is the gain of an inverting op amp?
G = −Rf / Rin. With 100 kΩ and 10 kΩ the gain is −10: the signal is ten times larger and inverted.
What is the gain of a non-inverting op amp?
G = 1 + Rf / Rin. With 90 kΩ and 10 kΩ the gain is 10; with Rf = 0 it is 1, the voltage follower.
How do I convert op amp gain to dB?
dB = 20 · lg|G|. A gain of 10 is 20 dB, a gain of 100 is 40 dB, a gain of 1 is 0 dB.
Why can a non-inverting amplifier not have a gain below 1?
Its gain is 1 plus the resistor ratio, and the ratio is never negative. For less than 1 use an inverting amplifier with Rf smaller than Rin or a voltage divider.
What happens if the output would exceed the supply voltage?
The op amp saturates at its output limit. According to the Texas Instruments handbook its behaviour in saturation is unpredictable – reduce the gain or the input.
Do I have to use kΩ?
Only the ratio counts. Rf and Rin just need the same unit; kΩ is only the preset unit of the fields.
Sources and legal basis
- Texas Instruments, B. Carter & T. R. Brown, Handbook of Operational Amplifier Applications (SBOA092B), Fig. 11–17: inverting E_O = −(R_O/R_I)·E_I, non-inverting E_O = (1 + R_O/R_I)·E_I, voltage follower E_O = E_I; an op amp pushed to saturation behaves unpredictably (read 10.10.2026)
- NIST SP 811, Chapter 8.7 (logarithmic quantities): level of a field quantity L_F = 20 lg(F/F0) dB (read 10.10.2026)
As of: · Editorial policy
Related tools
- Voltage Divider CalculatorVoltage divider calculator: find the output voltage from R1, R2 and load, or the R2 for a target voltage, with current, power and nearest E12 value. Free.
- Parallel resistor calculatorParallel resistor calculator: total value of resistors, capacitors or inductors in parallel and in series – with branch currents and the nearest standard value.
- Ohms Law Calculator: Voltage, Current, Resistance and PowerOhms law calculator (Ohm’s law): enter any two of voltage, current, resistance or power and get the other two – with formula wheel and steps.
- RC filter cutoff frequency calculatorRC filter cutoff frequency calculator from R and C, plus RL filters and LC resonant circuits with resonant frequency, Q factor and a frequency response table.
- LED Resistor CalculatorLED resistor calculator for 5 V, 12 V or 24 V: resistance, next E12/E24 standard value, power dissipation and resistor wattage – series or parallel.
- Logarithm CalculatorLogarithm calculator for any base: log, ln, log10 and log2 with change-of-base working, a check and the two whole numbers the result lies between.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- Memory test: how many digits can you remember?Free online memory test: remember digits forwards, backwards or a color sequence and repeat it. Shows your memory span and saves best scores. Not a diagnosis.
- Limit calculatorLimit calculator for lim x→a and x→±∞: left and right sided, with a table of values and detection of divergence and jump discontinuities. Free, no sign-up.