Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Electronics Basics

Inverting and Non-Inverting Op-Amp: Gain Formula and Circuit

Inverting and Non-Inverting Op-Amp: Gain Formula and Circuit

March 11, 2026 /Posted byJayesh Jain / 0

The operational amplifier — or op-amp — is one of the most versatile building blocks in analogue electronics. A single op-amp IC can amplify signals, sum voltages, differentiate waveforms, compare levels, filter noise, and generate oscillations. But before you can exploit all that versatility, you need to master the two foundational configurations: the inverting amplifier and the non-inverting amplifier.

In this guide we cover both configurations in depth — their circuit diagrams, gain formulas, input/output impedances, worked numerical examples, and practical design considerations. Whether you are a student, a hobbyist, or an engineer refreshing your fundamentals, you will find everything you need here.

Table of Contents

  1. The Ideal Op-Amp: Key Properties
  2. Virtual Ground and Virtual Short Concepts
  3. Inverting Amplifier Circuit
  4. Inverting Amplifier Gain Formula and Derivation
  5. Inverting Amplifier Worked Example
  6. Non-Inverting Amplifier Circuit
  7. Non-Inverting Amplifier Gain Formula and Derivation
  8. Non-Inverting Amplifier Worked Example
  9. Voltage Follower (Unity Gain Buffer)
  10. Inverting vs Non-Inverting: Which to Choose?
  11. Practical Design Considerations
  12. Frequently Asked Questions

The Ideal Op-Amp: Key Properties

An ideal op-amp has three defining properties that make the gain formulas simple and elegant:

  • Infinite open-loop gain (A_ol → ∞): The open-loop voltage gain is extremely high (typically 100,000 or more in real devices). In closed-loop configurations, this makes the closed-loop gain depend only on the external resistors, not on the op-amp itself.
  • Infinite input impedance: No current flows into either input terminal (V+ or V−). This means the input resistors carry all the current without any going into the op-amp.
  • Zero output impedance: The output can source or sink current without any voltage drop — it is a perfect voltage source.
  • Infinite bandwidth: Ideal op-amps amplify all frequencies equally. Real op-amps have a finite gain-bandwidth product (GBW).

Virtual Ground and Virtual Short Concepts

These two concepts are the keys to deriving all op-amp circuit behaviour quickly:

Virtual Short

Because A_ol is infinite and the output is finite, the differential input voltage (V+ − V−) must be essentially zero in any stable negative-feedback circuit. Therefore:

V+ ≈ V−  (virtual short between the two input terminals)

The inputs are not shorted — no current flows between them — but their voltages are equal.

Virtual Ground

In the inverting amplifier, the non-inverting input (V+) is connected to ground (0 V). Because of the virtual short, V− also equals 0 V. This point (the inverting input) is therefore at virtual ground — it sits at 0 V without being physically connected to ground.

Inverting Amplifier Circuit

The inverting amplifier uses negative feedback through a resistor from the output back to the inverting (−) input:

  • Input signal V_in → R_in → inverting input (−)
  • Feedback resistor R_f from output → inverting input (−)
  • Non-inverting input (+) → Ground (via a bias compensation resistor R_bias = R_in ‖ R_f)

The R_bias at V+ is technically optional (for ideal op-amps) but good practice in real circuits to balance the bias current offset.

Inverting Amplifier Gain Formula and Derivation

Derivation Using Virtual Ground

Since V+ = 0 V and (virtual short) V− = V+ = 0 V:

Current through R_in: I₁ = (V_in − V−) / R_in = V_in / R_in

Since no current enters the op-amp input, all of I₁ flows through R_f:
I₁ = (V− − V_out) / R_f = −V_out / R_f

Equating:
V_in / R_in = −V_out / R_f

Therefore:
A_v = V_out / V_in = −R_f / R_in

Key Points

  • Gain magnitude = R_f / R_in
  • The negative sign means 180° phase inversion
  • Gain depends only on resistor ratio — not on the op-amp’s own gain
  • To set a gain of −10: R_f = 10 × R_in (e.g. R_in = 10 kΩ, R_f = 100 kΩ)

Input and Output Impedance (Inverting)

Z_in = R_in  (because V− is at virtual ground, the input signal sees R_in to ground)
Z_out ≈ 0 Ω  (ideal; real op-amps: Z_out = Z_out_open / (1 + A_ol × β) → very small)

Note: The input impedance of the inverting configuration is simply R_in, which may be too low for high-impedance sources. This is a key disadvantage compared to the non-inverting configuration.

Inverting Amplifier Worked Example

Design a −20 dB inverting amplifier (gain = −10) with input impedance of 10 kΩ:

Given: A_v = −10, Z_in = 10 kΩ

Step 1: R_in = Z_in = 10 kΩ
Step 2: R_f = |A_v| × R_in = 10 × 10k = 100 kΩ
Step 3: R_bias = R_in ‖ R_f = (10k × 100k) / (10k + 100k) = 9.09 kΩ → use 9.1 kΩ

