September 4, 2026

Inverting Op-Amp Circuits: Formula, Gain, and Design Examples

Inverting Op-Amp Circuits: Formula, Gain, and Design Examples

Quick Answer: An inverting op amp amplifies a signal while reversing its polarity. The input connects to the inverting terminal through resistor Rin, and feedback resistor Rf connects the output back to that same node. For an ideal inverting op-amp, the voltage gain equals Av = −Rf / Rin.

Key Takeaways

Electronics students often memorize the formula for an inverting op amp without understanding why it works. An inverting op amp is an operational amplifier circuit that takes an input signal, amplifies it, and flips its polarity at the output. A ratio of two resistors sets the gain, and the circuit depends on a feedback mechanism that holds the inverting input node near a fixed reference voltage. This guide covers how the circuit functions, derives the gain formula, and explains resistor selection, real op-amp limitations, and PCB layout practices.

An inverting op-amp circuit, showing how Rin and Rf set the gain while the non-inverting input ties to ground
An inverting op-amp circuit, showing how Rin and Rf set the gain while the non-inverting input ties to ground

What Is an Inverting Op-Amp, and How Does It Work?

An op-amp is a high-gain differential amplifier with two inputs and one output: an inverting input (marked −) and a non-inverting input (marked +). In the inverting configuration, the input signal connects to the inverting input through resistor Rin, while feedback resistor Rf connects the output back to the same node. The non-inverting input ties to ground or another fixed reference.

Negative feedback through Rf keeps both input terminals at nearly the same voltage. The inverting input settles near the reference voltage, and the output swings in the opposite direction, so the output polarity ends up reversed from the input.

  1. Input current flows from the source through Rin toward the inverting node.
  2. Almost none of that current enters the op-amp's input pin, because input impedance is very high.
  3. Nearly the same current flows onward through Rf.
  4. The output voltage adjusts continuously to hold the inverting node near the reference voltage.

A schematic showing Vin, Rin, Rf, Vout, both inputs, and the supply rails makes this current path easier to trace than the equations alone.

Node-by-Node: How the Inversion Actually Happens

Tracing what happens at each node is a direct route to understanding why the output flips sign.

The Vin node. This is just the source signal, unaffected by anything downstream. For example, if it's a positive-going voltage, the current pushes from this node through Rin toward the inverting input.

The inverting (−) node. Feedback through Rf holds this node pinned close to the reference voltage (commonly ground) no matter what Vin does. That's the key constraint: this node can't move. So when current arrives here from Rin, it doesn’t accumulate; it goes onward through Rf. For that current to keep flowing through Rf, the far end of Rf (the output) has to sit at a lower potential than this node. If the inverting node is fixed near 0 V, "lower than 0 V" means the output has to go negative. That's the inversion: a positive Vin forces current into a node that can't rise, and the only way to keep that current flowing is for Vout to fall.

The Vout node. The op-amp's output stage swings negative here, pulling the current through Rf and keeping the inverting node pinned at reference. The size of that swing is set by how much voltage drop Rf needs to carry the same current that Rin is delivering. This is where the Rf/Rin ratio in the gain formula comes from.

Flip the sign of Vin and the same logic runs in reverse: current flows out of the inverting node through Rin, so Rf has to supply it from a higher potential, so the output swings positive instead.

Virtual Ground and Negative Feedback

When the non-inverting input ties to ground, feedback holds the inverting input close to zero volts, even though no wire connects that node directly to ground. Engineers call this node a virtual ground. It cannot source or sink current the way an actual ground connection can, and the approximation only holds while the op-amp stays within its linear range.

  • Virtual, not physical: the node approximates ground potential through feedback, not a direct connection.
  • Reference-dependent: single-supply circuits often reference a mid-supply voltage rather than true ground.
  • Feedback-driven: negative feedback through Rf produces the virtual-ground behavior; remove the feedback path and the approximation breaks down.

Virtual ground resolves a common beginner mix-up: treating a feedback-created approximation as an actual low-impedance ground connection.

Inverting Op-Amp Gain Formula and Worked Example

Gain follows directly from the virtual-ground behavior above. For an ideal op-amp within its linear range, the closed-loop voltage gain is:

