The closed-loop voltage gain of an inverting operational amplifier is defined strictly by the ratio of the feedback resistor to the input resistor. The direct answer for the inverting op amp gain formula is:

Av = -(Rf / Rin)

This formula assumes an ideal op-amp operating in its linear region with negative feedback. The negative sign indicates a 180° phase shift between the input and output signals. For 95% of hobbyist and industrial sensor interfaces, realistic gain magnitudes fall between -0.1 and -100. Designing for a single-stage gain beyond -100 usually results in severe bandwidth limitations and amplified input offset voltages.

The Inverting Op Amp Gain Formula: Direct Answer & Symbol Key

Before wiring your breadboard, you must understand every variable in the equation. The gain is dimensionless, meaning it is a pure multiplier, but the resistor values dictate your circuit's input impedance and noise floor.

Symbol Parameter Unit Practical Constraints
Av Closed-Loop Voltage Gain Dimensionless (V/V) Typically -0.1 to -100 for single-stage designs.
Rf Feedback Resistor Ohms (Ω) Keep between 1kΩ and 1MΩ. >1MΩ invites thermal noise and bias current errors.
Rin Input Resistor Ohms (Ω) Sets the circuit's input impedance. Must be higher than your source's output impedance.
Vout Output Voltage Volts (V) Constrained by the op-amp's supply rails (e.g., ±15V or 0-5V).
Vin Input Voltage Volts (V) The signal applied to Rin. The non-inverting pin is tied to ground.

Rearranged Forms & Unit Pitfalls That Break Your Circuit

You will rarely use the base formula exactly as written. Usually, you know the voltages you need and must solve for the resistors. Here are the rearranged forms:

  • Solve for Feedback Resistor: Rf = -Av × Rin
  • Solve for Input Resistor: Rin = -Rf / Av
  • Solve for Output Voltage: Vout = -(Rf / Rin) × Vin
  • Solve for Input Voltage: Vin = -Vout × (Rin / Rf)
⚠️ Unit Mistakes That Break Your Design:
  1. Mixing mV and V in voltage calculations: The resistor ratio cancels out units (kΩ/kΩ is fine), but if you calculate Vout using a 20 mV input and forget to convert to 0.020 V, your output math will be off by a factor of 1,000.
  2. Ignoring the negative sign: If you design a gain of -10 for a 0-500mV sensor, your output will swing from 0V to -5V. If your microcontroller ADC only reads 0-3.3V, you will read 0V constantly and potentially damage the ADC pin.
  3. Using ultra-high resistor values: Plugging 10MΩ and 100MΩ into the formula gives the correct mathematical gain (-10), but real-world op-amp input bias currents (often 10nA to 100nA in older BJT designs) will develop massive offset voltages across those resistors, breaking the virtual ground assumption.

Worked Examples: From Audio Preamps to Motor Feedback

Let's track the units and intermediate steps for two common bench scenarios.

Example 1: Microphone Preamp Scaling (Signal Amplification)

Scenario: An electret microphone capsule outputs a 15 mV RMS audio signal. You need to scale this to 1.5 V RMS to drive a line-level audio ADC. The signal must be inverted for your specific DSP pipeline.

  1. Calculate Required Gain:
    Av = Vout / Vin = -1.5 V / 0.015 V = -100.
  2. Select Rin:
    We need an input impedance high enough not to load the mic, but low enough to avoid excessive thermal noise. Let's pick Rin = 1 kΩ.
  3. Calculate Rf:
    Rf = -Av × Rin = -(-100) × 1,000 Ω = 100,000 Ω (100 kΩ).
  4. Verify Current and Power:
    Current through the network (I) = Vin / Rin = 0.015 V / 1,000 Ω = 15 μA.
    Power dissipated in Rf = I² × Rf = (15 × 10-6)² × 100,000 = 0.0225 mW.
    Result: Standard 1/4W (250mW) resistors are more than adequate.

Example 2: Motor Controller Feedback (Signal Attenuation)

