Oscillators & Signal SourcesAdvanced13 min read · November 2026

Wien Bridge Oscillator Tutorial: Barkhausen Criterion, Gain of 3 & Sine Purity

While a Schmitt trigger or 555 timer easily produces harmonic-rich square and triangle waves, precision audio testing, LVDT excitation, and impedance bridges demand a pure, low-distortion sine wave without bulky inductors. Built around a clever lead-lag RC frequency bridge tied across a non-inverting operational amplifier, the Wien Bridge oscillator generates clean sinusoidal frequencies from sub-1 Hz audio up past 1 MHz using only matched resistors and capacitors. In this tutorial you will derive the exact transfer fraction beta = 1/3 at zero phase shift, prove why closed-loop non-inverting gain must sit tightly around 3.00, inspect soft diode amplitude stabilization (AGC), and watch self-oscillation build up live inside NodeSim.

Launch This Pre-Wired Circuit in NodeSim
Opens directly inside the ngspice WebAssembly workbench with sources and probes attached — zero signup required.
Simulate Live Circuit →
Operational Amplifier Feedback & Transfer Curve−+RinRfVoutVinLinear feedback vs rail / hysteresis bounds
Wien Bridge series-parallel RC lead-lag feedback path driving non-inverting gain stage (Av = 1 + Rf/Rg >= 3).

1. Barkhausen Criterion & the Lead-Lag RC Feedback Bridge

For any linear feedback loop to sustain steady sinusoidal oscillation at frequency f_0 without dying out or railing into distortion, Heinrich Barkhausen proved two simultaneous loop conditions must hold: (1) total loop gain magnitude |A_v * beta| must equal unity (1.00), and (2) total phase shift around the loop must equal 0 degrees (or an integer multiple of 360 degrees).

The Wien network wires one series RC branch (R1, C1) feeding a parallel shunt RC branch (R2, C2) connected from Vout back into the non-inverting (+) terminal of an op-amp. Because a non-inverting op-amp introduces zero phase inversion (0 degrees) in its flat band, oscillation occurs exclusively at the unique frequency f_0 where the RC lead-lag network itself passes 0 degrees phase shift. Using matched values R1 = R2 = R and C1 = C2 = C makes complex impedance algebra remarkably symmetric.

Series Branch Impedance:   Z_s = R + 1 / (jωC)
Parallel Branch Impedance: Z_p = R || (1 / (jωC)) = R / (1 + jωRC)
Feedback Ratio: β(jω) = Z_p / (Z_s + Z_p) = 1 / (3 + j(ωRC − 1/(ωRC)))
Zero Phase Shift Occurs When Imaginary Term Vanishes:
  ω₀RC = 1 / (ω₀RC)  ⇒  ω₀ = 1 / (RC)  ⇒  f₀ = 1 / (2 × π × R × C)
Transfer Attenuation At Resonance: β(jω₀) = 1 / 3  (phase = 0°)

Using matched 10 kOhm resistors and 10 nF capacitors sets target sine oscillation cleanly at f0 = 1 / (2 * pi * 10k * 10n) = 1.5915 kHz.

2. Why Closed-Loop Amplifier Gain Must Sit Exactly at 3.00

At resonant frequency f_0, the Wien bridge attenuates signal amplitude cleanly down to one-third (beta = 1/3). Satisfying Barkhausen loop unity |A_v * beta| = 1 therefore forces non-inverting op-amp gain A_v = 1 + (Rf / Rg) to equal exactly 3.00—meaning Rf / Rg = 2.00 precisely.

Here lies the classic catch every builder encounters in the lab. If component tolerances yield Rf / Rg = 1.98 (gain = 2.98), total loop gain falls slightly below 1.00 and oscillations decay flat to zero. Conversely, if resistor tolerance yields Rf / Rg = 2.05 (gain = 3.05), thermal noise triggers self-oscillation reliably, yet the growing sine wave expands exponentially every cycle until smashing straight into the op-amp power supply rails—clipping a pure sine into an ugly trapezoidal wave!

  • Startup Margin Requirement: Designers deliberately choose initial small-signal non-inverting gain just above 3 (typically 3.05 to 3.2) so oscillations self-start briskly on power-up rather than stalling.
  • Why Automatic Gain Control (AGC) Is Mandatory: Once amplitude reaches a safe clean peak (say +/-2 V to +/-5 V), a non-linear feedback element—traditionally an incandescent tungsten bulb like Bill Hewlett's 1939 audio oscillator, or modern antiparallel diodes / JFET—must smoothly drop gain back to exactly 3.000.

3. Soft Amplitude Limiting Using Antiparallel Diodes

