The inverting op amp formula is Vout = -Vin × (Rf / Rin). This equation dictates the closed-loop voltage gain of an operational amplifier configured with negative feedback through a resistor network. While the math is straightforward, real-world bench application requires strict unit tracking, an understanding of supply rail limits, and proper component selection to avoid saturation and noise.

The Core Formula and Symbol Definitions

In an ideal inverting amplifier configuration, the non-inverting input is tied to ground (or a reference voltage), and the input signal is fed through a resistor to the inverting input. The feedback resistor connects the output back to the inverting input. The governing equation is:

Vout = -Vin × (Rf / Rin)
Symbol Parameter Standard Unit Practical Bench Notes
Vout Output Voltage Volts (V) Strictly bounded by the op-amp's supply rails (VCC and VEE).
Vin Input Voltage Volts (V) The signal applied to the input resistor. Can be DC or AC.
Rf Feedback Resistor Ohms (Ω) Sets gain alongside Rin. Keep between 1kΩ and 100kΩ to minimize thermal noise and bias current errors.
Rin Input Resistor Ohms (Ω) Determines the circuit's input impedance. Do not drop below 1kΩ or you will load the signal source.
- Phase Inversion N/A Indicates a 180° phase shift. In single-supply DC circuits, this means output swings toward ground, not below it.

Assumptions, Realistic Magnitudes, and Unit Traps

Before plugging numbers into a calculator, you must understand the boundary conditions of this formula. According to standard semiconductor theory outlined by All About Circuits, the formula relies on the 'ideal op-amp' model.

When the Formula Applies (and When It Breaks)

  • Linear Region Only: The formula assumes the op-amp is operating in its linear region. If the calculated Vout exceeds the supply rails (e.g., calculating 18V out on a 12V supply), the formula fails. The op-amp saturates, and Vout clips at approximately VCC - 1.5V (for standard op-amps) or VCC - 50mV (for rail-to-rail types).
  • Negative Feedback: The formula requires Rf to connect from the output to the inverting (-) input. Positive feedback creates a comparator or Schmitt trigger, rendering this gain equation useless.
  • Gain Bandwidth Product (GBWP): At high frequencies, the open-loop gain drops. If you design for a gain of 100 (40dB) using an op-amp with a 1MHz GBWP (like the LM358), your bandwidth shrinks to 10kHz. Beyond 10kHz, the formula overestimates Vout.

Realistic Answer Magnitudes

A realistic closed-loop voltage gain (Av = Rf / Rin) for a single stage is typically between 1 and 100. Designing a single stage with a gain of 1,000 is a beginner mistake; it amplifies input offset voltage and high-frequency noise, resulting in a garbled output. If you need a gain of 1,000, cascade two stages (e.g., gain of 31.6 × 31.6).

Unit Mistakes That Break the Math

Critical Trap: The ratio Rf / Rin is unitless only if both resistors are in the same unit. If Rf = 100kΩ and Rin = 1kΩ, the ratio is 100. If you accidentally type 100,000 / 1 into your calculator but meant 100kΩ / 1kΩ, your math holds. But if Rf = 100kΩ and Rin = 500Ω, and you calculate 100 / 500 = 0.2 instead of 100,000 / 500 = 200, your physical circuit will amplify by 200x while your math predicts attenuation. Always convert both resistors to base Ohms (Ω) or both to kilo-ohms (kΩ) before dividing.

Rearranged Forms for Component Selection

On the bench, you rarely solve for Vout blindly; you usually have a target Vout and need to buy resistors. Here are the algebraically rearranged forms for design:

  • Solving for Feedback Resistor (Rf):
    Rf = -(Vout × Rin) / Vin
    Use when: You have a fixed input signal and a fixed input resistor, and need to hit a specific output voltage.
  • Solving for Input Resistor (Rin):
    Rin = -(Vout × Rf) / Vin
    Use when: You need to set a specific input impedance to match a source (e.g., 10kΩ for a guitar pedal input) and need to find the matching feedback resistor.
  • Solving for Required Input Voltage (Vin):
    Vin = -Vout / (Rf / Rin)
    Use when: Reverse-engineering a board or determining the maximum sensor output allowed before the op-amp clips.

