RL Circuit Current Calculator (Transient Simulator)

JJ Ben-Joseph headshot JJ Ben-Joseph

TL;DR: This calculator simulates the transient current i(t) of a series RL circuit driven by a constant (step) voltage. It reports the key summary values (τ = L/R, ifinal = V/R) and numerically integrates the differential equation so you can plot the full curve and export samples to CSV.

What this simulator calculates

A series resistor–inductor (RL) circuit appears in motor windings, solenoids/actuators, relays, and power electronics. When a DC source is applied, the inductor resists abrupt changes in current, so the current rises (or falls) smoothly toward a steady value rather than stepping instantly.

This page models an ideal series RL connected to a constant voltage source at t = 0 with an optional initial current I₀. You choose the simulation time step Δt and total duration T to control the plotted timeline and numerical resolution.

Variables (inputs)

Governing equation (RL step response)

Applying Kirchhoff’s Voltage Law (KVL) around the loop for a series RL driven by a constant voltage V gives:

V = L di dt + Ri

Rearrange to the standard first-order ODE:

di/dt = (V − R·i) / L

Analytical solution (useful checkpoints)

For constant V, the closed-form solution is:

i(t) = ifinal + (I₀ − ifinal)·e−t/τ

where:

Interpretation of τ: after one time constant, the current has moved about 63.2% of the way from I₀ to ifinal. After about , it is very close to steady state (~99.3%).

How to use the simulator

  1. Enter V, R, L, and an optional I₀.
  2. Choose Δt small enough to capture the curve shape (a common rule is Δt ≲ τ/100 for smooth plots).
  3. Set T to the horizon you care about (often 3τ to 5τ to see settling).
  4. Press Play to animate; Pause to inspect; Reset to restart.
  5. Use CSV export to download time/current samples for spreadsheets or lab comparison.

Interpreting results

Worked example (using the defaults)

Inputs: V = 5 V, R = 2 Ω, L = 0.5 H, I₀ = 0 A.

Analytical checkpoints:

If you set T to at least ~1.25 s, you’ll see the curve nearly reach steady state. If you set T = 0.5 s (the default), you’ll still see a substantial rise (about 86.5% of final by 2τ).

Quick comparisons

Change What happens to τ = L/R? What happens to ifinal = V/R? What you see on the plot
Increase L Increases (slower) No change Slower rise/decay, same final level
Increase R Decreases (faster) Decreases Settles faster but to a lower plateau
Increase V No change Increases Same shape vs time, higher plateau
Nonzero I₀ No change No change Curve starts at I₀ and moves toward V/R

Assumptions & limitations (important)

FAQ

What does the time constant mean in plain terms?

τ = L/R sets how quickly current changes. Roughly: 1τ gets you 63% of the way to the final value; 5τ is “basically settled.”

Why does Δt matter?

The simulator integrates di/dt in discrete steps. Smaller Δt tracks the continuous solution more closely, especially when τ is small or you want accurate energy values.

Can I use this for AC?

Not directly. This tool is for a DC step (transient) with constant V. AC steady-state RL analysis uses impedance and phase, which is a different model.

Enter parameters and press Play.
Simulation summary will appear here.

Flux Finesse Mini-Game

Practice throttling an RL stage to stay inside the current window. Drag or tap the canvas (or use arrow keys) to steer the switch duty and keep the inductor hugging its target band as load pulses and resistance shifts roll in.

Inductor Current 0.00 A
Target Band
Duty Command 0%
Scenario Nominal
Slide horizontally to modulate duty. Stay within ±Δi to build streaks.

Embed this calculator

Copy and paste the HTML below to add the RL Circuit Current Calculator (Transient Response) to your website.