Verification: A_v = −R_f/R_in = −100k/10k = −10 ✓

Finding output voltage for a given input:

V_in = 0.5 V (peak)
V_out = A_v × V_in = −10 × 0.5 = −5 V (peak)

Note: V_out cannot exceed the supply rails (e.g. ±12 V supply → V_out max ≈ ±10 V for typical op-amps)
Carbon Film Resistors

0 Ohm 0.25W Carbon Film Resistors (Pack of 100)

Build op-amp circuits with accurate resistor ratios — 1% metal film resistors give you precise gain setting for both inverting and non-inverting configurations.

View on Zbotic

Non-Inverting Amplifier Circuit

The non-inverting amplifier applies the input signal to the non-inverting (+) input and uses feedback from the output to the inverting (−) input through a resistor divider:

  • Input signal V_in → non-inverting input (+)
  • R₁ from inverting input (−) → Ground
  • R_f from output → inverting input (−)
  • This forms a voltage divider that sets the feedback fraction β = R₁/(R₁ + R_f)

Non-Inverting Amplifier Gain Formula and Derivation

Derivation Using Virtual Short

V+ = V_in
Virtual short: V− = V+ = V_in

V− is set by the voltage divider (R₁ and R_f):
V− = V_out × R₁ / (R₁ + R_f)

Equating:
V_in = V_out × R₁ / (R₁ + R_f)

Therefore:
A_v = V_out / V_in = 1 + R_f / R₁

Key Points

  • Gain is always greater than or equal to 1
  • No phase inversion (output in phase with input)
  • When R_f = 0 (short) and R₁ = ∞ (open): A_v = 1 (voltage follower)
  • To set A_v = 11: R_f = 10 × R₁ (e.g. R₁ = 10 kΩ, R_f = 100 kΩ)

Input and Output Impedance (Non-Inverting)

Z_in = Z_in_open_loop / (1 + A_ol × β) → extremely high (gigaohms for ideal)
Z_out ≈ 0 Ω (same as inverting — feedback reduces output impedance)

This extremely high input impedance is the primary advantage of the non-inverting configuration — it draws virtually no current from the signal source.

Non-Inverting Amplifier Worked Example

Design a non-inverting amplifier with gain = +11 (approximately +20.8 dB):

Given: A_v = 11

1 + R_f/R₁ = 11 → R_f/R₁ = 10

Choose R₁ = 10 kΩ → R_f = 100 kΩ

Verification: A_v = 1 + 100k/10k = 11 ✓

Output for a 100 mV input:

V_out = 11 × 100 mV = 1.1 V (same phase as input)

Bandwidth check (assuming LM741 with GBW = 1 MHz):

f_-3dB = GBW / A_v = 1 MHz / 11 ≈ 91 kHz
(This means the amplifier works flat up to ~91 kHz at this gain)

Voltage Follower (Unity Gain Buffer)

The voltage follower is a special case of the non-inverting amplifier with R_f = 0 and R₁ = ∞:

A_v = 1 + 0/∞ = 1
V_out = V_in (exactly, in phase)

While it might seem useless to have a gain of 1, the voltage follower is extremely valuable as an impedance buffer:

  • Takes a high-impedance signal (e.g. from a sensor) and presents it as a low-impedance output capable of driving a load without loading the source.
  • Used between a voltage divider and a load to prevent the load from disturbing the divider ratio.
  • Prevents sensor output from being loaded by a low-impedance ADC input.
12V Power Adapter

12V 2A Power Supply with 5.5mm DC Plug Adapter

Power your op-amp breadboard circuits with this stable 12V DC supply — op-amps like the LM741 and TL071 require a dual supply (use a DC-DC converter for split ±12V) or single supply operation.

View on Zbotic

Inverting vs Non-Inverting: Which to Choose?

Property Inverting Non-Inverting
Gain formula −R_f / R_in 1 + R_f / R₁
Minimum gain Any (including fractional) 1 (cannot go below unity)
Phase 180° inversion In phase (0°)
Input impedance = R_in (limited) Very high (GΩ range)
Virtual ground Yes (at V−) No
Summing possible? Yes (summing amplifier) Not directly
Best for Signal processing, mixers, DAC output stages Sensor interfaces, buffers, instrumentation

Practical Design Considerations

Resistor Value Range

Keep feedback resistors in the range of 1 kΩ to 1 MΩ. Too low a value loads the output and causes distortion; too high a value makes the circuit sensitive to parasitic capacitance and op-amp input bias current (which creates an offset voltage I_bias × R_f).

Gain-Bandwidth Product

Real op-amps have a fixed GBW. The usable bandwidth at a given closed-loop gain is:

f_-3dB = GBW / A_v
Example: TL071 GBW = 3 MHz, A_v = 100 → f_-3dB = 30 kHz

