Op Amp Gain Interactive Calculator

The operational amplifier (op amp) gain calculator determines voltage gain, input/output relationships, and feedback resistor values for inverting and non-inverting op amp configurations. Understanding op amp gain is essential for analog signal conditioning, audio amplification, sensor interfacing, and precision measurement systems across electronics design, instrumentation, and control applications.

This calculator supports both fundamental op amp topologies and helps engineers size feedback networks, predict output voltages, and verify closed-loop gain specifications for linear amplifier circuits.

📐 Browse all free engineering calculators

Op Amp Configuration Diagrams

Op Amp Gain Interactive Calculator Technical Diagram

Op Amp Gain Calculator

Op Amp Gain Equations

Non-Inverting Configuration

AV = 1 + (Rf / Rg)
Vout = Vin × AV

Where:

  • AV = voltage gain (dimensionless, always ≥ 1)
  • Rf = feedback resistor from output to inverting input (Ω)
  • Rg = resistor from inverting input to ground (Ω)
  • Vin = input voltage applied to non-inverting input (V)
  • Vout = output voltage (V, same polarity as Vin)

Inverting Configuration

AV = -(Rf / Rin)
Vout = -Vin × (Rf / Rin)

Where:

  • AV = voltage gain (negative, indicating 180° phase inversion)
  • Rf = feedback resistor from output to inverting input (Ω)
  • Rin = input resistor from signal source to inverting input (Ω)
  • Vin = input voltage applied through Rin (V)
  • Vout = output voltage (V, inverted polarity from Vin)

Gain in Decibels

GaindB = 20 × log10(|AV|)

Where:

  • GaindB = voltage gain expressed in decibels (dB)
  • |AV| = absolute value of voltage gain (magnitude only)

Theory & Engineering Applications

Operational amplifiers form the cornerstone of analog signal processing, providing precise voltage amplification through negative feedback networks. The closed-loop gain of an op amp circuit depends entirely on external resistor ratios when the open-loop gain is sufficiently high—typically 100,000 or greater. This fundamental principle enables predictable, stable amplification independent of device-to-device variations and temperature drift.

Non-Inverting Amplifier Configuration

The non-inverting configuration applies the input signal directly to the non-inverting (+) terminal while feeding back a portion of the output to the inverting (-) terminal through a resistive voltage divider. The voltage at the inverting input, enforced by negative feedback to equal the non-inverting input (virtual short), is Vin × Rg / (Rf + Rg). Since this must equal Vin due to the virtual short principle, solving for Vout yields the standard gain equation: AV = 1 + Rf/Rg. This topology exhibits extremely high input impedance—typically many megohms to gigohms—because the input signal connects directly to the high-impedance op amp input stage without any series resistance. The minimum achievable gain is unity (gain = 1) when Rf = 0, creating a voltage follower or buffer that provides impedance transformation without amplification.

Inverting Amplifier Configuration

The inverting configuration grounds the non-inverting terminal and applies the input through a series resistor Rin to the inverting terminal, with feedback resistor Rf completing the path from output to inverting input. The virtual ground at the inverting input (held at 0V by feedback) forces the input current Iin = Vin/Rin to flow entirely through Rf, producing Vout = -Iin × Rf = -Vin × (Rf/Rin). The negative sign indicates 180° phase inversion. Unlike the non-inverting topology, the inverting amplifier's input impedance equals Rin—typically 10kΩ to 100kΩ in practice—which can load sensitive signal sources. However, the inverting configuration offers superior common-mode noise rejection and simplified single-ended to differential conversion when paired with additional circuitry.

Resistor Selection and Practical Limitations

While op amp gain equations appear simple, practical implementations require careful resistor selection balancing multiple competing factors. Using very low resistances (below 1kΩ) increases op amp output current, potentially exceeding the device's current drive capability and causing distortion or thermal stress. Extremely high resistances (above 1MΩ) introduce Johnson noise, increase susceptibility to electromagnetic interference, and allow input bias currents to generate significant offset voltages. The input bias current—typically 10nA to 10µA depending on op amp type—flowing through high-value resistors creates DC offset errors: Voffset = Ibias × R. For precision applications requiring offset below 1mV with 100nA bias current, feedback resistors must stay below 10kΩ. Standard practice uses resistor values between 1kΩ and 1MΩ, with 10kΩ to 100kΩ being the most common range providing good compromise between noise, current loading, and offset errors.

