LC Circuit Oscillation Simulator Back
Electric Circuits

LC Circuit Oscillation Simulator

Adjust L, C, and R to instantly visualize the damped voltage waveform and impedance resonance curve of an RLC circuit. Resonant frequency, Q factor, and decay time constant are calculated automatically.

Parameters
Inductance L
Capacitance C
Resistance R
Ω
Initial Voltage V₀
V
Results
Underdamped (oscillatory)
Results
Resonant freq. f₀
Q Factor
Resonant impedance
Decay constant τ
Voltage Waveform V(t)
Impedance |Z(f)|
Theory & Key Formulas
Angular resonant frequency: $\omega_0 = \dfrac{1}{\sqrt{LC}}$
Resonant frequency: $f_0 = \dfrac{1}{2\pi\sqrt{LC}}$
Damping coefficient: $\alpha = \dfrac{R}{2L}$
Q factor: $Q = \dfrac{\omega_0 L}{R}$
Underdamped voltage: $V(t) = V_0 e^{-\alpha t}\cos(\omega_d t)$
where $\omega_d = \sqrt{\omega_0^2 - \alpha^2}$

What is an LC Circuit Oscillation?

🙋
What exactly is happening in this simulator? I see a wavy voltage that eventually dies out.
🎓
Basically, you're watching energy slosh back and forth between the inductor (L) and capacitor (C). The capacitor starts charged, releasing energy as current into the inductor, which then pushes it back to the capacitor. Try moving the 'Resistance R' slider to zero in the simulator—you'll see it oscillate forever because there's no energy loss!
🙋
Wait, really? So the resistance is what makes the wave "dampen" and fade away? What's that resonant frequency number at the top?
🎓
Exactly! The resistance (R) dissipates energy as heat, causing the damping. The resonant frequency, $f_0$, is the natural rate of this energy exchange. In practice, it's set by just L and C: $f_0 = 1/(2\pi\sqrt{LC})$. A common case is a radio tuner. Try adjusting the L and C sliders and watch how $f_0$ updates instantly—you're tuning your circuit!
🙋
So if I want a sharp, strong oscillation that lasts a long time, I need a high Q factor. How do I get that with these controls?
🎓
Great intuition! The Quality factor $Q = \frac{\omega_0 L}{R}$. For a sharp resonance, you want high L, low R, and a specific C to get your desired $f_0$. In the simulator, set R very low, L high, and find a C that gives you a frequency you want. You'll see the waveform ring for many cycles and the resonance peak in the impedance plot become very narrow and tall.

Physical Model & Key Equations

The core behavior is described by a second-order differential equation for the charge $q(t)$ on the capacitor, derived from Kirchhoff's voltage law.

$$L\frac{d^2q}{dt^2}+ R\frac{dq}{dt}+ \frac{1}{C}q = 0$$

Where $q$ is the charge, $\frac{dq}{dt}=i$ is the current, $L$ is inductance (H), $R$ is resistance (Ω), and $C$ is capacitance (F). This is the equation of a damped harmonic oscillator.

The solution for the underdamped case (most common oscillatory behavior) gives the decaying voltage waveform you see in the simulator.

$$V(t) = V_0 e^{-\alpha t}\cos(\omega_d t + \phi)$$

Here, $V_0$ is the initial voltage, $\alpha = R/(2L)$ is the damping coefficient, and $\omega_d = \sqrt{\omega_0^2 - \alpha^2}$ is the damped natural frequency. The exponential term $e^{-\alpha t}$ is the envelope of decay controlled by R and L.

Frequently Asked Questions

When R=0, it becomes simple harmonic oscillation (sustained oscillation) without damping. On the simulator, the waveform continues to oscillate with a constant amplitude without decaying. However, in real circuits, there is always some small resistance, such as the DC resistance of the coil, so this is a theoretical ideal state.
The resonant frequency is calculated as f₀ = 1/(2π√(LC)). The Q factor is given by Q = (1/R)√(L/C), which represents the sharpness of the circuit. The higher the Q factor, the sharper the resonance peak and the longer the duration of the damped oscillation.
This simulator models a passive circuit (RLC series circuit), so it does not diverge when R ≥ 0. If the amplitude appears to increase, please check whether R is set to a negative value. Negative resistance only occurs when simulating active circuits.
The horizontal axis represents frequency, and the vertical axis represents the absolute value of impedance. At the resonant frequency, the impedance is at its minimum (equal to the R value). The higher the Q factor, the deeper and narrower this dip. Additionally, the phase changes from capacitive (-90°) to inductive (+90°) across the resonant frequency.

