Op-Amp Gain Calculator (Inverting & Non-Inverting)
Work out an op-amp amplifier's voltage gain, gain in dB, output voltage and bandwidth from the feedback and input resistors, for inverting, non-inverting and voltage-follower…
Work out an op-amp amplifier's voltage gain, gain in dB, output voltage and bandwidth from the feedback and input resistors, for inverting, non-inverting and voltage-follower circuits. Warns when the output would clip at the supply rails.
Results
About This Calculator
Inverting: gain = −Rf ÷ Rin, so the output is flipped and the input impedance equals Rin. Non-inverting: gain = 1 + Rf ÷ Rin, with very high input impedance. A follower has gain 1 and is used as a buffer.
Bandwidth ≈ gain-bandwidth product ÷ noise gain (1 + Rf/Rin). The output can't swing closer to the rails than the op-amp's headroom; rail-to-rail parts get within about 0.1 V.
Example
Example: a non-inverting stage with Rf = 90 kΩ and Rin = 10 kΩ has a gain of 10 (20 dB). 0.5 V in gives 5 V out, with 100 kHz of bandwidth on a 1 MHz op-amp.
Assumptions
Ideal op-amp maths (infinite open-loop gain, no offset). Check the data sheet for slew rate at large, fast signals.
Frequently Asked Questions
How do I get a gain of 10?
Inverting: Rf = 10 × Rin. Non-inverting: Rf = 9 × Rin (e.g. 90 k and 10 k).
Why is my op-amp output clipping?
The gain × input is larger than the output can swing within the supply rails.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile