Home › Calculators › Op Amp Gain Calculator

Op Amp Gain Calculator

Calculate the closed-loop gain of an operational amplifier in inverting, non-inverting, differential (difference) or voltage-follower configuration. See the gain in V/V and dB, the output voltage, whether it clips at the supply rails, and the closed-loop bandwidth.

Last updated:

Configuration

Inverting: input resistor · Non-inverting: resistor to ground (R_g)

V
V
V
V

For ±12 V enter 12; leave empty to ignore clipping

V

0 for rail-to-rail op-amps

MHz

e.g. 1 MHz for a 741 or TL07x-class part (check datasheet)

Enter your values to see the result.
Advertisement
Advertisement

How to use the Op Amp Gain Calculator

  1. Choose the configuration: inverting, non-inverting, differential or voltage follower.
  2. Enter the resistor values and their unit.
  3. Enter the input voltage (or V₁ and V₂ for a differential amplifier).
  4. Optionally add the supply and GBW to check clipping and bandwidth.
  5. Read the gain and output, then check the transfer curve for saturation.

Op amp gain formulas

ConfigurationGainInput impedanceNoise gain
InvertingG = −R_f ÷ R_inR_in1 + R_f/R_in
Non-invertingG = 1 + R_f ÷ R_gVery high1 + R_f/R_g
Voltage followerG = 1Very high1
Difference (R4/R3 = R2/R1)V_out = (R2/R1)(V₂ − V₁)R1 (V₁), R3 + R4 (V₂)1 + R2/R1

These are ideal-op-amp results: infinite open-loop gain, no input current and no offset. They are accurate as long as the open-loop gain at the signal frequency is much larger than the noise gain.

Gain, ratio and decibels

|G| (V/V)dBInverting R_f / R_inNon-inverting R_f / R_g
1010 kΩ / 10 kΩFollower (no resistors)
26.0220 kΩ / 10 kΩ10 kΩ / 10 kΩ
513.9851 kΩ / 10 kΩ (≈5.1)39 kΩ / 10 kΩ (≈4.9)
1020100 kΩ / 10 kΩ9.1 kΩ / 1 kΩ (≈10.1)
100401 MΩ / 10 kΩ100 kΩ / 1.01 kΩ (E96)

Keep resistor values roughly between 1 kΩ and 1 MΩ: much lower values load the output, much higher values add noise and offset from input bias currents.

Frequently asked questions

What is the gain of an inverting op amp?

G = −R_f ÷ R_in. With R_f = 100 kΩ and R_in = 10 kΩ the gain is −10: a 0.3 V input gives −3 V out. The minus sign means the output is inverted (180° out of phase).

What is the gain of a non-inverting op amp?

G = 1 + R_f ÷ R_g, where R_g goes from the inverting input to ground. With R_f = 10 kΩ and R_g = 1 kΩ the gain is 11. The gain can never be less than 1 in this configuration.

How do I convert op amp gain to decibels?

Voltage gain in dB = 20 × log₁₀(|G|). A gain of 10 is 20 dB, 100 is 40 dB and 2 is about 6.02 dB. The sign (inversion) does not affect the dB value.

How does a differential (difference) amplifier work?

With four resistors where R4/R3 = R2/R1, the output is V_out = (R2/R1) × (V₂ − V₁), so it amplifies the difference and rejects voltage common to both inputs. If the ratios do not match, part of the common-mode voltage leaks to the output.

Why is my output voltage lower than the gain predicts?

An op amp cannot drive its output beyond its supply rails. Most classic op amps stop 1–2 V short of each rail; rail-to-rail types get within tens of millivolts. Enter the supply voltage and headroom to see where the output clips.

What limits the bandwidth of an op amp circuit?

For voltage-feedback op amps the closed-loop bandwidth is roughly the gain-bandwidth product divided by the noise gain (1 + R_f/R_in). A 1 MHz GBW op amp set to a gain of 10 (noise gain 11 for inverting) has about 91 kHz of bandwidth.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

