Sometimes you need a sine wave and you have no LC tank to make it with: an audio test tone, a reference signal for a filter, a clock for a chopper circuit. The RC phase-shift oscillator is the simplest sine-wave generator in electronics — one op-amp and three identical resistor-capacitor stages, no inductor, no crystal, nothing to tune except two resistor values. This guide builds one at 955 Hz and shows exactly why it oscillates at one frequency and no other.
Figure 1: An op-amp RC phase-shift oscillator (a) — three identical RC stages (R = 6.8 kΩ, C = 10 nF) feed the signal back to the inverting input, and Rf = 200 kΩ sets the gain to 29.4. The chart (b) shows the ladder's attenuation and phase against frequency: only at f0 = 955 Hz is the phase exactly 180° and the attenuation exactly 1/29. (Schematic, not to scale.)
How this guide's circuit works — 180° from the ladder, 180° from the amplifier
Oscillation obeys the Barkhausen criterion, which has two parts: the total phase shift around the loop must be 360° (or 0°), and the loop gain must be exactly 1. The phase-shift oscillator splits the phase budget in half. The inverting amplifier contributes 180° — its output is the mirror image of its input. The RC ladder must contribute the other 180°, and it does so at exactly one frequency.
Each RC stage is a high-pass section: the capacitor passes the signal on while the resistor bleeds some of it to ground. One stage can shift the phase by at most 90°, and only when it has almost nothing left to pass on, so three stages are cascaded — each contributing about 60° at the oscillation frequency, adding up to 180°. The cost is attenuation: by the time the signal has crossed three stages, only 1/29 of it is left, a loss of 29.2 dB. That is why the amplifier needs a gain of at least 29 — it must put back exactly what the ladder takes away, so the loop gain is 1 and the oscillation sustains itself.
The ladder's last resistor, R3, is also the amplifier's input resistor, and Rf sets the gain: gain = Rf/R1. The ladder loads itself — each stage is loaded by the next one — which is why the neat 1/29 result only holds when all three resistors and all three capacitors are equal and the last resistor is the amplifier's input resistor. Change one value and the frequency and the gain requirement both move.
Worked example — 955 Hz from R = 6.8 kΩ and C = 10 nF
The oscillation frequency of the equal-R, equal-C ladder is f0 = 1 / (2Ï€√6 × R × C). With R = 6.8 kΩ and C = 10 nF: 2Ï€√6 = 15.39, R × C = 6.8 × 10³ × 10 × 10⁻⁹ = 68 µs, so f0 = 1 / (15.39 × 68 µs) = 955 Hz, with a period of 1.047 ms. A nodal analysis of the loaded ladder confirms the textbook result at this frequency: the attenuation is 1/29 = 0.0345 (−29.2 dB) and the phase is exactly −180°.
The gain must clear 29, so Rf = 200 kΩ against R1 = 6.8 kΩ gives gain = 200 / 6.8 = 29.4 — just above the threshold. That "just above" is deliberate. A gain of exactly 29 would need perfect components and would die from the slightest drift; a gain far above 29 drives the output hard into the rails. At 29.4 the oscillation starts reliably from the op-amp's own noise and grows until something limits it.
Check that the op-amp can do the job. A TL071 (gain-bandwidth product 3 MHz, slew rate 13 V/µs typical) has an open-loop gain at 955 Hz of 3,000,000 / 955 = 3,141 — more than a hundred times the 29.4 the circuit asks for, so the closed-loop gain is set by the resistors, not by the op-amp. The slew rate needed for a 10.5 V peak sine at 955 Hz is 2Ï€ × 955 × 10.5 = 63,000 V/s = 0.063 V/µs, two hundred times below the TL071's 13 V/µs. Neither bandwidth nor slew rate limits this circuit at audio frequencies.
What limits the amplitude is the supply. With no limiting at all, the oscillation grows until the op-amp saturates — a TL071 on ±12 V supplies clips at about ±10.5 V, roughly 1.5 V from each rail — and the output becomes a sine with flat tops. For a clean sine, put two 1N4148 diodes back-to-back in series with a 100 kΩ resistor across Rf: the diodes stay off at small signals and start conducting near their knee, which pulls the effective feedback resistance down just enough to hold the gain at 29. The output settles at roughly 0.5 V peak — small, but a clean sine with well under 1% distortion. For a bigger clean output, the classic fix is a JFET (such as the 2N5457) used as a voltage-controlled resistor in the feedback path, which adjusts the gain smoothly instead of clipping.
Why it only oscillates at one frequency
Figure 1 (b) is the whole explanation. Below f0 the ladder's phase shift is less than 180° — at 100 Hz it is only about −102° — so the feedback arrives out of step and cancels instead of reinforcing. Above f0 the phase passes 180° and keeps going toward 270°, so again the feedback is out of step. Only at f0 is the phase exactly 180°, completing the 360° loop with the amplifier's inversion. The attenuation curve is a red herring on its own: above f0 the ladder actually attenuates less, so a careless reading suggests the circuit should oscillate at a higher frequency — but the phase is wrong there, and phase is what decides. This is also why the circuit is stable against drift: if the frequency wanders, the phase error pushes it back.
The gain test is just as sharp. With Rf = 180 kΩ the gain is 26.5 — below 29 — and the oscillation dies away to nothing, because the ladder takes more than the amplifier gives back. With Rf = 300 kΩ the gain is 44 and the output slams into the rails and stays there as a clipped, almost square wave. The working window is narrow by design: enough gain to start, little enough to stay clean.
Design it for something else — 5 kHz and 100 Hz versions
The frequency scales with 1/(R × C), so any audio frequency is one resistor change away. For a 5 kHz test tone, keep C = 10 nF and solve for R: R = 1 / (2Ï€√6 × 5000 × 10 nF) = 1.3 kΩ (a standard value), which gives f0 = 4,998 Hz, and Rf = 39 kΩ gives a gain of 39 / 1.3 = 30.0. For a 100 Hz tone, use bigger capacitors: C = 100 nF and R = 1 / (2Ï€√6 × 100 × 100 nF) = 6.5 kΩ (use a 6.49 kΩ 1% metal-film resistor), which gives f0 = 100 Hz, and Rf = 200 kΩ gives a gain of 200 / 6.5 = 30.8.
Two practical notes. First, use C0G/NP0 ceramic or polypropylene film capacitors: ordinary X7R ceramics change capacitance with voltage, and that voltage dependence turns straight into distortion on the sine wave. Second, use 1% metal-film resistors — with 5% resistors the frequency can sit several percent away from the calculation, and if the three stages drift apart the 1/29 attenuation changes and the gain margin with it. Keep each R at 1 kΩ or above so the ladder does not load the op-amp output heavily.
Key points to remember
- Worked example: R = 6.8 kΩ and C = 10 nF in a three-stage ladder give f0 = 1/(2Ï€√6 RC) = 955 Hz; the ladder attenuates by exactly 1/29 (−29.2 dB) and shifts the phase by exactly 180° at that frequency, confirmed by nodal analysis.
- The amplifier must provide a gain of at least 29 to replace what the ladder loses: Rf = 200 kΩ with R1 = 6.8 kΩ gives 29.4 — just enough to start reliably without driving hard into the rails.
- Only at f0 is the loop phase 360° (180° ladder + 180° amplifier); below f0 the phase is too small and above it too large, so the circuit oscillates at one frequency and no other.
- A TL071 has far more bandwidth and slew rate than this circuit needs (open-loop gain 3,141 at 955 Hz; only 0.063 V/µs of slew for a 10.5 V peak sine against 13 V/µs available).
- Without limiting, the output clips at about ±10.5 V on ±12 V supplies; a diode limiter across Rf holds a clean sine of roughly 0.5 V peak, and a JFET gives a bigger clean output.
- Gain below 29 (Rf = 180 kΩ → 26.5) kills the oscillation; gain far above 29 clips it — and the same design scales to 5 kHz (R = 1.3 kΩ, Rf = 39 kΩ) or 100 Hz (R = 6.5 kΩ, C = 100 nF, Rf = 200 kΩ).
