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
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
Every voltage around a closed loop, with sign, sums to zero.
- Written as sources and drops
Net driving EMF equals the total of the resistive drops.
- Net EMF with opposing sources
Plus when aiding, minus when opposing.
- Loop current
One current everywhere in a single loop.
- Drop across one resistor
Ohm's Law applied to each element in turn.
| Symbol | Meaning | Unit |
|---|---|---|
| Source EMF | V | |
| Net driving EMF after signs | V | |
| Loop current | A | |
| Voltage drop across one resistor | V |
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
KCL Node Analyzer
Set branch currents and directions — live KCL equation at a node.
Open →Ohm's Law Calculator
V, I, R, P — any two in, everything out.
Open →Resistor Network Solver
Series, parallel or mixed — wire a resistor network and it solves itself.
Open →Browse the full circuit toolkit or start a guided lesson in topics.