Saved

Press the star next to a tool's name to save it.

All my tools

Kirchhoff's Laws Calculator

This Kirchhoff's laws calculator solves a circuit with two voltage sources and three resistors. Enter the two voltages and the three resistances and it finds the current in each branch and the voltage across the shared resistor.

Restored your last values ·

V
V
Ω
Ω
Ω

Source V1 and resistor R1 form the left branch, V2 and R2 the right branch, and R3 is the shared middle branch. Currents I1 and I2 flow out of the sources; a negative answer means the current runs the other way.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter both voltages and all three resistances to solve the circuit.

See full result

What this Kirchhoff's laws calculator solves

This Kirchhoff's laws calculator handles the classic two-loop circuit found in most textbooks. Two voltage sources, each in series with its own resistor, are joined by a third resistor that both loops share. Kirchhoff's two laws are enough to find every current in it.

Kirchhoff's current law says the current entering a junction equals the current leaving it, or in other words the algebraic sum of currents at a point is zero. [1] Kirchhoff's voltage law says the directed sum of the voltages around any closed loop is zero. [1] Together they turn a circuit into a small set of linear equations.

How to use it

  1. Enter source V1 and resistor R1. They make the left branch.
  2. Enter source V2 and resistor R2. They make the right branch.
  3. Enter the shared resistor R3 that connects the two branches.
  4. Press Calculate to see I1, I2, I3 and the voltage across R3.

Both sources are drawn so that they push current up into the junction through R1 and R2, and the middle current I3 flows down through R3. If a source is wired the other way round, enter its voltage as a negative number.

The equations behind the answer

Label the three branch currents I1, I2 and I3, each with an assumed direction. A negative solved value simply means the real current runs against that arrow. [1] The node rule gives one equation and the two loops give two more.

  • Junction: I3 = I1 + I2.
  • Left loop: V1 = I1 × R1 + I3 × R3.
  • Right loop: V2 = I2 × R2 + I3 × R3.

Substituting I3 into the loop equations leaves two equations in I1 and I2. With D = (R1 + R3)(R2 + R3) − R3², the solution is I1 = (V1(R2 + R3) − V2 × R3) / D and I2 = (V2(R1 + R3) − V1 × R3) / D. This algebra is our own working from the two laws. The calculator then adds I1 and I2 to get I3.

Worked example

Let V1 = 12 V, V2 = 6 V, R1 = 10 Ω, R2 = 20 Ω and R3 = 30 Ω.

StepWorkingResult
D(10 + 30)(20 + 30) − 30²1,100
I1(12 × 50 − 6 × 30) / 1,1000.38182 A
I2(6 × 40 − 12 × 30) / 1,100−0.10909 A
I30.38182 + (−0.10909)0.27273 A
Voltage across R30.27273 × 308.1818 V

I2 is negative, so the 6 V source is actually being charged by the stronger 12 V source. The loop check confirms it: I1 × R1 + I3 × R3 is 3.818 + 8.182 = 12 V, matching V1, and I2 × R2 + I3 × R3 is −2.182 + 8.182 = 6 V, matching V2.

Reading the sign of a current

The sign tells you direction, not size. A positive value means the current flows the way the diagram arrow points. A negative value means it flows the opposite way. This is normal in circuit analysis and does not mean you made a mistake. In the example, the second battery receives current instead of supplying it, which is common when two batteries of different voltage are connected in parallel.

Common mistakes

  • Putting a source in backwards. Enter the voltage as negative if its polarity is reversed compared with the diagram.
  • Leaving out the internal resistance of a battery when it matters. Add it to the branch resistor.
  • Treating R3 as part of only one loop. It belongs to both loops, which is why it appears in both equations.
  • Entering all resistances as zero. The system then has no single answer and the calculator reports an error.
  • Mixing kilo-ohms with ohms. Use ohms in every box, or kilo-ohms in all three.

When to use something else

This tool covers one standard circuit shape. Larger networks with more loops need a matrix method such as mesh or nodal analysis. For plain series and parallel resistor combinations, a resistor combination calculator is quicker, and for a single resistor the basic relation V = I × R is enough.

Checking your answer by hand

After the calculator returns the currents, always test them against the loops. Multiply each current by its resistor, add the drops around a loop and compare with the source. The calculator prints this check for you, and both sums should match the source voltages to within rounding. If they do not, one of the inputs was probably typed in the wrong box.

You can also check the power. The power delivered by each source equals its voltage times its current, and the total must equal the heat in the three resistors. A source with a negative current is absorbing power, which is the charging case seen in the example.

Where this circuit shows up

  • Two batteries of different charge connected in parallel to one load.
  • A bridge or ladder section that has been reduced to two loops by a textbook.
  • A sensor and a reference supply feeding a shared resistor in a measuring circuit.
  • Exam questions that ask for branch currents, which makes this a quick way to confirm a hand solution.

Because the method is general, once you understand these three equations you can set up larger circuits yourself. Each extra loop adds one more voltage equation and each extra junction adds one more current equation. Solve them together as a linear system.

What next

Use this often? Add Kirchhoff's to your Home screen.

Frequently asked questions

What is Kirchhoff's current law?

The current entering any junction equals the current leaving it. For the three branches here that gives I3 = I1 + I2.

What is Kirchhoff's voltage law?

The directed sum of the voltages around any closed loop is zero. For each loop the source voltage equals the voltage drops across the resistors in that loop.

What does a negative current mean?

It means the real current flows against the arrow you assumed. The size is still correct.

Can this Kirchhoff's laws calculator handle more than two loops?

No. It solves one fixed circuit with two sources and three resistors. Bigger circuits need mesh or nodal analysis with more equations.

Does it include battery internal resistance?

Not separately. Add the internal resistance to the resistor in the same branch as the battery.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools