RL Time Constant Calculator – Coil Current, Energy and Flyback
An RL circuit is an inductor in series with a resistance. Close a switch and the current does not jump to its final value; it climbs along an exponential curve set by the RL time constant τ = L / R. Open the switch and the inductor fights back, trying to keep the same current flowing. That second event, the inductive kick, is why relay, solenoid and motor drivers need a flyback diode. This calculator covers both halves: energising and switch-off.
The inductor's rule: current cannot change instantly
An inductor stores energy in its magnetic field, and that energy is set by the current through it: E = ½·L·i². A sudden change in current would mean a sudden change in energy, which would take infinite power. So the voltage across an inductor, v = L·di/dt, rises to whatever value keeps the current continuous. A capacitor behaves the same way with voltage, which is why the RL and RC circuits are mirror images of each other.
Energising: how the current rises
With a supply V, a total resistance R and an initial current I₀, the current follows
i(t) = I_f + (I₀ − I_f)·e^(−t/τ) with I_f = V / R
v_L(t) = (V − I₀R)·e^(−t/τ)After one time constant the current has covered 63.2 % of the distance to I_f, after three about 95 %, and after five it is within 1 %. The initial slope is V/L amperes per second, whatever the resistance. A larger resistor therefore makes the coil faster: τ = L/R gets shorter as R grows, the opposite of the RC case.
The calculator asks for the external resistance and the coil's own DCR (winding resistance) separately. Both are in the loop, so both count towards τ. The steady-state heat P = I_f²·R is split between them, which tells you whether the resistor or the coil itself gets warm.
Switch-off and the flyback voltage
When the switch opens, the coil keeps its current I₀ flowing through whatever path remains and must get rid of ½·L·I₀² joules. With a suppressor across it, the current decays through a loop made of the coil's resistance, any suppressor resistance R_sup and a clamp voltage V_clamp (the diode's forward drop, plus a zener voltage if one is fitted):
L·di/dt = −(i·R_loop + V_clamp)
t₀ = τ_off·ln(1 + I₀·R_loop / V_clamp)
V_switch = V + I₀·R_sup + V_clamp- Flyback diode alone: the switch sees barely more than the supply, but the small clamp lets the current linger, so a relay releases slowly.
- Diode plus resistor: raises the coil voltage to
I₀·R_sup, shortening the decay at the cost of a higher switch voltage. - Diode plus zener or TVS: clamps at
V_f + V_z, so the current falls almost linearly and fastest of all. This is the usual choice when release time matters. - Resistor only: works, but it draws
V / R_supfrom the supply the whole time the coil is on. - Nothing: the voltage is limited only by stray capacitance and arcing, often hundreds to thousands of volts.
The comparison table runs your coil through all five options, so you can see the trade-off between release time and switch voltage side by side.
Solving for L or R, and the filter view
The design tab works backwards from a target time constant, a cutoff frequency or a rule such as "reach 90 % of full current in 5 ms". It returns the resistance or inductance you need and the nearest E12 and E24 values with the τ they actually give. Seen as a filter, the same series-L, shunt-R network has a corner at f_c = R / (2πL). With the output across R it is a low-pass; across L, a high-pass.
Limits of the model
The calculator assumes a constant inductance and ideal switching. Real coils have tolerances of ±10 % to ±20 %, which the tolerance band shows. Above the saturation current the inductance falls sharply. A relay's inductance also changes as the armature moves. Treat the results as a careful first estimate, then check on a scope.