When designing sensor interfaces or audio preamps, the non-inverting operational amplifier is the workhorse topology. To set the exact closed-loop voltage gain, you need a reliable op amplifier calculator rooted in the foundational gain equation. The closed-loop voltage gain (Av) of an ideal non-inverting op-amp is calculated as Av = 1 + (Rf / Ri). This guide derives that formula, maps out every rearranged form for your design workflow, and walks through real-world bench calculations with strict unit tracking.

The Non-Inverting Op-Amp Gain Formula and Symbol Definitions

The derivation of the non-inverting gain formula relies on the "virtual short" principle. In a negative feedback loop with an ideal op-amp, the voltage at the inverting input (V-) is forced to equal the voltage at the non-inverting input (V+). Since V+ is tied directly to the input signal (Vin), the voltage at the Ri and Rf junction is also Vin. Applying Kirchhoff's Current Law (KCL) at that junction—assuming zero current flows into the op-amp's infinite-impedance inputs—yields the master equation below.

Av = 1 + (Rf / Ri)

Symbol Parameter Unit Realistic Bench Magnitude
Av Closed-Loop Voltage Gain (Linear V/V) V/V (Dimensionless) 1 to 100 V/V (Gain ≥ 1 always)
Rf Feedback Resistor (Output to V-) Ohms (Ω) 1 kΩ to 100 kΩ
Ri Input/Ground Resistor (V- to GND) Ohms (Ω) 1 kΩ to 100 kΩ
Vout Output Voltage Volts (V) Bound by supply rails (e.g., ±12V)
Vin Input Voltage (at V+) Volts (V) mV to low single-digit V

Rearranged Forms for the Op Amplifier Calculator

On the bench, you rarely solve for Av directly. Usually, you know your target gain and have a limited resistor kit, meaning you need to solve for a specific resistor value. Here are the algebraically rearranged forms for your design workflow:

  • Solve for Feedback Resistor (Rf): Rf = Ri × (Av - 1)
  • Solve for Ground Resistor (Ri): Ri = Rf / (Av - 1)
  • Solve for Output Voltage (Vout): Vout = Vin × [1 + (Rf / Ri)]
  • Solve for Input Voltage (Vin): Vin = Vout / [1 + (Rf / Ri)]
  • Solve for Linear Gain (Av) from dB: Av = 10(dB / 20)

Assumptions, Limits, and Unit Traps

An op amplifier calculator is only as accurate as the assumptions backing it. The formula Av = 1 + (Rf / Ri) assumes an ideal op-amp. According to All About Circuits, real-world components deviate from this ideal in three critical ways:

  1. Finite Open-Loop Gain (AOL): If your target closed-loop gain approaches the op-amp's open-loop gain (e.g., trying to get 80 dB of gain out of an LM358 which only has ~100 dB AOL at DC), the actual gain will fall short of the calculator's prediction.
  2. Output Swing Headroom: The formula assumes Vout can reach any value. In reality, a standard TL072 requires about 2V to 3V of headroom from the supply rails. If powered by ±12V, the maximum Vout is roughly ±9V. If the calculator predicts 11V, the waveform will hard-clip.
  3. Gain-Bandwidth Product (GBWP): The calculated gain is only valid at DC and low frequencies. As frequency increases, gain rolls off. An OPA2134 has a GBWP of 8 MHz; if you set a gain of 100 V/V (40 dB), your bandwidth shrinks to 80 kHz.
⚠ Critical Unit Traps That Break Calculations:
  • The dB vs. V/V Trap: Plugging "20" into the Av variable when you actually mean "20 dB". 20 dB is 10 V/V. Always convert dB to linear V/V using Av = 10(dB/20) before using the resistor formulas.
  • The kΩ vs. Ω Mismatch: Dividing a 47 kΩ feedback resistor by a 100 Ω ground resistor without converting units, yielding a gain of 0.47 instead of 470. Always normalize both resistors to base Ohms (Ω) or both to kilo-Ohms (kΩ) before dividing.

Worked Examples: Sizing Resistors for Real Circuits