Av is the voltage gain, Rf is the feedback resistance, and Rin is the input resistance. The negative sign confirms the output inversion.

Worked Gain Example

Parameter Value
Rin 10 kΩ
Rf 50 kΩ
Gain (Av) −5
Vin 0.2 V
Vout −1.0 V

A 5:1 ratio between Rf and Rin turns a 0.2 V input into a −1.0 V output. Two things limit the ideal result: the output can't exceed the supply rails no matter what the formula predicts, and frequency response reduces achievable gain as signal frequency rises.

How to Choose Rin, Rf, and the Op-Amp

A resistor ratio that produces the target gain is only the first step. The absolute values of Rin and Rf affect current draw, noise, and frequency performance in ways the gain formula doesn't capture.

Effect of Rin/Rf Values on Circuit Performance

Rin/Rf values Effect
Too low Higher current draw, more source/output loading, more power dissipation
Too high More thermal noise, greater bias-current error, parasitic capacitance limits high-frequency performance

Selecting the op-amp itself matters as much as the resistor values:

  1. Confirm the supply voltage and input/output range fit the application.
  2. Compare the required bandwidth to the op-amp's gain-bandwidth product.
  3. Review slew rate, the maximum rate at which the output voltage can change per unit time, for fast-changing signals.
  4. Check offset voltage and bias current for precision work.
    • Offset voltage is the small internal voltage mismatch between the op-amp's inputs that shifts the output away from the ideal value
    • Bias current is the small current that flows into the input pins to bias the internal transistors

The op-amp's own limits set the boundaries the resistors have to work within.

Real-World Limitations and Single-Supply Operation

An ideal op-amp has infinite bandwidth, infinite input impedance, and zero output impedance. Real components fall short on each count, and the gaps become design constraints.

Real Op-Amp Limitations

Limitation What it means
Gain-bandwidth product Available gain drops as frequency increases
Slew rate Caps how fast the output can change
Common-mode range Limits the voltage the inputs can tolerate
Output swing/current Limits how close output gets to the rails and how much current it can supply
Offset voltage Small internal mismatch that moves output away from the ideal value
Saturation/clipping Output flattens once it hits a supply rail

Single-supply operation adds another constraint: a ground-referenced amplifier may call for a negative output, but a single-supply system can't produce voltage below ground. Such a circuit needs a mid-supply reference plus AC coupling or reference buffering to keep the signal centered, or the design ends up mathematically correct but physically impossible to build.

Inverting vs Non-Inverting Op-Amps and Common Applications

Choosing between the two configurations depends on the input impedance the source needs and whether polarity inversion matters.

Inverting vs Non-Inverting Op-Amps

Attribute Inverting Non-Inverting
Output polarity Reversed from input Same as input
Input impedance Approximately equal to Rin Very high
Minimum gain Can be above or below one One or greater
Multiple inputs Supports summing Not directly

Inverting configurations show up in amplification, attenuation with inversion, audio mixing, sensor conditioning, and active filters. A summing amplifier extends the basic circuit by adding more input resistors to the same inverting node, so the output reflects the weighted, inverted sum of every input.

Common Design Mistakes and PCB Layout Best Practices

A correctly calculated inverting op-amp circuit can still fail if the schematic or the PCB layout introduces errors the formula doesn't account for.

  • Reversing Rin and Rf, which swaps the intended gain.
  • Forgetting the negative sign can cause a polarity mismatch downstream..
  • Expecting output beyond the supply rails; the math may allow it, but the hardware won't.
  • Ignoring bandwidth, or picking unsuitable resistor values for the reasons above.
  • Omitting decoupling capacitors, or getting single-supply biasing wrong.

PCB layout matters as much as component selection:

  1. Place feedback components close to the op-amp, and keep the inverting node's trace short.
  2. Place decoupling capacitors near the supply pins.
  3. Route digital switching signals away from sensitive analog nodes, and minimize coupling between output and input traces.

Checking the schematic against the mistakes and layout guidance above catches most failures before the board reaches fabrication.

How Modern PCB Tools Support Op-Amp Design

Moving from a calculated gain to a working board takes more than a schematic. Schematic capture tools can pull resistor and op-amp footprints from verified libraries, which reduces footprint mismatches before fabrication. Direct datasheet access also makes it easier to confirm gain-bandwidth product, slew rate, and supply range.