RC Filter Cutoff CalculatorRC low-pass or high-pass cutoff frequency, solve R or C, with a Bode magnitude chart.Voltage Divider CalculatorVout from R1, R2 and Vin, with loaded and unloaded output.Decibel CalculatorAdd dB levels, convert power or voltage ratios to dB, and find sound level at a distance.Ohm's Law CalculatorSolve voltage, current, resistance and power from any two values.Resistor Color Code CalculatorRead 4, 5 and 6 band resistor colors, or find colors for a value.Electricity Cost CalculatorEstimate kWh usage and electricity costs.Capacitor Code CalculatorDecode 3-digit capacitor codes to pF, nF and µF, and back.Power Factor CalculatorCalculate power factor, kW, kVA and kVAR, and correction capacitor size.EV Charging Cost CalculatorCost to charge an electric car, per charge, per mile and per km.LED Resistor CalculatorFind the resistor for an LED, with nearest standard value and wattage.Battery Life CalculatorEstimate how long a battery lasts from its mAh or Wh and the load.Series & Parallel Resistor CalculatorAdd resistors in series or parallel and find standard value combinations.555 Timer CalculatorAstable frequency, duty cycle and monostable pulse width for the NE555 timer.Wire Size CalculatorFind the AWG or kcmil wire size for a load from amps, distance, voltage and allowed voltage drop.Solar Panel CalculatorEstimate solar system size, number of panels and roof area from your monthly kWh and sun hours.Voltage Drop CalculatorVoltage drop in volts and percent for copper or aluminum wire, AWG or mm², 1- or 3-phase.RC Time Constant Calculatorτ = RC, charge % at 1-5τ, and capacitor charge or discharge voltage at any time t.Resonant Frequency CalculatorLC resonant frequency f = 1/(2π√LC), or solve the inductance or capacitance you need.Capacitor Series and Parallel CalculatorTotal capacitance of capacitors in series or parallel, plus stored energy ½CV² and charge.Generator Size CalculatorAdd appliance running and starting watts to find the generator size you need.LED Savings CalculatorYearly savings, kWh saved and payback time when switching old bulbs to LED.Battery Bank Size CalculatorSize a solar or off-grid battery bank: Ah, kWh and battery count from daily Wh and autonomy.Battery Charge Time CalculatorHow long to charge a battery: mAh or Ah, charger current, efficiency and current charge %.Circuit Breaker Size CalculatorBreaker size from watts or amps, voltage and the 125% continuous rule, with a wire gauge.Conduit Fill CalculatorCheck conduit fill % against the NEC 40% limit for EMT, PVC, RMC and more, with pass/fail.Home Electrical Load CalculatorHome service load in VA and amps with NEC demand factors and a 100/150/200 A recommendation.EV Charging Time CalculatorHow long to charge an EV: battery kWh, charge levels and charger kW, with Level 1/2/DC presets.RLC Impedance CalculatorSeries or parallel RLC impedance, phase angle, resonant frequency and Q at any frequency.Inverter Size CalculatorFind the inverter size for your appliances: continuous watts, surge and battery current.ND Filter CalculatorLong exposure shutter speed for any ND filter in stops, ND number or density.PCB Trace Width CalculatorMinimum PCB trace width for a current per IPC-2221, for internal and external layers.Reactance CalculatorInductive and capacitive reactance at any frequency, or solve for L, C or frequency.SMD Resistor Code CalculatorDecode 3-digit, 4-digit and EIA-96 SMD resistor codes, or find the code for a value.Solar Panel Tilt Angle CalculatorBest fixed tilt, seasonal and monthly solar panel angles and direction for any latitude.Transformer Turns Ratio CalculatorSolve transformer voltage, turns or turns ratio, with primary/secondary current and VA.UPS Runtime CalculatorEstimate UPS battery backup time from battery V, Ah, count, efficiency and load, with Peukert.PC Power Supply CalculatorEstimate your PC's load watts and the PSU wattage you need, with efficiency running costs.Power to Weight Ratio CalculatorVehicle hp per tonne, lb per hp and kW/kg from power and weight; compare cars and bikes.Solar Charge Controller Size CalculatorSize an MPPT or PWM charge controller in amps from panel watts, Voc, Isc and battery voltage.4-20mA CalculatorScale a 4-20 mA signal to a process value and back, with percent and shunt voltage.Antenna Length CalculatorDipole, quarter-wave and 5/8-wave antenna lengths for any frequency or radio band.Battery Pack Calculator18650, 21700 or LiFePO4 series/parallel pack: voltage, Ah, Wh, max current and weight.DC Circuit SimulatorDraw batteries, resistors, bulbs and switches and see voltages and currents flow live.E-Bike Range CalculatorEstimate e-bike miles or km per charge from battery Wh, assist level, weight, speed and hills.Lewis Structure GeneratorDraw Lewis dot structures with valence electrons, lone pairs, formal charges and VSEPR shape.LM317 CalculatorLM317 output voltage from R1 and R2, standard resistors for a target voltage, current limiter.Motor Full Load Current CalculatorFull load amps from motor hp or kW, voltage, phase, efficiency and power factor, with NEC values.Population Growth CalculatorExponential or logistic population growth over time with carrying capacity, table and chart.Rocket Launch ScheduleUpcoming orbital rocket launches with live countdowns, launch windows, pads and filters.Transformer Sizing CalculatorTransformer kVA needed from volts and amps or kW and PF, next standard size and full-load amps.Wire Resistance CalculatorWire resistance from material, AWG or diameter, length and temperature, plus voltage drop.
See all 51 Electrical & Electronics Calculators →