Skip to content
Omnikalc

Wien bridge oscillator calculator: frequency, period and amplifier gain

Enter the resistor and the capacitor of the bridge and the gain resistors of the amplifier to get the frequency of the Wien bridge oscillator, its period and the gain needed to start the oscillation.

Updated on
Your inputs
kΩ

Value out of range

nF

Value out of range

kΩ

Value out of range

kΩ

Value out of range

Results

Oscillation frequency

1,591.5 Hz

Period
0.628 ms
Gain of the amplifier
3.10
Gain slightly above 3: the oscillation starts with low distortion
Minimum Rf to start oscillation
20.0 kΩ
Rf for a gain of 3.05
20.50 kΩ

The Wien bridge oscillator is a classic RC sine wave generator with an op-amp. The Wien bridge calculator gives the frequency and the period from R and C, and the gain and the resistor Rf needed for the oscillation to start.

How the calculation works

  • Enter the resistor R and the capacitor C of the two RC arms of the bridge. In the standard circuit, the two resistors are equal and the two capacitors are equal.
  • Enter the resistors Rg and Rf of the non-inverting amplifier that closes the loop.
  • The calculator gives the frequency f = 1 / (2π R C) and the gain 1 + Rf / Rg of the amplifier.
  • The gain must be at least 3 for the oscillation to start. A value a little above 3, such as 3.05, keeps the distortion low, and many circuits add a lamp or a diode to limit the amplitude.

Example

A Wien bridge oscillator has R = 10 kΩ and C = 10 nF. The frequency is 1 / (2π × 10,000 × 0.00000001) = 1,591.5 Hz, a period of 0.628 ms. The amplifier has Rg = 10 kΩ and Rf = 21 kΩ, so the gain is 1 + 21 / 10 = 3.10, above the minimum of 3, which needs at least 20 kΩ for Rf. A value of 20.5 kΩ gives a gain of 3.05.

Why it matters

The calculator helps students, makers and audio designers to choose the resistor and the capacitor of a sine oscillator for a test signal, a tone generator or a function generator, and to set the gain of the amplifier. It checks quickly that the loop gain is enough, and not too large.

Good to know

Use a variable resistor in the gain, or a lamp, to adjust the amplitude with low distortion. Keep the capacitors in the range of 1 nF to 1 µF and the resistors from 1 kΩ to 100 kΩ, to avoid the effects of the input bias and the parasitic capacitance. Use a double potentiometer for R if you want a variable frequency.

The RC filter calculator gives the cutoff of a similar network, the op-amp gain calculator sizes the amplifier, the LC resonance calculator covers the oscillators for higher frequencies, and the 555 timer calculator makes a square wave.

Frequently asked questions

How does a Wien bridge oscillator work?

The circuit has an op-amp amplifier and a Wien network, a series RC and a parallel RC. At one frequency, the network has a gain of 1/3 and no phase shift. If the amplifier has a gain of 3, the loop gain is 1 at that frequency, and the circuit oscillates with a pure sine wave. At other frequencies, the phase or the gain of the loop is not right, so they die out.

What is the frequency formula?

With R1 = R2 = R and C1 = C2 = C, the frequency is f = 1 / (2π R C). With unequal parts, it is f = 1 / (2π √(R1 R2 C1 C2)), and the minimum gain becomes 1 + R2 / R1 + C1 / C2. The calculator uses the equal values, the most common design. Use 1% resistors and 5% capacitors, or better, to keep the frequency within a few percent.

Why must the gain be slightly above 3?

With a gain of exactly 3, the oscillation is on the edge, and a drift of the parts stops it. With more than 3, it starts and grows until the amplifier saturates, which distorts the wave. A real circuit uses a nonlinear element, such as a small lamp or two diodes in the feedback, which lowers the gain as the amplitude grows, and keeps the sine wave clean.

What limits the maximum frequency?

The gain-bandwidth product of the op-amp. At the oscillation frequency, the open-loop gain must be much larger than 3, and the phase shift of the amplifier should be small. As a rule, keep the frequency below about 1/100 of the gain-bandwidth product of the op-amp. For high frequencies, use a fast op-amp or a different oscillator, such as the LC type.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.