Home / Learn / Physics / Kirchhoff's rules solverTool #L261 (formerly #1407)

Kirchhoff's rules solver: draw a DC circuit, see the junction and loop equations solved

Draw a DC circuit of cells and resistors on a grid by tapping the sides between dots. The page writes out Kirchhoff's junction rule and loop rule for it, solves the equations and shows every branch current with its direction, the voltage across each resistor and the power of each cell.

Keep it one tap away for everyday use.

Bookmark Kirchhoff's rules solver?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Draw
  2. Set values
  3. Equations
  4. Currents
Nothing is uploadedWorks offline once open

Draw a circuit

Tap a side between two dots to pick it, then choose what goes there below. Dots joined by plain wire are one junction.

wirecurrent (arrow shows its direction)picked

Picked side

Kirchhoff's rules

    A minus sign means the current really flows the other way. A cell with a negative power is being charged.

    Try this

    • In "Two cells, three resistors", the 4 V cell's current comes out negative: the 6 V cell pushes current backwards through it and charges it.
    • Make the middle resistor bigger and watch more of the 6 V cell's current go round the outside.
    • In "Two cells in parallel", the 10 V cell gives no current at all. Change its emf to 9 V or 11 V.
    • Put plain wire across a resistor: its current drops to 0 because the wire shorts it out.
    • Add a third loop in the empty bottom row and see one more loop equation appear.

    Check yourself

    What it does

    When a circuit has more than one cell, or resistors that are neither simply in series nor simply in parallel, you need Kirchhoff’s rules:

    • Junction rule: at any junction, the current flowing in equals the current flowing out (charge does not pile up).
    • Loop rule: going once round any closed loop, the emfs of the cells add up to the sum of the I R drops (energy is conserved).

    This page lets you draw a circuit on a 3 × 3 grid of dots (A to I). Each side between two dots can hold nothing, a plain wire, a resistor or a cell with an optional internal resistance. Every resistor and cell is a branch with its own current I₁, I₂, …. The page writes out one junction equation for each junction (all but one) and one loop equation for each independent loop, solves them and draws the currents as arrows. A table gives each current, which way it really flows, the voltage across each resistor and the power each cell gives or takes.

    It follows the Class 12 Physics chapter on current electricity (Kirchhoff’s rules, cells in series and parallel, the Wheatstone bridge). Simpler circuits are quicker with series and parallel; the wheatstone bridge uses the same rules on a bridge, and drift velocity shows what a current is inside a wire.

    How to use it

    1. Pick a ready-made circuit in Start from, or Blank grid to draw your own.
    2. Tap a side between two dots on the picture (or choose it in the Side list). It turns orange.
    3. Choose Nothing, Wire, Resistor or Cell for it. Type the resistance, or the cell’s emf and internal resistance. Turn the cell round swaps its + and − ends; the long plate and the red + mark the + end.
    4. Read the equations and the currents. Each current Iₙ is counted as positive from left to right or top to bottom; a negative answer means it really flows the other way, and the table says which way.

    Dots joined by plain wire are at the same potential, so the page treats them as one junction and says so.

    Worked example

    Take Two cells, three resistors: a 6 V cell and a 2 Ω resistor on the left, a 6 Ω resistor in the middle and a 4 Ω resistor with a 4 V cell on the right, both cells with + at the top. The page writes three junction equations and two loop equations:

    • Loop A → B → D → A: 2 I₁ + 6 I₄ = 6
    • Loop A → B → C → D → A: 2 I₁ + 4 I₂ = 2

    Solving gives I₁ = 0.818 A through the 2 Ω resistor, I₄ = 0.727 A down through the 6 Ω resistor and I₂ = 0.0909 A through the 4 Ω resistor towards the 4 V cell. So 0.0909 A flows into the + end of the 4 V cell: the bigger cell is charging the smaller one, and the table marks that cell “charging”. Check with the junction rule at B: 0.818 = 0.0909 + 0.727.

    Tips

    • Choose any direction for each current when you work on paper; a negative answer just means the other way. The page uses left-to-right and top-to-bottom.
    • With N junctions and B branches you need N − 1 junction equations and B − N + 1 loop equations.
    • Ideal cells (no internal resistance) in parallel with different emfs, or a cell shorted by plain wire, have no sensible answer; the page tells you when that happens.

    FAQ

    Why do some junction equations look like I₂ = I₅? At a dot where only two branches meet, the rule just says the current is the same all along a series path.

    Why is one junction left out? Its equation follows from the others, so it adds nothing new.

    Is this an official NCERT resource? No. fibub is independent; the page follows the topics in the syllabus in its own words.

    Where the numbers come from

    • Kirchhoff's junction rule (current in = current out) and loop rule (the emfs round a closed loop equal the sum of the I R drops): standard circuit theory. One junction equation per junction except one in each connected part, and one loop equation per branch outside a spanning tree, give as many equations as branch currents.
    • Equations solved by Gaussian elimination with partial pivoting.
    • Checked against the closed-form two-cell circuit (6 V with 2 Ω and 4 V with 4 Ω across 6 Ω: 0.818, −0.0909 and 0.727 A, worked by hand with the node voltage V = (E₁/R₁ + E₂/R₂)/(1/R₁ + 1/R₂ + 1/R₃)), series and parallel combinations worked by hand, and two cells in parallel (12 V with 1 Ω and 10 V with 2 Ω on 5 Ω: 2 A, 0 A).

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-09.

    Change log for Kirchhoff's rules solver

    1. Add #1407 Kirchhoff's rules solver Details on GitHub

    Every change to fibub

    Related tools

    Ohm's law lab #L16 A virtual circuit for Ohm's law. Slide the battery voltage, read the ammeter and voltmeter, record readings and plot V against I. The slope is the resistance. Compare a resistor with a filament bulb, and work out a wire's resistance from its length, thickness and metal. Series and parallel #L17 Drag four resistors into series, into a parallel box or out of the circuit. The page works out the equivalent resistance step by step, shows the current splitting with moving dots, and gives the voltage, current and power for each resistor, plus the energy used in kWh and its cost. Wheatstone bridge #L23 A virtual metre bridge with a mystery resistor. Slide the jockey along the wire until the galvanometer reads zero, then work out the unknown resistance from the balance length. Every current in the bridge is shown, with Kirchhoff's junction and loop rules worked out with the live numbers. Drift velocity #L260 Watch free electrons dash about at random inside a copper, aluminium or silver wire and drift slowly against the field when a current flows. Change the current and the wire's thickness and get the drift speed from I = neAv_d, the time to drift a metre, and (advanced) the field, relaxation time and mobility. Internal resistance #L265 A virtual cell with an emf and an internal resistance drives a rheostat, with an ammeter and a voltmeter. See why the terminal voltage drops as the current grows, plot V against I, find the load that takes the most power, and record readings to work out E and r from a straight-line fit. Potentiometer virtual practical #L266 A virtual 4 m potentiometer wire with a driver cell, rheostat, jockey and galvanometer. Slide the jockey until the galvanometer reads zero, record the balance length, and work out an unknown cell's emf or a cell's internal resistance. The cells are a mystery until you ask to see the true values.