← Circuit Toolkit

KVL Loop Solver

Build any single-loop circuit — up to three sources with switchable polarity and up to three series resistors. The Kirchhoff’s Voltage Law equation is written out live, so you can see exactly which term flips sign when a source opposes the others.

KVL Loop Solver

+E₁ 12 VR₁ 4 Ω▼ 4.0 VR₂ 8 Ω▼ 8.0 VI (assumed ↻)Tip: use the +/− buttons to flip a source's polarity
Voltage Sources
E₁12 V
Resistors
R₁4 Ω
R₂8 Ω
KVL loop equation
E1IR1IR2=0E_{1} - I \cdot R_{1} - I \cdot R_{2} = 0
12I×4I×8=012 - I \times 4 - I \times 8 = 0
12=12I12 = 12I
I =1.000 A
↻ Actual current is clockwise — same as assumed.
Voltage drops
V₁ = I × 4 Ω4.0 V
V₂ = I × 8 Ω8.0 V
Sum of drops = net EMF12.0 V = 12.0 V ✓

Why the sum around a loop is zero

Kirchhoff’s Voltage Law says that if you walk once around any closed loop and add up every voltage you cross, you end where you started, so the total must be zero. It is conservation of energy stated for a circuit: a charge carried all the way round gains and loses exactly the same energy. Sources push energy in, resistors take it out as heat, and the books balance.

Aiding and opposing sources

Two 6 V cells wired the same way give 12 V of drive. Reverse one and they give zero — not because the cells stopped working, but because one is now pushing against the other. The solver above shows this as a sign change in the equation rather than a different formula: an opposing source enters the sum as −E, and everything downstream follows. Set every source opposing and the current genuinely goes to zero.

Getting the signs right

Pick a direction to walk the loop and stay with it. Crossing a resistor in the direction of current is a drop, so it enters the sum negative. Crossing a source from − to + is a rise, so it enters positive. If you assume a current direction and the answer comes out negative, nothing is wrong — the current simply flows the other way, and the magnitude is still correct.

Learn more → Kirchhoff’s Voltage Law — Learn

Quick experiments

  • Cancel a source and watch the current vanish. Set E₁ = 12 V, then flip its polarity to −. Net EMF falls to zero and so does the current. KVL still holds perfectly at I = 0 A — the sum around the loop is zero because there is nothing driving it.
  • Add a second source that helps. Add E₂ = 6 V with + polarity next to a 12 V E₁. Net EMF becomes 18 V and the current rises accordingly — two sources in the same direction simply add.
  • Add a second source that fights. Now set that same E₂ to − polarity. Net EMF drops to 6 V. This is a battery being charged by a larger supply, and the sign in the KVL equation is the whole story.
  • Confirm the drops always sum to the net EMF. Add a third resistor and give the three wildly different values — say 18 Ω, 1 Ω and 1 Ω. The drops are lopsided but they still add to exactly the net EMF. KVL does not care how many elements share the loop.
  • Make one resistor take almost everything. Set R₁ = 18 Ω beside a 1 Ω R₂. Nearly the whole source voltage appears across R₁, because in series the largest resistance takes the largest share. This is a voltage divider seen through KVL.

Formula reference

Kirchhoff's Voltage Law
loopV=0\sum_{loop} V = 0

Every voltage around a closed loop, with sign, sums to zero.

Written as sources and drops
E=IR\sum E = \sum I R

Net driving EMF equals the total of the resistive drops.

Net EMF with opposing sources
Enet=E1±E2±E3E_{net} = E_1 \pm E_2 \pm E_3

Plus when aiding, minus when opposing.

Loop current
I=EnetR1+R2++RnI = \frac{E_{net}}{R_1 + R_2 + \cdots + R_n}

One current everywhere in a single loop.

Drop across one resistor
Vn=I×RnV_n = I \times R_n

Ohm's Law applied to each element in turn.

SymbolMeaningUnit
EESource EMFV
EnetE_{net}Net driving EMF after signsV
IILoop currentA
VnV_nVoltage drop across one resistorV

Common mistakes

  • Adding all the sources regardless of polarity.

    A source wired against the loop direction subtracts. Two 6 V cells nose-to-nose give 0 V of net drive, not 12 V. Decide a loop direction first, then assign each source a sign relative to it.

  • Changing loop direction partway round.

    The signs are only consistent if you walk the whole loop one way. Pick clockwise or anticlockwise at the start and commit — swapping midway double-counts some elements and cancels others.

  • Panicking when the current comes out negative.

    That is a valid answer. It means the real current flows opposite to the direction you assumed; the magnitude is right. Reversing your assumption and re-solving gives the same number with a positive sign.

  • Treating a resistor's drop as fixed regardless of current.

    A resistor has no voltage across it until current flows. Its drop is I × R, so it changes the moment anything else in the loop changes. Only sources hold their voltage independently.

  • Applying KVL to a path that is not actually closed.

    The law is about closed loops. If your path starts and ends at different points you are computing a potential difference, not applying KVL — and there is no reason for that to be zero.

Frequently asked questions

What is Kirchhoff's Voltage Law?

The sum of all voltages around any closed loop is zero. It is conservation of energy for a circuit: a charge taken all the way round gains exactly as much energy from the sources as it loses in the resistors.

How do I know whether a source adds or subtracts?

Choose a direction to walk the loop and stay with it. A source crossed from minus to plus is a rise and enters the sum positive; one crossed the other way opposes the loop and enters negative. Two equal sources wired against each other give zero net drive.

What does it mean if my current comes out negative?

Only that the real current flows opposite to the direction you assumed. The magnitude is correct. Assumed directions are bookkeeping, so you do not have to guess right, only stay consistent once you have guessed.

Does KVL still work if there are no sources?

Yes. With no driving EMF the current is zero, every resistor drop is zero, and the sum around the loop is still zero. The law is satisfied trivially rather than violated.

Related tools

Browse the full circuit toolkit or start a guided lesson in topics.

Share