Worked Examples with Strict Unit Tracking

Let's apply the formula to two common bench scenarios, tracking every unit to prevent magnitude errors.

Problem 1: Calculating Output Voltage from Sensor Data

Scenario: You are amplifying a DC signal from a pressure sensor. Vin = 15 mV. Your breadboard uses Rin = 2.2 kΩ and Rf = 47 kΩ. The op-amp is powered by a single 5V supply (VCC = 5V, VEE = 0V) and is biased at 2.5V on the non-inverting pin.

Step 1: Standardize Units.

  • Vin = 15 mV = 0.015 V
  • Rin = 2.2 kΩ = 2,200 Ω
  • Rf = 47 kΩ = 47,000 Ω

Step 2: Apply the Formula.

  • Vout_relative = -0.015 V × (47,000 Ω / 2,200 Ω)
  • Vout_relative = -0.015 V × 21.36
  • Vout_relative = -0.320 V

Step 3: Apply Bias and Rail Limits.

Because this is a single-supply circuit biased at 2.5V, the absolute output voltage is Vbias + Vout_relative.

  • Vout_absolute = 2.5 V + (-0.320 V) = 2.18 V.

Verification: 2.18 V is well within the 0V to 5V supply rails. The formula holds, and the op-amp will output 2.18 V.

Problem 2: Sizing Resistors for a Target Gain

Scenario: You need to invert and amplify a ±100 mV AC audio signal to ±2.0 V. You are using a dual ±12V supply. You want to draw minimal current from the source, so you set Rin = 10 kΩ.

Step 1: Determine Target Gain.

  • Target Vout = 2.0 V (peak)
  • Vin = 0.1 V (peak)
  • Required Gain magnitude = 2.0 V / 0.1 V = 20.

Step 2: Rearrange and Solve for Rf.

  • Rf = Gain × Rin
  • Rf = 20 × 10,000 Ω
  • Rf = 200,000 Ω (200 kΩ)

Step 3: Map to Standard E24 Resistor Values.

200 kΩ is a standard E24 value. You can use a standard 200kΩ 1% metal film resistor. Verification: With a ±12V supply, a ±2.0 V output leaves 10V of headroom, ensuring no clipping occurs even with slight signal transients.

Decision Path: Selecting Your Op Amp and Resistors

The math tells you the ratios, but physics dictates the physical parts. Use this decision matrix to terminate your design process with concrete part numbers. For deeper thermal and noise analysis, refer to Electronics Tutorials' Op-Amp Guides.

Design Condition If True... Then Select...
Powering from a microcontroller (3.3V or 5V single supply) You need rail-to-rail I/O to maximize dynamic range. MCP6001 (Single) or MCP6002 (Dual). Cost: ~$0.50.
Powering from dual rails (±12V or ±15V) for audio You need low noise and high slew rate for AC signals. TL072 (Dual JFET input). Cost: ~$1.20.
Amplifying high-impedance sensors (e.g., piezo, pH probes) Rin must be >1MΩ, requiring ultra-low input bias current. TLV2741 or LMC6482 (CMOS inputs). Cost: ~$1.80.
Calculated Rf is > 1 MΩ Parasitic capacitance will ruin high-frequency response. Redesign: Lower Rin to 1kΩ and recalculate Rf to keep it under 100kΩ.
The Default Recommendation: Stop agonizing over part selection for general-purpose DC and low-frequency AC projects. For 90% of hobbyist, Arduino-interfacing, and sensor-conditioning builds, default to the MCP6001 (for 5V single-supply) or the TL072 (for dual-supply). Set your Rin to exactly 10 kΩ to provide a safe, standard input impedance, calculate your required Rf using the rearranged formula, and round to the nearest 1% E24 resistor value. This guarantees low thermal noise, prevents source loading, and keeps your math clean.