Frequency Response and Bandwidth Considerations

The gain-bandwidth product (GBW or unity-gain bandwidth) fundamentally limits achievable performance in op amp circuits. A device with 1MHz GBW can provide maximum bandwidth of 1MHz at unity gain, 100kHz at gain of 10, or 10kHz at gain of 100. Beyond the closed-loop bandwidth, gain rolls off at 20dB per decade, and phase shift accumulates toward 90°. This creates a critical but often overlooked constraint: designing a non-inverting amplifier with gain of 47 using an op amp with 4.7MHz GBW yields useful bandwidth of only 100kHz, not the 4.7MHz suggested by the datasheet. High-gain stages also become increasingly susceptible to parasitic oscillation from stray capacitance in the feedback network. Adding a small feedback capacitor (typically 1pF to 100pF) in parallel with Rf rolls off gain at high frequencies, improving stability at the cost of bandwidth. The exact capacitor value follows Cf ≈ 1/(2πRff-3dB) where f-3dB is the desired -3dB frequency.

Slew Rate and Large Signal Performance

Slew rate—the maximum rate of output voltage change, typically specified in V/µs—limits large signal performance independently of bandwidth. A sine wave with amplitude Vpk and frequency f requires slew rate SR ≥ 2πfVpk to avoid distortion. An op amp with 0.5V/µs slew rate outputting a 10V peak-to-peak sine wave (5V amplitude) distorts above frequency fmax = SR/(2πVpk) = 0.5×10⁶/(2π×5) ≈ 16kHz, despite potentially having MHz of small-signal bandwidth. Audio applications driving 10V swings into speakers demand slew rates above 3V/µs for 20kHz bandwidth with minimal distortion. This non-obvious limitation frequently catches designers who focus solely on bandwidth specifications.

Worked Example: Precision Sensor Signal Conditioning

A strain gauge bridge produces 3.73mV differential output at full mechanical load. The data acquisition system requires 0V to 5V input range for proper digitization. Design a non-inverting amplifier to scale the sensor signal appropriately, selecting resistor values that minimize offset error with an op amp having 50nA maximum input bias current and ensuring bandwidth exceeds 10kHz for dynamic strain measurements.

Step 1: Calculate Required Gain

To map 3.73mV to 5V: AV = Vout/Vin = 5V / 0.00373V = 1340.2. We'll target a standard gain of 1340.

Step 2: Select Resistor Values for Minimal Offset

The non-inverting gain equation AV = 1 + Rf/Rg gives Rf = (AV - 1) × Rg = 1339 × Rg. To minimize bias current offset, we want moderate resistances. Choosing Rg = 100Ω yields Rf = 1339 × 100 = 133.9kΩ. We'll use standard value Rf = 133kΩ (1% tolerance), giving actual gain AV = 1 + 133000/100 = 1331.

Step 3: Verify Offset Error

Input bias current flows through the parallel combination of Rf and Rg: Rparallel = (Rf × Rg)/(Rf + Rg) = (133000 × 100)/(133000 + 100) = 99.92Ω ≈ 100Ω. Offset voltage Voffset = Ibias × Rparallel = 50×10⁻⁹ × 100 = 5µV. Referred to output: Voffset,out = 5µV × 1331 = 6.66mV, which is 0.13% of full scale—acceptable for most applications.

Step 4: Check Bandwidth Requirements

For 10kHz bandwidth at gain of 1331, required GBW = fBW × AV = 10kHz × 1331 = 13.31MHz. A general-purpose op amp like the TL072 (GBW = 3MHz) would be insufficient—its bandwidth at this gain would be only 3MHz/1331 = 2.25kHz. We need a device with GBW ≥ 13.31MHz, such as the OPA2134 (GBW = 8MHz per channel, suitable with margin) or LM833 (GBW = 15MHz). Selecting the LM833 provides actual bandwidth f-3dB = 15MHz/1331 = 11.27kHz, meeting the 10kHz requirement with 12.7% margin.