Flux connects schematic capture to PCB layout, so short feedback traces and nearby decoupling stay part of one design file. Collaborative review lets a second engineer check the analog section before fabrication, and revision history tracks what changed as the circuit moves toward production.

Design Your Next Op-Amp Circuit in Flux

Reliable inverting op amp circuit performance depends on the schematic, component selection, and PCB layout working together. Flux brings schematic capture, verified component libraries, and connected PCB layout into one workflow, so an inverting op-amp design moves from calculation to a fabricated board. Start designing with Flux.

FAQs

Profile avatar of the blog author

Gabriel Hacohen

Gabriel Hacohen is an electrical engineer with deep expertise in analog circuitry, medical devices, high-performance computing, and semiconductors. He holds both Bachelor's and Master's degrees in Electrical Engineering and has written for companies including NVIDIA, Cadence, Synopsys, Netflix, and Autodesk.

Go 10x faster from idea to PCB
Work with Flux like an AI hardware engineer—handling complex tasks, learning your standards, explaining its decisions, and collaborating with you at every step.
Illustration of sub-layout. Several groups of parts and traces hover above a layout.
Design PCBs with AI
Introducing a new way to work: Give Flux a job and it plans, explains, and executes workflows inside a full browser-based eCAD you can edit anytime.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Design PCBs with AI
Introducing a new way to work: Give Flux a job and it plans, explains, and executes workflows inside a full browser-based eCAD you can edit anytime.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Design PCBs with AI
Introducing a new way to work: Give Flux a job and it plans, explains, and executes workflows inside a full browser-based eCAD you can edit anytime.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.

Related Content

555 Timer Guide: Pinout, Operating Modes, and Circuit Examples

555 Timer Guide: Pinout, Operating Modes, and Circuit Examples

A complete 555 timer guide covering pinout, internal operation, monostable and astable modes, timing calculations, and practical circuit examples. It also explains component selection and PCB layout tips for reliable designs.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Capacitor Symbols Explained: Types, Polarity, and Schematic Use

Capacitor Symbols Explained: Types, Polarity, and Schematic Use

A visual guide to capacitor schematic symbols, polarity markings, and specialized capacitor types. It explains how to choose the correct symbol and footprint to prevent assembly and design errors.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
How to Wire a Potentiometer: Pinout, Diagrams, and PCB Examples

How to Wire a Potentiometer: Pinout, Diagrams, and PCB Examples

A practical guide to potentiometer wiring, including pin identification, voltage-divider and rheostat configurations, Arduino examples, and PCB footprint considerations. It helps designers avoid common wiring and layout mistakes.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Designing Custom PCB Outlines: Fixing DXF and SVG Import Failures

Designing Custom PCB Outlines: Fixing DXF and SVG Import Failures

A troubleshooting guide for DXF and SVG board-outline import failures, including open paths, unit mismatches, unsupported curves, and layer mapping issues. It shows how to clean CAD-to-EDA handoffs before PCB fabrication.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Troubleshooting JLCPCB Gerber Upload and CAM Tool Compatibility Errors

Troubleshooting JLCPCB Gerber Upload and CAM Tool Compatibility Errors

A troubleshooting guide for common JLCPCB Gerber upload errors, including unreadable files, missing board outlines, drill-file issues, and Gerber X2 compatibility problems. It explains how to export and verify clean Gerbers before ordering.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
PCB Enclosure Design: How to Design an Enclosure

PCB Enclosure Design: How to Design an Enclosure

A practical guide to designing PCB enclosures around board geometry, clearances, mounting, assembly, and 3D-printed prototyping. It also explains how Flux can generate prototype enclosures directly from a PCB project.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Electronic Component Sourcing: Lead Times & Component Lifecycles

Electronic Component Sourcing: Lead Times & Component Lifecycles

Strategies for sourcing electronic components, managing BOMs, navigating lead times, and planning for component lifecycles to build a resilient hardware supply chain.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|August 28, 2026
Design for Manufacturing: How to Move from Prototype to Production

Design for Manufacturing: How to Move from Prototype to Production

A practical guide to Design for Manufacturing (DFM) that helps hardware teams transition from validated prototypes to scalable, production-ready products.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|August 26, 2026