Let's apply the rearranged forms to two common bench scenarios, tracking units at every step to prevent scaling errors.

Problem 1: DC Sensor Pre-Amplifier Sizing

Scenario: You are amplifying a 15 mV thermocouple signal to exactly 1.5 V for a microcontroller ADC. You have a 1.2 kΩ precision resistor for Ri. What value of Rf is required?

  1. Calculate Required Linear Gain (Av):
    Av = Vout / Vin
    Av = 1.5 V / 0.015 V = 100 V/V
  2. Select the Rearranged Formula:
    Rf = Ri × (Av - 1)
  3. Substitute and Track Units:
    Rf = 1,200 Ω × (100 V/V - 1 V/V)
    Rf = 1,200 Ω × 99
    Rf = 118,800 Ω (or 118.8 kΩ)
  4. Real-World Component Selection:
    118.8 kΩ is not a standard E24 value. You would select a 1% tolerance E96 series resistor of 118 kΩ or 120 kΩ. Choosing 120 kΩ yields a practical gain of 1 + (120k / 1.2k) = 101 V/V, resulting in a Vout of 1.515 V, well within typical ADC tolerances.

Problem 2: Audio Preamp with dB Specification

Scenario: You are building a microphone preamp requiring exactly 26 dB of gain. You want to use a standard 47 kΩ resistor for Rf to minimize thermal noise. What value of Ri do you need?

  1. Convert dB to Linear V/V:
    Av = 10(dB / 20)
    Av = 10(26 / 20) = 101.319.9526 V/V
  2. Select the Rearranged Formula:
    Ri = Rf / (Av - 1)
  3. Substitute and Track Units:
    Ri = 47,000 Ω / (19.9526 - 1)
    Ri = 47,000 Ω / 18.9526
    Ri2,479.8 Ω
  4. Real-World Component Selection:
    The closest standard 5% (E24) resistor is 2.4 kΩ or 2.7 kΩ. Using a 1% 2.49 kΩ resistor yields a precise gain of 1 + (47k / 2.49k) = 19.87 V/V (25.96 dB), which is functionally identical for audio applications.

For deeper analysis on how resistor thermal noise impacts these exact calculations in high-gain circuits, refer to the Texas Instruments Precision Labs Op-Amp training series, which details the noise-density tradeoffs when scaling Rf and Ri into the mega-ohm range.

Frequently Asked Questions

How do I calculate op-amp gain in dB instead of V/V for my op amplifier calculator?

The standard formula Av = 1 + (Rf / Ri) outputs a linear Volt-per-Volt (V/V) ratio. To express this as decibels (dB), apply the logarithmic conversion: Gain (dB) = 20 × log10(Av). For example, if Rf = 9 kΩ and Ri = 1 kΩ, the linear gain is 10 V/V. The dB equivalent is 20 × log10(10) = 20 dB. Never plug the dB value directly into the resistor ratio formula without converting it back to V/V first.

Why does my physical circuit clip before the op amplifier calculator predicts?

The calculator assumes an ideal "rail-to-rail" output swing. If you are using a classic op-amp like the LM741 or TL072 powered by ±15V, the internal output transistors suffer from voltage drops (VCE(sat)). The output will typically clip at ±12V or ±13V, not ±15V. If your calculator predicts a 14V peak output, the physical circuit will flat-top the waveform. To fix this, either increase the supply voltage rails or switch to a modern CMOS rail-to-rail output (RRIO) op-amp like the MCP6002, which can swing within millivolts of the supply rails.

Can I use this non-inverting formula for an inverting op-amp configuration?

No. The inverting amplifier topology routes the input signal through Ri and grounds the non-inverting (V+) pin. This alters the KCL derivation, resulting in a different master formula: Av = -(Rf / Ri). Notice two differences: the gain is negative (indicating a 180-degree phase shift), and there is no "+1" offset. If you apply the non-inverting formula to an inverting circuit, your calculated gain will be exactly 1 V/V higher than the actual physical output, and you will miss the phase inversion entirely.