A function generator, a test oscillator, a siren — all of them need a circuit that makes its own sine wave with no input at all. The RC phase-shift oscillator is the simplest way to do it with one op-amp: three resistors, three capacitors, and the op-amp's own gain. This article works out the frequency it oscillates at, the gain it needs to start, and how to design one for 1 kHz.
Figure 1: An RC phase-shift oscillator (a) — three 10 kΩ / 10 nF sections feed the inverting input, and a 300 kΩ feedback resistor sets the gain to 30. The output (b) is a 650 Hz sine of about 10 V peak, with a period of 1.54 ms. (Schematic, not to scale.)
Why it oscillates — the Barkhausen condition
Any oscillator must satisfy two conditions at the same time: the signal going around the loop must come back in phase with itself (a total phase shift of 360°, or 0°), and the loop gain must be at least 1, so the signal does not die away. In this circuit the three RC sections together shift the signal by 180° at one special frequency, and the inverting op-amp adds the other 180° — so the total is 360° and the circuit sings. At that frequency the ladder also weakens the signal by a factor of 29, so the amplifier must have a gain of at least 29 to make the loop gain reach 1. That is why the feedback resistor is chosen to give a gain of 30, just above the minimum.
Worked example — 650 Hz from 10 kΩ and 10 nF
Use the same resistor and capacitor in all three sections: R = 10 kΩ and C = 10 nF. One section has a time constant of:
RC = 10 × 103 × 10 × 10−9 = 100 µs
The oscillation frequency for three equal sections is:
f0 = 1 / (2Ï€√6 × R × C) = 1 / (15.39 × 100 × 10−6) = 649.7 Hz ≈ 650 Hz
The period is 1 / 650 = 1.54 ms, and at this frequency each capacitor has a reactance of:
XC = 1 / (2Ï€ × 650 × 10 × 10−9) = 24.5 kΩ
Now the gain. The amplifier is an inverting stage with R1 = 10 kΩ and RF = 300 kΩ:
Gain = RF / R1 = 300 / 10 = 30
The loop gain is 30 / 29 = 1.03 — just above 1, so the oscillation builds up from noise and keeps going. If you used RF = 270 kΩ instead, the gain would be 27, below the 29 the ladder needs, and the circuit would sit silent. That is the most common reason a phase-shift oscillator refuses to start: the gain is a little short.
What the output looks like
The amplitude grows until the op-amp runs out of supply voltage and clips the peaks. With ±12 V supplies the sine reaches about 10 V peak and comes out slightly flat-topped. For a clean sine, keep the gain only just above 29 — for example with a pair of diodes across part of RF that conduct when the output gets large and pull the gain back down, or a JFET used as a voltage-controlled resistor in the feedback path. Either trick holds the loop gain at exactly 1 once the oscillation is running, so the output stays a clean sine instead of a clipped one.
Designing for another frequency — 1 kHz
Keep C = 10 nF and solve the frequency formula for R:
R = 1 / (2Ï€√6 × 1000 × 10 × 10−9) = 6497 Ω ≈ 6.5 kΩ
With R = 6.5 kΩ the frequency is 1 / (15.39 × 6.5 × 103 × 10 × 10−9) = 999.6 Hz ≈ 1.0 kHz. The nearest standard value, 6.8 kΩ, gives 955 Hz — close enough for most test purposes. To tune the frequency, change all three resistors together (a triple-gang potentiometer) or all three capacitors together (a switched bank); changing only one section moves the frequency and spoils the 180° shift at the same time.
Key points to remember
- A phase-shift oscillator needs a total loop phase shift of 360° and a loop gain of at least 1 (Barkhausen's conditions): the RC ladder gives 180° at f0 and the inverting op-amp gives the other 180°.
- Worked example: R = 10 kΩ, C = 10 nF → RC = 100 µs, f0 = 1 / (2Ï€√6 × RC) = 650 Hz, period 1.54 ms, Xc = 24.5 kΩ at f0.
- The ladder attenuates by 29× at f0, so the amplifier gain must be at least 29: RF = 300 kΩ with R1 = 10 kΩ gives a gain of 30 and a loop gain of 1.03; RF = 270 kΩ (gain 27) will not start.
- With ±12 V supplies the sine reaches about 10 V peak and clips slightly; a diode limiter or JFET gain control keeps it clean.
- Design rule: for 1 kHz with C = 10 nF, R = 6.5 kΩ (f0 = 999.6 Hz); 6.8 kΩ gives 955 Hz. Tune by changing all three sections together.
