Op-Amp Gain Calculator
Closed-loop gain and output voltage of inverting and non-inverting op-amp amplifiers.
Quick answer
Closed-loop gain and output voltage of inverting and non-inverting op-amp amplifiers. Formula: With negative feedback an ideal op-amp drives its output until both inputs sit at the same voltage and draws no input current.
Configuration: Non-inverting (G = 1 + Rf/Rin), Feedback resistor (Rf): 100 kΩ, Input / ground resistor (Rin): 10 kΩ, Input voltage (Vin): 0.2 V → Voltage gain: 11 V/V.
Rin for inverting; R to ground (Rg) for non-inverting
Results update as you type.
How it works
This calculator gives the closed-loop gain of the two most common operational amplifier circuits. Choose the configuration, enter the feedback resistor Rf and the input resistor in kilohms, and optionally the input voltage. In the inverting amplifier the signal goes through Rin into the inverting input and the gain is −Rf/Rin: the output is flipped in polarity, and the gain can be less than one, which is handy for attenuating. In the non-inverting amplifier the signal goes straight into the non-inverting input and Rin connects the inverting input to ground; the gain is 1 + Rf/Rin, so it can never be below one, and the input impedance is very high. The calculator also gives the gain in decibels, 20·log10 of the magnitude, and the ideal output voltage. The ideal results assume infinite open-loop gain and bandwidth, so in a real circuit the output cannot exceed the supply rails (or less, for non rail-to-rail parts), and the usable bandwidth is roughly the gain-bandwidth product divided by the noise gain. Resistor values between about 1 kΩ and 1 MΩ usually work well; very low values load the output and very high values add noise and offset from bias currents.
Inverting: G = −Rf / Rin; Non-inverting: G = 1 + Rf / Rin; Vout = G · Vin; dB = 20 · log10|G|
With negative feedback an ideal op-amp drives its output until both inputs sit at the same voltage and draws no input current. In the inverting circuit the input current through Rin must all flow through Rf, giving −Rf/Rin. In the non-inverting circuit the divider Rf–Rg must return Vin to the inverting input, giving 1 + Rf/Rg.
Source:Ideal op-amp golden rules; Texas Instruments, Op Amps for Everyone (SLOD006)
We review all our tools from time to time to ensure accuracy.
Worked example
How to use this calculator
- 1
Enter your values
Enter configuration, feedback resistor (rf) and input / ground resistor (rin).
- 2
Adjust the options
Adjust input voltage (vin) if they apply — sensible defaults are already set.
- 3
Read your result
Voltage gain updates instantly as you type — no button to press.
Frequently asked questions
What is the difference between inverting and non-inverting amplifiers?
An inverting amplifier feeds the signal into the inverting input through Rin and flips its polarity, with gain −Rf/Rin and input impedance equal to Rin. A non-inverting amplifier feeds the signal into the non-inverting input, keeps the polarity, has gain 1 + Rf/Rin and very high input impedance, which makes it ideal for buffering sensors.
Why can't a non-inverting amplifier have a gain below one?
Its gain is 1 + Rf/Rin, and since resistor values are positive the ratio can only add to one. With Rf equal to zero, or Rin left open, the circuit becomes a unity-gain voltage follower. If you need attenuation without inversion, put a resistive divider before a follower, or use two inverting stages in series.
Why is my real output lower than the calculated value?
The calculation assumes an ideal op-amp. In practice the output saturates a little below the supply rails, the gain falls at higher frequencies once you approach the gain-bandwidth product, and slew rate limits large fast signals. Check the datasheet's output swing, gain-bandwidth product and slew rate against your supply voltage and signal frequency.
What resistor values should I choose?
Choose values between about 1 kΩ and a few hundred kilohms. Very low values draw high current from the output and from the source, while very high values increase thermal noise and turn input bias currents into offset voltages. For a gain of ten, 10 kΩ and 100 kΩ, or 1 kΩ and 10 kΩ, are classic choices.
How do I convert voltage gain to decibels?
Voltage gain in decibels is twenty times the base-ten logarithm of the gain magnitude. A gain of 10 is 20 dB, 100 is 40 dB, 2 is about 6 dB and 1 is 0 dB. A negative sign from an inverting stage only means a 180 degree phase shift, so it does not change the decibel value.
More Engineering calculators
Related calculators
Voltage Divider Calculator
Find output voltage and current of a divider.
Resistor Calculator
Combine two resistors in series or parallel.
Decibel Calculator
Convert a power or amplitude ratio to decibels.
Calculated with HS Calculadora · https://hscalculadora.com/en/engineering/op-amp-gain-calculator