Kirchhoff's Laws Calculator

Unknown branch current-4 A
Sum of known branch currents4 A
Unknown branch directionOut of the junction
Law appliedKirchhoff's current law (KCL)
How this was calculated
  1. Kirchhoff's current law (the junction rule) says charge cannot pile up at a node: the signed sum of every branch current at the junction is zero.
  2. Adding your three known branches with entering currents positive: 2 + 3 + -1 = 4 A.
  3. For the sum to be zero the unknown branch must carry -4 A - the negative of the known sum. A positive result flows into the junction, a negative one flows out.
  4. So the fourth branch carries 4.0 A out of the junction. The junction rule never cares about resistances or voltages - only that what flows in flows out.

This Kirchhoff's law calculator applies the current law at junctions and the voltage law around loops, then reports the missing value with its sign. At a junction fed by 2 A and 3 A entering and 1 A leaving, the fourth branch must carry -4 A, meaning 4 A flows out. When 5 A enters a junction and 2 A and 4 A leave, the unknown branch supplies 1 A into the junction. Around a loop with a 12 V source opposing a 6 V source and known drops of 2.5 V and 1.5 V, the unknown component drops exactly 2 V. Enter the known currents or voltages, and the calculator returns the unknown quantity in the correct direction or polarity.

The method is the accepted standard because Kirchhoff's current law is charge conservation and the voltage law is energy conservation; neither mentions resistance. That makes the two laws reliable for any circuit, whatever the components. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow each calculation and check it against the numbers above.

Worked examples

Junction: branches of 2 A, 3 A in and 1 A out