Step 5: Verify Slew Rate for Dynamic Signals

At maximum output of 5V and frequency of 10kHz: required SR = 2πfVpk = 2π × 10000 × 5 = 0.314V/µs. The LM833's slew rate of 7V/µs provides ample margin (22× the requirement), ensuring distortion-free reproduction of dynamic strain events.

Final Design: Non-inverting amplifier with Rg = 100Ω, Rf = 133kΩ, using LM833 dual op amp. Actual gain = 1331, output = 4.96V at full sensor output, bias-induced offset = 6.66mV (0.13% error), bandwidth = 11.27kHz.

For expanded engineering resources including related analog design tools, visit the complete free engineering calculator library.

Practical Applications

Scenario: Audio Microphone Preamplifier Design

Marcus, an audio engineer developing a studio microphone interface, needs to amplify the 2.1mV signal from a dynamic microphone to line level (1.5V) for recording equipment. Using this calculator in non-inverting Vout mode, he enters Rf = 680kΩ, Rg = 1kΩ, and Vin = 0.0021V, finding the output will be 1.43V with a gain of 681. The calculator warns him about potential supply rail limitations, prompting him to verify his ±15V power supply provides sufficient headroom. He adjusts Rf to 715kΩ to achieve exactly 1.5V output, giving him a precisely matched preamp gain stage that preserves the microphone's dynamic range without clipping.

Scenario: Industrial Temperature Sensor Interface

Priya, a controls engineer at a chemical processing plant, is interfacing a thermocouple amplifier that outputs 10mV/°C to a PLC with 0-10V analog input range. She needs to monitor temperatures from 0°C to 850°C, requiring an output span of 8.5V. Using the calculator's inverting Rf mode, she enters desired gain magnitude of 100 (to convert 8.5mV to 850mV, then scales further) and Rin = 10kΩ, finding she needs Rf = 1MΩ. The calculator alerts her that this high-value feedback resistor may introduce noise and offset errors. She redesigns using a two-stage approach: first stage with gain of 10 (Rf = 100kΩ, Rin = 10kΩ), followed by a second stage with gain of 10, achieving the same overall 100× gain with much better noise performance and lower component sensitivity to parasitic effects.

Scenario: Biomedical ECG Front-End Development

Dr. Chen, designing a portable ECG device for cardiac monitoring, must amplify microvolt-level heart signals without introducing excessive noise. His differential electrode preamplifier produces 0.8mV signals that need amplification to 2.4V for the ADC input. Using the non-inverting gain calculator mode, he enters Rf = 299kΩ and Rg = 100Ω, discovering a gain of 2991—far higher than his target of 3000. He switches to the "Calculate Rf" mode, enters gain = 3000 and Rg = 100Ω, finding he needs Rf = 299.9kΩ. Since this isn't a standard value, he uses the nearest 1% resistor (301kΩ), accepting a 0.3% gain error that's within his system tolerance. The calculator confirms his final design will produce 2.41V output—well within the ADC's 0-3.3V range—and the relatively low Rg value keeps bias current offset under 10µV, critical for measuring sub-millivolt biological signals accurately.

Frequently Asked Questions

▼ Why can't a non-inverting amplifier have gain less than 1?
▼ What happens if my calculated resistor values are too high or too low?
▼ How does the gain-bandwidth product limit my amplifier's performance?
▼ When should I choose inverting versus non-inverting configuration?
▼ How do I prevent op amp oscillation in high-gain circuits?
▼ Why does my op amp circuit show DC offset at the output even with no input signal?

Free Engineering Calculators

Explore our complete library of free engineering and physics calculators.

Browse All Calculators →

About the Author

Robbie Dickson — Chief Engineer & Founder, FIRGELLI Automations

Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.

Wikipedia · Full Bio

Share This Article
Tags