[{"data":1,"prerenderedAt":27},["ShallowReactive",2],{"content-opamp-gain-en":3},{"about":4,"steps":7,"faq":11},[5,6],"The two basic op-amp circuits: the inverting amplifier has the gain G = −Rf \u002F Rin and flips the signal, the non-inverting one G = 1 + Rf \u002F Rg with Rg from the inverting input to ground. The calculator also shows the gain in dB, the output voltage for an input voltage and whether the output would exceed the supply.","In the second mode you set the gain you want and get the best pairs from an E series, with Rin or Rg near a preferred value – usually 1 kΩ to 100 kΩ. Clicking a row takes the pair over to check it.",[8,9,10],"Choose the circuit: non-inverting or inverting.","Enter Rf and Rin or Rg (e.g. 47k and 4k7), optionally the input voltage and the supply to check the output and clipping.","Or switch to “Gain → resistors”, enter the target gain and the E series and pick a pair from the list.",[12,15,18,21,24],{"q":13,"a":14},"Inverting or non-inverting – which one do I use?","The non-inverting amplifier barely loads the source (very high input resistance) and can only do G ≥ 1. The inverting one can also attenuate (|G| \u003C 1) and sum several signals through one Rin each, but its input resistance is Rin and it reverses the polarity.",{"q":16,"a":17},"Which resistor values make sense?","Usually 1 kΩ to 100 kΩ. Values that are too small load the source and the op-amp output, values that are too large add noise and error from input currents. The pairs come from the E series; look up single values with the [[e-series-finder]].",{"q":19,"a":20},"Why does the output not reach the calculated voltage?","Many op-amps such as the LM358 only get within about 1.5 V of the positive supply; rail-to-rail types reach almost the full voltage. The gain also falls with frequency: the gain-bandwidth product divided by G gives the usable bandwidth.",{"q":22,"a":23},"How do I convert the gain to dB?","Voltage gain in dB = 20 · log10(|G|). G = 10 is 20 dB, G = 100 is 40 dB. The sign of the inverting amplifier is a 180° phase shift and does not change the dB value.",{"q":25,"a":26},"What about a voltage divider at the input?","To attenuate a signal before the amplifier, work out the divider with the [[voltage-divider]] calculator and multiply its ratio by the gain.",1794509136319]