(Junction - Kirchhoff's current law (KCL) · 2 A · 3 A · -1 A · 12 V · 0 V · 0 V · 0 V)

Unknown branch current-4 A
Sum of known branch currents4 A
Unknown branch directionOut of the junction
Law appliedKirchhoff's current law (KCL)

Loop: 12 V source against 6 V, drops of 2.5 V and 1.5 V

(Loop - Kirchhoff's voltage law (KVL) · 0 A · 0 A · 0 A · 12 V · -6 V · 2.5 V · 1.5 V)

Unknown voltage drop2 V
Total source rises6 V
Sum of known drops4 V
Law appliedKirchhoff's voltage law (KVL)

Junction: 5 A in, 2 A and 4 A out

(Junction - Kirchhoff's current law (KCL) · 5 A · -2 A · -4 A · 12 V · 0 V · 0 V · 0 V)

Unknown branch current1 A
Sum of known branch currents-1 A
Unknown branch directionInto the junction
Law appliedKirchhoff's current law (KCL)

Kirchhoff's current law: the junction rule

Kirchhoff's current law (KCL) governs what happens at a junction, the point where three or more branches meet. The rule is simple: the total current entering the junction equals the total current leaving it. Another way to say the same thing is that the algebraic sum of all currents at a junction is zero. That is the form most kirchhoff's law calculators use, because it turns a picture of a circuit into a single equation you can solve for the one branch you do not know.

To make the algebra work, you need a sign convention. Pick one direction as positive and apply it consistently to every branch at the junction. A common choice is to count current flowing into the junction as positive and current flowing out as negative. With that convention, each branch contributes a signed number, and the sum of those numbers must be zero. The convention itself is arbitrary — you could reverse it and get the same physical answer — but you must not mix conventions within one junction.

Work through a concrete case. Suppose a junction is fed by two branches carrying 2 A and 3 A, both entering. A third branch carries 1 A leaving. The fourth branch is unknown. Under the in-positive, out-negative convention, the entering currents contribute +2 A and +3 A, and the leaving current contributes -1 A. Let the unknown branch carry I. The junction equation is +2 + 3 - 1 + I = 0, which gives 4 + I = 0, so I = -4 A. The negative sign means the unknown branch is not entering the junction as assumed — it carries 4 A flowing out. Checking the result: 2 A plus 3 A entering equals 5 A, and 1 A plus 4 A leaving equals 5 A, so the junction balances.

A second example shows the sign convention working in the other direction. When 5 A enters a junction and 2 A and 4 A leave, the unknown branch supplies 1 A into the junction. Entering totals 5 A plus 1 A, or 6 A; leaving totals 2 A plus 4 A, or 6 A. The numbers match, and the positive sign on the unknown confirms that it really does feed current in.

Keep in mind what the law actually says. Kirchhoff's current law is charge conservation: charge does not pile up at a junction, so whatever flows in must flow out. The voltage law is energy conservation. Neither law mentions resistance, which is why KCL holds no matter what components sit on the branches — resistors, sources, or anything else. That independence is what makes the junction rule so reliable for setting up equations before you know anything about the parts.

  • Choose a sign convention: current into the junction positive, current out negative.
  • Write one signed term per branch and set the sum to zero.
  • Solve for the unknown; a negative result means the real current flows opposite to your assumed direction.
  • Check by confirming that total current in equals total current out.
For the 2 A and 3 A entering and 1 A leaving junction, the equation +2 + 3 - 1 + I = 0 gives I = -4 A: the fourth branch carries 4 A flowing out.

Kirchhoff's voltage law: the loop rule

Kirchhoff's voltage law, often called the loop rule, says that if you walk all the way around any closed loop in a circuit and add up every voltage change you meet, the total comes to zero. That sounds abstract, but it is really just energy conservation in disguise: a charge that travels around a loop and returns to its starting point must come back to the same energy level it left with. Every rise it gains along the way has to be balanced by a drop somewhere else. A kirchhoff's law calculator applies this bookkeeping so you don't have to track the signs by hand.

The practical skill is keeping rises and drops straight. Pick a direction to walk the loop, then treat a voltage rise (going from the negative terminal of a source toward its positive terminal) as positive and a drop (across a resistor or other component in the direction of current) as negative, or the reverse, as long as you stay consistent. With that convention, the sum of all the terms equals zero, and whatever is left over belongs to the unknown component. The law itself never mentions resistance; it only concerns energy, just as Kirchhoff's current law is charge conservation and never mentions resistance either.

A worked case makes the loop rule concrete. Suppose a loop contains a 12 V source and a 6 V source wired so they oppose each other, plus known drops of 2.5 V and 1.5 V across two components, with one component still unknown. Walking the loop, the 12 V source gives a rise of 12 V and the opposing 6 V source gives a rise of -6 V, for a net of 6 V. Against that, the known drops total 2.5 V + 1.5 V = 4 V. The difference, 6 V - 4 V, leaves exactly 2 V for the unknown component. That 2 V is not a guess or an approximation; it is forced by the requirement that the whole loop sum to zero.

The same sign discipline carries over to junctions under Kirchhoff's current law, and seeing both side by side helps. At a junction fed by 2 A and 3 A entering while 1 A leaves, the fourth branch must carry -4 A, which simply means 4 A flowing out. In another junction where 5 A enters and 2 A and 4 A leave, the unknown branch supplies 1 A into the junction. In every case the unknown is whatever makes the totals balance, and the sign tells you the direction.

  • Choose a loop direction and keep it for the entire walk.
  • Count a source rise as positive and an opposing source as a negative rise (or the reverse, consistently).
  • Add the known drops, subtract them from the net rise, and the remainder is the unknown voltage.
  • Let the sign of the answer tell you the direction of the unknown current or voltage.
Loop rule in one line: rises minus drops equals zero, so the unknown component gets exactly what is left over.

Sign conventions that keep you out of trouble

The single biggest source of wrong answers in a kirchhoff's law calculator is not the arithmetic — it is the direction you assumed before you typed anything in. Kirchhoff's laws themselves do not care which way you guess. Current law is charge conservation, and voltage law is energy conservation; neither mentions resistance, and neither cares about your arrows. So pick a direction for every unknown, enter the numbers consistently with those arrows, and let the sign of the result tell you whether your guess was right. A negative answer is information, not an error message.

For junctions, the cleanest habit is to decide up front that all entering currents are positive and all leaving currents are negative, then add everything to zero. Take a junction fed by 2 A and 3 A entering and 1 A leaving. Written with that convention, the three known terms are +2, +3 and -1, so the fourth branch must carry -4 A. That minus sign simply means the current flows the other way from the direction you assigned: 4 A flowing out. The same bookkeeping works in reverse. When 5 A enters a junction and 2 A and 4 A leave, the known terms sum to +5, -2 and -4, which is -1, so the unknown branch supplies 1 A into the junction. In both cases you entered opposing flows with opposite signs and read the answer as a direction.

Loops follow the same logic with voltages. Walk the loop in one chosen direction and give each source and each drop a sign according to whether it pushes with or against that walk. In a loop with a 12 V source opposing a 6 V source and known drops of 2.5 V and 1.5 V, the opposing source and the drops subtract from the larger source, and the unknown component drops exactly 2 V. If you had assigned the unknown drop the opposite sign, you would have gotten -2 V and learned the same thing: the actual polarity is the reverse of your arrow.

The practical rule is to stay consistent rather than to guess correctly. Choose your reference directions once, enter every opposing source and every leaving current with the sign your convention demands, and do not flip signs mid-calculation to make a number look nicer. When a result comes back negative, translate it into words — "4 A out" instead of "-4 A in" — and move on. That habit keeps opposing sources and shared junction branches from turning into sign errors, and it is the difference between a calculator that confirms your thinking and one that hides it.

A quick checklist before you trust any result: did every branch get a direction, did opposing sources get opposite signs, and did you write leaving currents as negatives? If all three are yes, a negative answer is a direction, not a mistake.

A negative result is not a failure — it means the real current or voltage points opposite to the arrow you chose. Restate it in words and keep going.

From two laws to whole networks

A single junction or a single loop is easy to solve by hand, but real circuits are networks of many junctions and many loops. What makes Kirchhoff's laws so powerful is that they apply at every junction and around every loop, so a handful of simple statements generates a complete system of equations for the whole circuit. A kirchhoff's law calculator automates that bookkeeping, but understanding how the equations arise helps you set up problems correctly and check the answers.

Kirchhoff's current law, which is charge conservation, gives one equation per junction: the currents entering must equal the currents leaving. Neither law mentions resistance, so these equations hold no matter what components sit on each branch. At a junction fed by 2 A and 3 A entering and 1 A leaving, the fourth branch must carry -4 A — that is, 4 A flowing out. The sign simply means the assumed direction was opposite to the actual flow. In the same way, when 5 A enters a junction and 2 A and 4 A leave, the unknown branch supplies 1 A into the junction. Each junction adds one such balance, and together they pin down every unknown current.

Kirchhoff's voltage law, which is energy conservation, gives one equation per loop: the sum of voltage rises and drops around a closed path is zero. In a loop with a 12 V source opposing a 6 V source and known drops of 2.5 V and 1.5 V, the unknown component drops exactly 2 V. Again, no resistance value is needed — the law only tracks energy around the path. Writing one loop equation for each independent loop in the network produces a second family of equations.

Put the junction equations and the loop equations together and you have a solvable system: enough independent equations to find every unknown current and voltage. Nodal analysis leans on the current law, writing one balance at each node in terms of node voltages; mesh analysis leans on the voltage law, writing one loop sum for each mesh current. Circuit simulators use exactly these principles, assembling the same equation sets and solving them numerically for networks far too large to handle by hand. Whether you work by hand or with a kirchhoff's law calculator, the structure is the same: junctions give current balances, loops give voltage balances, and the solution follows.

Neither law mentions resistance — KCL is charge conservation, KVL is energy conservation, which is why they hold for any component.

FAQs

What is Kirchhoff's current law?

Kirchhoff's current law (KCL) says the signed sum of currents at any junction is zero. Charge cannot accumulate at a node, so whatever flows in must flow out. In practice, you assign a sign to each current based on its direction, add them all, and set the total to zero. This lets you relate the currents meeting at a node.

What is Kirchhoff's voltage law?

Kirchhoff's voltage law (KVL) says the signed sum of source rises and component drops around any closed loop is zero. Going around a loop, you add voltage rises from sources and subtract voltage drops across components. The total comes to zero. This lets you relate the voltages in a loop and solve for an unknown value.

How do I find an unknown branch current?

Add the known signed branch currents and negate the result. For example, if the known currents are 2, 3, and -1, the sum is 2 + 3 - 1 = 4, so the unknown branch is -4 A. That means the current flows out of the junction rather than into it.

What does a negative current answer mean?

A negative current means the current flows opposite to the direction you assumed. So -4 A into the junction is really 4 A out of it. The magnitude is correct; only the direction is reversed from your guess. You can keep the negative sign or restate the current with the opposite direction, as long as you are consistent.

How do opposing batteries enter a KVL loop?

With a negative sign. If a 12 V source opposes a 6 V source, the opposing source counts against the other, giving total rises of 6 V, as in the loop example. When you go around the loop, assign each source a sign based on whether it pushes current with or against your chosen direction.

Do Kirchhoff's laws work for AC?

Yes. KCL and KVL hold instantaneously for AC too, so they apply at every moment in the cycle. In steady-state analysis, currents and voltages are read as phasors, which carry both magnitude and phase. The same junction and loop rules then apply to those phasors.

Sources

Related calculators

Ohm's Law Calculator
Solve for voltage, current, resistance or power from any two known values — V = IR and P = VI, with all four quantities shown.
Voltage Divider Calculator
Output voltage of a two-resistor voltage divider, the current through it, power in each resistor, and the output impedance your load will see.
RC Filter Calculator
Cutoff frequency, gain and phase of a first-order RC low-pass or high-pass filter.