Scenario: A ±15V motor driver feedback loop needs to be scaled down to fit the ±3.3V input range of a microcontroller's ADC.

  1. Calculate Required Gain:
    Av = -3.3 V / 15 V = -0.22.
  2. Select Rf:
    Since this is an attenuator (gain < 1), Rf must be smaller than Rin. Let's pick a standard E24 value: Rf = 22 kΩ.
  3. Calculate Rin:
    Rin = -Rf / Av = -22,000 Ω / -0.22 = 100,000 Ω (100 kΩ).
  4. Verify Input Impedance Loading:
    The motor driver sees the op-amp as a 100 kΩ load. At 15V, this draws only 150 μA, which is perfectly safe for standard op-amp output stages and won't sag the motor driver's feedback node.

When the Formula Applies (And When Real-World Physics Takes Over)

The formula Av = -(Rf / Rin) assumes an ideal op-amp. In physical reality, three non-ideal characteristics will break this formula if you ignore them:

  1. Gain-Bandwidth Product (GBWP): Every op-amp has a fixed GBWP. If you use an LM741 (GBWP ≈ 1 MHz) and set a gain of -100, your circuit's maximum bandwidth drops to 10 kHz (1,000,000 / 100). If you try to amplify a 50 kHz ultrasonic sensor signal with this setup, the actual gain will be drastically lower than the formula predicts.
  2. Input Bias Current (Ib): Real op-amps require a tiny DC current to bias their input transistors. If Rf and Rin are too large (e.g., >1 MΩ), this bias current creates an unintended voltage drop across the resistors, adding a DC offset to your output. To fix this, keep resistors under 100 kΩ or add a compensation resistor (Rcomp = Rf || Rin) to the non-inverting pin.
  3. Output Voltage Swing Limits: The formula might tell you that a 5V input with a gain of -3 yields -15V. But if your op-amp is powered by a single 5V supply (0V to 5V), the output will hard-clip at roughly 0.1V. Always check the datasheet for "Output Voltage Swing" relative to your supply rails.

For a deeper dive into the non-ideal behaviors of operational amplifiers, the Analog Devices MT-031 Tutorial provides an excellent breakdown of grounding and offset errors in inverting configurations.

Decision Tree: Sizing Resistors and Picking the Op-Amp

Use this decision path to finalize your component selection. Do not guess; follow the constraints to your final part number.

Condition / Target Gain Resistor Strategy Recommended Op-Amp IC
Gain < -100 (High Amplification) Do not use a single stage. Split into two cascaded inverting stages (e.g., -10 and -10) to preserve bandwidth and minimize noise. OPA2134 (Low noise, high GBWP, dual channel for cascading).
Gain -10 to -100 (Audio / Sensor Preamp) Keep Rin ≥ 1 kΩ to avoid loading the source. Use 1% tolerance metal film resistors to maintain exact phase/gain matching. NE5532 (Industry standard for audio) or TL072 (JFET input, low bias current).
Gain -1 to -10 (General DC / Logic Scaling) Standard E24 values are fine. Ensure Rf and Rin are between 4.7 kΩ and 47 kΩ for optimal power/noise balance. LM358 (Cheap, robust, works on single supplies down to 3V).
Gain > -1 (Attenuation / Scaling Down) Rf < Rin. Keep Rin ≤ 100 kΩ to minimize thermal (Johnson-Nyquist) noise, which becomes prominent when signal levels are attenuated. MCP6002 (Rail-to-Rail I/O, perfect for 3.3V/5V MCU interfacing).
🛠️ The Concrete Default Pick:
If you are building a generic sensor interface on a breadboard and need a reliable ×10 inverting amplifier for a 3.3V microcontroller, stop calculating and use this exact BOM:
IC: LMV358 (Rail-to-rail output version of the LM358, preventing clipping near 3.3V).
Rin: 10 kΩ (1% metal film).
Rf: 100 kΩ (1% metal film).
Power: 3.3V to V+, GND to V-. Tie non-inverting pin to GND.

By anchoring your design to the mathematical ratio of the feedback network and respecting the physical limits of the silicon, you eliminate the most common causes of clipped signals, noisy outputs, and fried ADC pins. For further reading on practical breadboarding layouts for these configurations, refer to the All About Circuits inverting amplifier guide.