Input Bias Current Compensation

Connect a resistor R_bias = R_in ‖ R_f at the non-inverting input to V+ (to ground for inverting, to the appropriate DC potential for non-inverting). This balances the bias current offset at both inputs and minimises DC output offset.

Power Supply Decoupling

Always place 100 nF ceramic capacitors from each supply rail to ground, as close as possible to the op-amp supply pins. This is non-negotiable for stable, low-noise operation.

Output Swing Limitation

Most standard op-amps cannot swing their output all the way to the supply rails. Typical headroom is 1–2 V from each rail. Rail-to-rail op-amps (e.g. MCP6002, LMV321) can swing to within millivolts of the rails — use these for single-supply circuits.

Male to Male Jumper Wires

10CM Male To Male Breadboard Jumper Wires – 40Pcs

Wire up your op-amp breadboard circuits with these premium 2.54mm pitch jumper wires — essential for building and testing inverting and non-inverting amplifier configurations.

View on Zbotic

Frequently Asked Questions

What is the main difference between an inverting and non-inverting op-amp?

The main difference is where the input signal is applied. In the inverting configuration, the signal goes to the inverting (−) input, resulting in a 180° phase flip and a gain of −R_f/R_in. In the non-inverting configuration, the signal goes to the non-inverting (+) input, resulting in no phase flip and a gain of 1 + R_f/R₁. The non-inverting configuration also has a much higher input impedance.

Can the gain of an inverting op-amp be less than 1?

Yes. If R_f < R_in, the gain magnitude is less than 1 (it attenuates). For example, R_in = 100 kΩ and R_f = 10 kΩ gives A_v = −0.1. This is called an attenuating amplifier or scale factor circuit.

Why is virtual ground important?

Virtual ground is the analytical tool that makes inverting amplifier calculations simple. Because the inverting input sits at 0 V (virtual ground), the current through R_in is exactly V_in/R_in, and all of it must flow through R_f. This gives A_v = −R_f/R_in directly without needing to know A_ol.

What happens if I connect the output directly to the inverting input (no feedback resistors)?

This gives you the voltage follower (unity gain buffer). A_v = 1, no phase inversion, extremely high input impedance. The entire output is fed back, giving maximum negative feedback and hence minimum gain, maximum bandwidth, and best linearity.

Does the op-amp work with a single supply voltage?

Yes, if you use a rail-to-rail or single-supply op-amp (like LM358, MCP6002). With a single supply, you typically bias both inputs to V_CC/2 to allow signals to swing both above and below the mid-supply reference point.

How do I choose between an LM741, TL071, and LM358?

LM741: old standard, dual supply only, modest performance. TL071/TL081: JFET input (very low bias current, moderate GBW of 3 MHz), dual supply. LM358: dual op-amp, single supply, wide voltage range, but lower GBW (~1 MHz). For most modern designs, prefer LMV321 (single supply, rail-to-rail) or MCP6002 (dual, single supply, rail-to-rail, 1 MHz GBW).

Ready to Build Your Op-Amp Circuit?

Get precision resistors, a stable power supply, and jumper wires from Zbotic to build and test both inverting and non-inverting amplifier configurations on your breadboard. Seeing the gain formula work in a real circuit is the fastest way to internalise these concepts.

Shop Components at Zbotic

Tags: electronics basics, inverting amplifier, non-inverting amplifier, op-amp, operational amplifier
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
W5500 Ethernet Module: Wired I...
blog w5500 ethernet module wired iot with arduino mqtt 596815
blog how to choose motor driver for your dc motor formula guide 596818
How to Choose Motor Driver for...

Related posts

Svg%3E
Read more

Coffee Roaster: Temperature Profile Controller Build

April 1, 2026 0
Table of Contents Why Build a Coffee Roaster? Roasting Temperature Profiles Components for the Build Thermocouple Placement PID Profile Controller... Continue reading
Svg%3E
Read more

Sous Vide Cooker: Precision Temperature Water Bath

April 1, 2026 0
Table of Contents What Is Sous Vide Cooking? Precision Temperature Requirements Components for the Build PID Temperature Controller Water Circulation... Continue reading
Svg%3E
Read more

Kiln Controller: High-Temperature Pottery Automation

April 1, 2026 0
Table of Contents What Is a Kiln Controller? Temperature Requirements for Ceramics Components for High-Temperature Control K-Type Thermocouple and MAX6675... Continue reading
Svg%3E
Read more

Heat Gun Controller: Temperature and Airflow Regulation

April 1, 2026 0
Table of Contents What Is a Heat Gun Controller? Temperature and Airflow Regulation Components for the Build PID Temperature Control... Continue reading
Svg%3E
Read more

Soldering Iron Station: PID Temperature Controller Build

April 1, 2026 0
Table of Contents Why Build a Soldering Station? PID Temperature Control for Soldering Components Required Thermocouple Sensing at the Tip... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now