Skip to content
Omnikalc

Mesh current analysis calculator for a two-loop circuit with Kirchhoff’s voltage law: loop currents and power

Enter three resistors and two voltage sources to solve a two-loop circuit with a shared resistor and get the mesh currents, the current in the shared branch and the power.

Updated on
Your inputs
Ω

Value out of range

Ω

Value out of range

Ω

Value out of range

V

Value out of range

V

Value out of range

Results

Mesh current I1 (left loop)

70.9 mA

Mesh current I2 (right loop)
46.4 mA
Current through the shared resistor R2 (I1 − I2)
24.5 mA
Power dissipated in R2
120.5 mW
Total power supplied by the sources
1,268.2 mW

Mesh current analysis solves a circuit with the loop currents and Kirchhoff’s voltage law. The mesh current analysis calculator solves a two-loop circuit with a shared resistor and gives the mesh currents, the current in the shared branch, its power and the total power supplied by the sources.

How the calculation works

  • Enter the three resistors: R1 in the left branch, R2 in the middle branch shared by the two loops, and R3 in the right branch.
  • Enter the voltages of the two sources, V1 in the left loop and V2 in the right loop. Both are taken as pushing a clockwise current in their own loop.
  • The calculator writes Kirchhoff’s voltage law for the two meshes, (R1 + R2) I1 − R2 I2 = V1 and (R2 + R3) I2 − R2 I1 = V2, and solves the system with Cramer’s rule.
  • It gives the mesh currents, the current in the shared resistor, its power and the total power supplied.

Example

With R1 = 100 Ω, R2 = 200 Ω, R3 = 300 Ω, V1 = 12 V and V2 = 9 V, the determinant is 300 × 500 − 200² = 110,000. The mesh currents are I1 = 70.9 mA and I2 = 46.4 mA. The current in R2 is I1 − I2 = 24.5 mA, and R2 dissipates 120.5 mW. The sources supply 1,268.2 mW in total.

Why it matters

The calculator helps electronics students, technicians and makers to check their hand calculations of a two-loop circuit, to see how currents split in a shared branch and to estimate the power in each part. It is also a good way to learn the method before moving to larger circuits.

Good to know

The calculator is for a circuit with two meshes and ideal sources, with sources that push current clockwise in each loop (a source turned the other way is entered as a negative voltage). Circuits with more meshes, with current sources, with dependent sources or with reactive elements need a larger system. Resistor tolerances and the internal resistance of the sources are not included.

The Ohm’s law calculator gives the basic relations of voltage, current and resistance, the voltage divider calculator handles a series pair, the Thevenin equivalent calculator reduces a network seen from two terminals, and the Wheatstone bridge calculator solves a balanced bridge.

Frequently asked questions

What is mesh current analysis?

Mesh current analysis is a method to solve circuits. A current is assigned to each independent loop (mesh), and Kirchhoff’s voltage law is written for each loop: the sum of the voltage rises equals the sum of the voltage drops. The result is a system of linear equations whose unknowns are the mesh currents, and a resistor shared by two loops carries the difference of the two currents.

What does the current in the shared resistor tell me?

The current in the shared resistor R2 is I1 − I2. A positive value means the current flows in the direction of I1 through R2, and a negative value means it flows the other way. If the value is zero, the two loops do not interact, as in a balanced circuit.

Why is Cramer’s rule used?

Two mesh equations with two unknowns form a small linear system, and Cramer’s rule gives the answer with determinants. The determinant is (R1 + R2)(R2 + R3) − R2², which is always positive when all the resistors are positive, so there is always one solution.

Can I use it for a circuit with a different drawing?

Yes, if the circuit has two meshes with one shared branch. Orient each source so that it pushes current clockwise in its loop. If a real source is turned the other way, enter its voltage as a negative number.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.