Real-World Applications

Radio Tuners and Filters: LC circuits are the heart of analog radio receivers. By adjusting the capacitor (tuning), the circuit resonates at the frequency of a specific radio station, amplifying its signal while rejecting others. The sharpness (Q) of the resonance determines the selectivity of the tuner.

Switch-Mode Power Supplies: LC "tank" circuits are used to store and transfer energy efficiently at high frequencies in power converters. The oscillation is carefully controlled to minimize energy loss (requiring high Q) when switching transistors on and off, leading to compact and efficient power adapters.

Wireless Power Transfer: Systems like Qi chargers for phones use a pair of magnetically coupled LC resonators. The transmitter and receiver coils are each part of an LC circuit tuned to the same resonant frequency, enabling efficient energy transfer over a small air gap.

Signal Conditioning and Clock Generation: Crystal oscillators, which provide precise timing signals for computers and microcontrollers, fundamentally rely on the resonant properties of a piezoelectric crystal, electrically modeled as a very high-Q LC circuit. This provides the stable clock signal that synchronizes all digital operations.

Common Misconceptions and Points to Note

When you start using this simulator, there are a few points that are easy to misunderstand. First, while it's correct that "the resonant frequency is determined solely by L and C," you often forget that whether the oscillation sustains is dominated by R. For example, with L=1mH and C=1μF, the resonant frequency is about 5kHz, but simply changing R from 10Ω to 100Ω drastically changes the oscillation decay from a "beautiful sine wave" to a "curve that decays immediately." In practice, the DC resistance of the coil and wiring resistance are also included in "R," which can cause a discrepancy between ideal simulations and actual measurement results.

Next, it's not always true that "a higher Q factor is better." Certainly, for radio tuning, you want a high Q factor (sharp resonance characteristic). However, in an LC filter for a switching power supply, if the Q factor is too high, the circuit can become unstable and oscillate due to switching noise. If you use the simulator to increase the Q factor by keeping L and C constant and only decreasing R, you'll see the peaks on the graph become sharper and more numerous. That's a visualization of the "sharpness of resonance." It's important to design the optimal amount of damping (i.e., Q factor) according to the application.

Also, be mindful of assumptions about initial conditions. This simulator often starts from a state where the capacitor has an initial charge, right? But in a real circuit, the state the moment a switch is turned on or the influence of noise also become initial conditions. When simulation results don't match textbook examples, try questioning "what are the true initial conditions?"

How to Use

  1. Set inductance L (mH) using slL slider: range 1–100 mH for typical audio circuits
  2. Set capacitance C (µF) using slC slider: range 0.1–10 µF to observe frequency shift
  3. Set resistance R (Ω) using slR slider: increase R to increase damping and reduce Q factor
  4. Set initial voltage V₀ (V) using slV0 slider to define peak transient energy
  5. Observe resonant frequency f₀, Q factor, characteristic impedance Z₀, and time constant τ update in real-time
  6. Compare underdamped (R low, oscillating), critically damped (R≈2√L/C), and overdamped (R high, slow decay) responses

Worked Example

Configure an RLC circuit with L=10 mH, C=1 µF, R=50 Ω, V₀=5 V. Calculated resonant frequency f₀=1591 Hz (from 1/(2π√LC)), characteristic impedance Z₀≈100 Ω, quality factor Q≈10, and decay constant τ≈0.2 ms. The voltage waveform displays damped oscillation with amplitude halving every 0.2 ms. Increasing R to 200 Ω raises Q to 2.5 and strongly suppresses ringing, typical for power supply filters in industrial switching converters.

Practical Notes

  1. For RF filter design, target Q>10 by reducing R: a 10 nH inductor with 1 pF capacitor produces f₀≈1.6 GHz with minimal loss
  2. Critically damped circuits (Q=0.5) eliminate overshoot in precision measurement chains—solve R=2√(L/C) before building
  3. Decay constant τ=2L/R determines settling time; multiply τ by 5 for 99% amplitude reduction in transient analysis
  4. Watch impedance resonance curves: sharp peaks indicate high Q and narrow bandwidth, useful for impedance matching networks