Replacing upper resistor Rf with a split series network—say Rf_base = 18 kOhm plus a parallel combination of 4.7 kOhm and antiparallel 1N4148 silicon diodes across it—provides effortless modern AGC stabilization without fragile lightbulbs. At tiny startup signal amplitudes (millivolts), both diodes remain completely reverse/off-biased, leaving total feedback resistance Rf = 18k + 4.7k = 22.7 kOhm with Rg = 10 kOhm (gain = 3.27 > 3.00). Amplitude balloons rapidly.

As peak voltage across the parallel feedback segment exceeds ~0.6 V, the 1N4148 diodes smoothly begin conducting near waveform peaks, dynamically shunting the 4.7 kOhm segment down until average cycle gain touches precisely 3.000. Soft diode conduction preserves clean Total Harmonic Distortion (typically under 1–2% THD) well away from harsh supply-rail clipping.

Small-Signal Startup Gain (Diodes OFF): A_start = 1 + (Rf1 + Rf2) / Rg ≈ 3.27
High-Amplitude Gain (Diodes Conducting): A_clamped = 1 + Rf1 / Rg ≈ 2.80
Equilibrium Settles Cleanly Where Average Effective Gain = 3.000

4. Launching & Watching Oscillation Startup in NodeSim

Click Simulate Live Circuit above to load NodeSim's Wien Bridge oscillator circuit in Transient (.tran) mode. Observe the initial millisecond envelope carefully: you will watch small startup noise ripples amplify cycle by cycle over several milliseconds before settling gracefully into a smooth, steady sinusoidal output at f_0 = 1 / (2 pi R C).

Switch to an AC Frequency Sweep on just the passive RC bridge node if you wish to measure the bandpass peak directly at beta = -9.54 dB (1/3) and zero-degree phase crossover—validating the Barkhausen derivation visually.

Reference Component Values & Bill of Materials

Part / DesignatorNominal ValueRole in Circuit
U1 (Operational Amplifier)Universal / TL072 SPICEProvides clean non-inverting closed-loop gain slightly above 3x
R1, R2 (Wien Bridge Resistors)10 kOhm matchedForms series-parallel RC resonant network setting oscillation frequency
C1, C2 (Wien Bridge Caps)10 nF matchedEstablishes zero-phase frequency f0 = 1/(2πRC) ≈ 1.59 kHz
Rg (Gain Ground Resistor)10 kOhmSets non-inverting gain denominator A = 1 + Rf / Rg
Rf + AGC Diodes20 kOhm – 22 kOhm + 1N4148 pairProvides initial startup gain >3 and smooth amplitude regulation

Expected Waveforms & Simulation Verification

Probe / NodeAnalysis TypeExpected WaveformEngineering Check
Vout (Startup Window)Transient (.tran)Exponential growing envelope over 5–15 cyclesDemonstrates loop gain |Av*beta| slightly above 1 initiating oscillation
Vout (Steady-State)Transient (.tran)Clean smooth sine at f0 = 1 / (2πRC)Automatic gain limiting holds average loop gain tightly at 1.00
V_plus (Bridge Output)Transient (.tran)Exact 1/3 Vout amplitude in zero-degree phase lockConfirms β(jω0) = 1/3 and zero phase error across feedback leg

Troubleshooting Common SPICE & Bench Mistakes

Output stays flat at 0.000 V forever with zero oscillation growth
Check Rf/Rg ratio first: even Rf = 19.9 kOhm and Rg = 10 kOhm drops gain to 2.99 (<3) and stalls oscillation! Raise Rf slightly to 21 kOhm–22 kOhm or give C1 a tiny initial bias kick (UIC / initial step) in SPICE.
Output snaps immediately into a distorted flat-topped square wave
Closed-loop gain is set too high without soft diode AGC clamping. Keep small-signal gain near 3.1 to 3.3 and add antiparallel diodes across a portion of Rf.
Measured frequency deviates noticeably from f = 1/(2πRC)
Above 50 kHz, op-amp finite Gain-Bandwidth Product adds internal phase lag, shifting zero total phase shift lower than geometric resonance. Use a faster op-amp or lower R/C target frequency.

Hands-On Lab Exercises in NodeSim

  1. Sweep Rf across 19.5 kOhm, 20.5 kOhm, and 25 kOhm in NodeSim to witness all three regimes: damped decay, pure steady sine, and clipped saturation.
  2. Change R1 and R2 symmetrically from 10 kOhm to 4.7 kOhm and verify simulated frequency climbs proportionally to ~3.39 kHz.
  3. Add antiparallel 1N4148 clamping diodes across a 4.7 kOhm series slice of Rf and measure visibly reduced peak flattening compared to a fixed high-gain resistor.
Ready to run your own numbers?
Open this schematic live in NodeSim or export an IEEE PDF lab report.
Related Guides:Wien Bridge Lab TemplateColpitts LC OscillatorSchmitt Trigger OscillatorNon-Inverting Op-AmpActive Sallen-Key Filter