Op-amp gain calculator: inverting and non-inverting
Get the gain of an inverting or non-inverting op-amp amplifier, in times and in dB, and the output for a given input.
Op-amp gain
For an ideal op-amp with negative feedback. Real op-amps lose gain at high frequency: bandwidth ≈ gain-bandwidth product ÷ gain.
Inverting: −R_f / R_in. Non-inverting: 1 + R_f / R_in.
How it works
- Inverting: gain = −Rf / Rin.
- Non-inverting: gain = 1 + Rf / Rin.
- Gain in dB = 20 × log₁₀(|gain|). The output cannot go beyond the supply rails.
Worked example
Inverting with Rf = 10 kΩ and Rin = 1 kΩ: gain = −10 (20 dB), so 0.5 V in gives −5 V out.
Common questions
Why is the inverting gain negative?
The output is flipped: a rising input gives a falling output. The size of the gain is still Rf / Rin.
Why is my real output lower than calculated?
It may be hitting the supply rails, or the op-amp may run out of bandwidth at high frequencies.
More calculators
- Resistor colour codePick the four colour bands and get the resistance, tolerance and the range the real part can fall in.
- Ohm's law and powerEnter any two of voltage, current, resistance and power.
- Voltage dividerTwo resistors in series split the input voltage.
- RC filter cut-offGet the cut-off frequency and time constant of a first-order RC filter, low-pass or high-pass.
- RL filter cut-offGet the cut-off frequency and time constant of a first-order RL filter.
- 555 timer (astable)Get the frequency, high and low times and duty cycle of a 555 timer running in astable mode.
- Number base converterConvert between decimal, binary, hexadecimal and octal.
- Decibel converterConvert a power or voltage ratio to decibels, or decibels back to a ratio.
- SGPA calculatorEnter each subject’s credits and grade to get your semester grade point average.
- CGPA calculatorAdd each semester’s SGPA and credits to get your cumulative grade point average.
- Digital logic toolsTruth tables, K-maps, simplifier and gates.