b2KIT

DC Circuit Simulator

Build circuits with resistors, batteries, and switches. Calculate current, voltage, and power using Kirchhoff laws with animated electron flow.

Tested tool guide Tested browser tools Checked August 16, 2026

What DC Circuit Simulator does, with a checked example

The DC Circuit Simulator lets you connect batteries, resistors, and switches, then inspect the resulting current, voltage, power, and electron flow. It solves the completed network using Ohm's law together with Kirchhoff's current and voltage laws. This makes it useful for checking both simple loops and circuits with branches. A common mistake is assuming that every resistor carries the total circuit current. That is true in a single series path, but current divides among parallel branches.

Worked example

A concrete input and expected output from the current implementation.

Input

One 9 V battery connected in series with one 3 ohm resistor and a closed switch.

Expected output

Circuit current: 3 A. Resistor voltage drop: 9 V. Resistor power: 27 W.

Ohm's law gives I = V/R = 9/3 = 3 A. The resistor uses the full 9 V, and its power is P = VI = 9 x 3 = 27 W.

How the result is produced

1

Circuit construction

Place the available components and connect them into a network. A closed switch joins its two sides electrically, while an open switch interrupts that path. Connections determine which elements are in series, which share the same pair of nodes in parallel, and whether a complete path exists between the battery terminals.

2

Electrical solution

At each junction, Kirchhoff's current law requires currents entering and leaving to balance. Around each closed loop, Kirchhoff's voltage law requires the signed voltage changes to sum to zero. Combined with V = IR for each resistor, these relationships determine branch currents, resistor voltage drops, and power values.

Good uses

  • Checking the current and power in a battery-powered series resistor circuit.
  • Comparing branch currents after adding resistors in parallel.
  • Seeing how opening or closing a switch changes the active current paths.

Limits and checks

  • The animated electron direction is opposite the conventional-current direction normally used in circuit equations for metallic conductors.
  • A calculated ideal-circuit value does not include battery internal resistance, resistor tolerance, wire resistance, heating, or component limits unless those properties are explicitly represented.
  • Do not read one branch's current as the circuit total. At a junction, the total current is divided among the connected branches.

Common questions

Why do parallel resistors have the same voltage but different currents?

Parallel resistors connect to the same two circuit nodes, so they have the same potential difference. Each branch current is then set by I = V/R. A branch with greater resistance carries less current at that voltage. The battery current equals the sum of the individual branch currents.

Can this simulator predict the current from a real shorted battery?

No, not from an ideal battery model alone. A zero-resistance path across an ideal voltage source implies unbounded current, while a real battery is limited by internal resistance and other physical effects. Use the simulator for the defined circuit model, not for safety predictions or hardware current ratings.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools