Inductor
CircuitSim
·
Created Oct 3, 2026
·
Updated Oct 3, 2026
About this circuit
Watch current build and decay in an inductor through a resistor. Compare voltage and current over time, measure the L/R time constant, and try two value changes.
Circuit notes
Inductor
An inductor stores energy in a magnetic field and opposes changes in current. V1 switches from to and back. Current through L1 builds gradually, then continues in the same direction as it decays. Watch the inductor voltage reverse when the source falls to zero.
The response speed is set by the time constant:
Read the circuit and chart
- VL — green: voltage across L1, from its upper terminal to ground. A negative value means the upper terminal is below ground.
- Vs — red: source voltage, showing the rising and falling edges.
- IL — blue: current toward L1, flowing clockwise through the loop and downward through the inductor.
R1 limits the final current. The bottom wire is the shared return, and ground defines . Voltage traces share the upper chart group; current has its own scale below. Both groups use the same time axis. The probes do not materially change the circuit.
Follow one pulse
The circuit starts with zero current because V1 is initially at . At about , Vs rises to . IL cannot jump when the applied voltage is finite: . Initially, almost all the source voltage appears across L1. As current builds, the resistor's voltage drop grows and VL falls toward zero.
For an ideal voltage step, with measured from the rising edge:
The eventual current is . After one time constant, IL reaches about 63.2% of that value; after five, about 99.3%. The source uses short edges, so these chart landmarks are approximate:
| Chart time | What to look for |
|---|---|
| Just after | VL is nearly while IL is still near zero. |
| One time constant later: IL is about and VL about . | |
| Just before | IL is about ; VL is nearly zero. |
| Just after | Vs returns to zero. VL reverses to nearly , while IL remains continuous and positive. |
| One decay time constant later: IL is about and VL about . |
During decay, , where is time since the falling edge. The negative VL means current is decreasing, not reversing. L1 releases stored energy into R1, which dissipates it as heat.
Setting the ideal source to zero keeps the loop closed through R1. The source is not disconnected, so this circuit demonstrates a controlled current decay. At steady DC, an ideal inductor has zero voltage across it while carrying current.
Stored energy is . At , L1 stores about . This is a calculated value, not an additional chart trace.
Use CircuitSim
This example runs Transient analysis automatically from 0 to 110 ms. The target and maximum time steps are 50 µs, small compared with the time constant. Normal operating-point initialization is enabled; Use initial conditions is off.
Hover over the chart to inspect values. Open Table for numeric samples in the order time, VL, Vs, IL. Select a component and edit the named field in Properties, then use Run simulation. Leave advanced parameters at their defaults.
Try it
- Double inductance. Change L1's Inductance from 1 to 2. The time constant becomes , so IL reaches about at chart time . The eventual current remains , but this pulse ends before it is fully reached.
- Double resistance. Restore L1 to 1, then change R1's Resistance from 100 to 200. The time constant becomes and the eventual current is . At chart time , IL is about : it rises faster toward a lower final value.
Restore L1 = 1 and R1 = 100, then rerun. Inductance is in henries and resistance in ohms. V1 uses VI = 0, VP = 5, TD = 5m, TR = TF = 10u, PW = 50m, and Per = 120m. The displayed interval includes one rise-and-decay cycle.
Model assumptions
L1 is an ideal linear inductor with no winding resistance, magnetic saturation, or core losses. Real inductors have these effects and a current rating. R1 is constant, and V1 is an ideal source. This example isolates magnetic energy storage and the time constant.
Components used
Components used
3 components
Try this circuit yourself
Free to get started. No download — runs in your browser with a full SPICE engine.