Table of Contents
Why Mesh (Loop) Current Analysis Matters ♻️
Mesh current analysis is a systematic method to find currents in planar circuits that have many resistors and sources interconnected. Instead of solving for every branch current individually, you define special “mesh currents” that circulate around loops of the circuit. You then write equations based on voltage drops around each loop and solve them. This reduces the amount of work compared with writing arbitrary equations for every branch.
This method uses the same physical laws you already know, especially Kirchhoff’s Voltage Law (KVL) and Ohm’s law, but organizes them in a very structured way. It is especially helpful when a circuit has many elements arranged in loops and you want a mechanical, repeatable procedure to obtain all currents.
Mesh analysis is usually introduced for planar circuits. A planar circuit is one that can be drawn on a flat surface without crossing wires. Many basic textbook circuits are planar, so mesh analysis applies well to them.
Key idea: Mesh current analysis defines one current variable per independent loop region (mesh) of a planar circuit and uses KVL around each mesh to form a solvable system of equations.
Meshes, Loops, and Mesh Currents 🔁
A loop is any closed path through a circuit. A mesh is a special type of loop. It is a loop that does not contain any other loops inside it. You can think of a mesh as the smallest enclosed window or face in the circuit diagram.
For mesh analysis, you assign a mesh current to each mesh. This mesh current is an imagined current that circulates around the perimeter of that mesh. You do not assume it is the actual physical branch current. Instead, the physical current in any branch is obtained later from one or more mesh currents.
In most textbooks, all mesh currents are chosen to flow in the same direction, usually clockwise. This is not a physical requirement, it is a convention that makes sign handling less confusing.
Rule: Define one mesh current for each mesh, usually clockwise, and treat shared elements between meshes as carrying the algebraic difference of the corresponding mesh currents.
General Procedure for Mesh Current Analysis 🧭
Mesh analysis follows a clear sequence of steps. Once you know this sequence, you can use it for almost any planar circuit with resistors and sources.
- Draw a clear circuit diagram
Ensure all elements and their values are visible. Use a neat layout so that the meshes are obvious. Label all components and polarities of sources. - Identify all meshes
Look for the smallest closed regions in the circuit. Each such region is a mesh. Label them mesh 1, mesh 2, and so on. - Assign mesh currents
For each mesh, assign a mesh current variable, such as $I_1, I_2, I_3$. Choose a consistent direction, commonly clockwise for all meshes. Indicate these currents as arrows around each mesh. - Express element voltages with Ohm’s law
For any resistor with current $I$ and resistance $R$, you express the voltage as $V = IR$. For elements that are shared between two meshes, the current through the resistor is the difference of the mesh currents. For example, if mesh 1 and mesh 2 both pass through a resistor $R$ in the same physical direction, the resistor current is $I_1 - I_2$ or $I_2 - I_1$, depending on which direction you pick. - Apply KVL to each mesh
For each mesh, write a KVL equation. Traverse the mesh in the direction of its mesh current. Add up voltage rises and drops around that loop, setting the sum equal to zero. Use the assumed directions of currents and polarities of sources to assign plus or minus signs. This step turns the circuit into a set of simultaneous linear equations in the mesh currents. - Solve the system of equations
Use algebraic methods to solve for the mesh currents. Basic techniques include substitution, elimination, or matrix methods. Once you have numeric values for all mesh currents, you can calculate actual branch currents and voltages as needed. - Interpret the results
If a mesh current result is negative, it simply means the actual direction of current is opposite to the direction you assumed. The magnitude is still correct. From the mesh currents you can find any branch current and voltage in the circuit.
Standard mesh procedure:
- Label meshes and assign mesh currents.
- Apply KVL around each mesh, using Ohm’s law for resistors.
- Solve the resulting simultaneous equations for mesh currents.
Sign Conventions and Shared Elements ⚖️
A crucial part of mesh analysis is how you handle elements that are shared between two meshes. For elements that belong to only one mesh, the voltage drop in that element is determined directly by that mesh current. For shared elements, the current is the algebraic difference of the mesh currents. This is because both mesh currents try to flow through the same component.
Consider a resistor $R$ that lies between mesh 1 and mesh 2. Suppose both mesh currents $I_1$ and $I_2$ are defined clockwise and they flow through the shared resistor in opposite physical directions. The actual current through the resistor is then $I_1 - I_2$ if you look at it from the perspective of mesh 1, or $I_2 - I_1$ from the perspective of mesh 2. The voltage drop across the resistor, looking in the direction of $I_1$, is then $R(I_1 - I_2)$.
When writing the KVL equation for mesh 1, you will include a term like $R(I_1 - I_2)$. In the KVL equation for mesh 2, the same resistor appears as $R(I_2 - I_1)$. Notice the symmetry. This pattern is very common. It leads to systems of equations where each diagonal term is the sum of resistances that belong to that mesh, and off diagonal terms often appear as negative sums of shared resistances.
A typical structure for a two mesh system looks like this:
$$
\begin{cases}
(R_{11}) I_1 - (R_s) I_2 = V_1 \\
- (R_s) I_1 + (R_{22}) I_2 = V_2
\end{cases}
$$
Here $R_{11}$ is the total resistance in mesh 1, $R_{22}$ is the total resistance in mesh 2, and $R_s$ is the resistance shared between meshes 1 and 2. $V_1$ and $V_2$ are the net source voltages around each mesh after you account for the directions.
Shared element rule: For a resistor shared by two meshes, the voltage across it in mesh $k$ is $R(I_k - I_m)$, where $I_k$ and $I_m$ are the mesh currents of the two meshes sharing that resistor.
Independent Voltage Sources in Mesh Analysis 🔋
Voltage sources usually fit naturally into mesh equations. When you traverse a mesh that contains an independent voltage source, you simply include the voltage of the source with the correct sign based on your travel direction.
If you go from the negative terminal to the positive terminal of a source, you record a voltage rise, which is a positive term in KVL if you choose that sign convention. If you go from the positive terminal to the negative terminal, you record a drop, which you write as a negative term.
When a voltage source lies between a mesh and a reference node, it only belongs to one mesh. You treat that mesh just like any other. In contrast, if a voltage source is shared by two meshes, it forms the boundary between them, and you handle that case slightly differently, which leads to what is called a supermesh. The idea of a supermesh is described in more detail later in this chapter.
For a simple mesh that contains one resistor and one voltage source, the KVL equation might look like this if you traverse in the direction of the mesh current:
$$
- V_s + R I_1 = 0
$$
Here you encounter a drop across the voltage source (positive to negative) then a drop across the resistor. The signs depend on how you trace the loop relative to the source polarity and current direction.
Rule for voltage sources: In a mesh equation, include the voltage of each source as a rise or drop according to its polarity and the direction in which you traverse the mesh.
Handling Shared Voltage Sources: The Supermesh Concept 🌐
A special case arises when an independent voltage source is shared between two adjacent meshes. In that situation, if you try to write a KVL equation separately around each mesh, you run into a difficulty. The voltage source does not have a direct resistor to relate its voltage to the mesh current through Ohm’s law. Also, the current through the voltage source is usually unknown.
Instead of forcing KVL around each mesh that touches the shared source, you form what is called a supermesh. A supermesh is created by combining the two meshes that share the voltage source into one larger loop that avoids passing through the voltage source itself. You then write KVL around this larger loop, going around both meshes together and skipping the branch with the voltage source.
The supermesh procedure goes like this. First, you temporarily imagine the voltage source branch is removed, so the two meshes are merged into a single loop. Then you write one KVL equation around that combined loop, including all resistors and other elements but not passing through the voltage source. This gives an equation that relates the mesh currents on either side of the source.
However, you still need one more equation that includes the voltage source. That second equation comes from the relationship imposed by the voltage source itself. The voltage source relates the node voltages on either side. This can often be rephrased as a relationship between the two mesh currents or between mesh voltages, depending on how the circuit looks.
In many textbook examples, the second equation for a supermesh takes a simple form that expresses the difference between the currents or voltages in the meshes that share the source. These two equations together allow you to solve for the two mesh currents around the supermesh.
Supermesh rule: When a current path between two meshes contains only an ideal voltage source (and no series resistance), form a supermesh around both meshes, write KVL for the combined loop, and use the voltage source equation as an additional relationship.
Current Sources and When Mesh Analysis Becomes Awkward 💧
Mesh current analysis is most straightforward when circuits contain resistors and voltage sources. Current sources can still be handled, but they sometimes make the method less convenient.
If a current source lies at the outer boundary of the circuit and is part of just one mesh, you can incorporate it by writing a simple relationship. The mesh current that flows through the branch with the current source is then known directly. Instead of writing a KVL loop equation for that mesh, you write an equation that sets the mesh current equal to the current source value, possibly with a sign change depending on direction.
If a current source lies between two meshes and is shared by both, you again consider a special structure similar to a supermesh. In this case you form an auxiliary equation based on the known current source value. That equation relates the two mesh currents directly. Then you may create a supermesh around the surrounding resistive loops and write KVL for that supermesh, excluding the branch with the current source. The current source thus gives a relationship between mesh currents, while KVL still applies around the remaining loop.
However, there are many circuits with several current sources where node voltage analysis is more natural. When there are many current sources connected between nodes, nodal analysis usually gives simpler equations. Mesh analysis is still valid, but can be algebraically less friendly.
Guideline: If a circuit has many current sources and relatively few voltage sources, node voltage analysis is often simpler than mesh current analysis.
Structure of Mesh Equations and Matrix Form 🧮
When you write mesh equations for a circuit that contains only resistors and independent voltage sources, the equations have a very regular structure. Each KVL equation for a mesh can be written as a linear combination of all mesh currents. The coefficient of each mesh current is built from the resistances surrounding that mesh.
If you have $n$ meshes with mesh currents $I_1, I_2, \dots, I_n$, the system often looks like this:
$$
\begin{aligned}
a_{11} I_1 + a_{12} I_2 + \dots + a_{1n} I_n &= V_1 \\
a_{21} I_1 + a_{22} I_2 + \dots + a_{2n} I_n &= V_2 \\
\vdots \\
a_{n1} I_1 + a_{n2} I_2 + \dots + a_{nn} I_n &= V_n
\end{aligned}
$$
Here each $a_{kk}$ on the diagonal is the sum of all resistances in mesh $k$, and each off diagonal $a_{km}$ is the negative of the sum of resistances shared between mesh $k$ and mesh $m$. The right hand side $V_k$ is the algebraic sum of independent source voltages around mesh $k$, considering their polarities and orientation with respect to the mesh current direction.
You can write this system compactly in matrix form as:
$$
\mathbf{A} \mathbf{I} = \mathbf{V}
$$
with
$$
\mathbf{A} =
\begin{bmatrix}
a_{11} & a_{12} & \dots & a_{1n} \\
a_{21} & a_{22} & \dots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & \dots & a_{nn}
\end{bmatrix},
\quad
\mathbf{I} =
\begin{bmatrix}
I_1 \\ I_2 \\ \vdots \\ I_n
\end{bmatrix},
\quad
\mathbf{V} =
\begin{bmatrix}
V_1 \\ V_2 \\ \vdots \\ V_n
\end{bmatrix}.
$$
This structure makes mesh analysis especially suitable for computer based circuit solvers, because it produces a well defined linear algebra problem.
A simple summary of the pattern for a purely resistive planar circuit with voltage sources is shown here:
| Coefficient type | Meaning in mesh equation |
|---|---|
| $a_{kk}$ (diagonal) | Sum of all resistances surrounding mesh $k$ |
| $a_{km}$, $k \neq m$ | Negative sum of resistances shared by meshes $k$ and $m$ |
| $V_k$ | Algebraic sum of voltage sources in mesh $k$ with chosen orientation |
Pattern: In mesh equations for resistive circuits, diagonal terms are sums of resistances around a mesh, and off diagonal terms are negative sums of shared resistances between meshes.
Choosing Between Mesh and Node Analysis 🔀
Both mesh current analysis and node voltage analysis are systematic tools for solving circuits. They are based on the same physical principles but use different sets of variables. Mesh analysis uses mesh currents around loops in planar circuits, while node analysis uses node voltages with respect to a reference node.
It is useful to know when mesh analysis is likely to be more efficient. If a circuit is planar and the number of meshes is smaller than the number of non reference nodes, mesh analysis can lead to fewer equations. This often happens in circuits where many components are arranged in obvious loops and most sources are voltage sources.
On the other hand, if the circuit has many nodes but relatively few loops, or it uses many current sources, node voltage analysis is often better. It is possible to solve any linear circuit with either method, but efficiency and clarity differ.
Guideline: Prefer mesh current analysis when the circuit is planar, has fewer meshes than nodes, and contains mostly voltage sources. Prefer node voltage analysis when there are many current sources or when there are fewer nodes than meshes.
Interpreting Mesh Currents and Finding Branch Quantities 🔍
Mesh currents are mathematical variables that you introduce for solving equations. Once you have solved for all mesh currents, you still need to translate them into actual branch currents and voltages that might be of practical interest.
For branches that belong to only one mesh, the branch current is simply equal to that mesh current, with the direction you originally chose. For shared branches that belong to two meshes, the branch current is the algebraic difference of the two mesh currents. To get the correct direction, you must pay attention to which mesh current direction aligns with the branch orientation.
After you have branch currents, finding branch voltages across resistors follows directly from Ohm’s law: $V = IR$. For voltage sources, the voltages are given by the source values, and branch currents through sources can be obtained from the mesh current expressions.
If one of the mesh currents turns out to be negative, this does not mean anything is wrong. It only means that the actual current flows opposite to the direction you originally assumed for that mesh current. You can always redraw the circuit with corrected arrows if you wish, but as long as you carry the sign correctly in calculations, your results will be consistent.
Interpretation rule: A negative mesh current means the real current flows opposite to the assumed direction, while branch currents are obtained from mesh currents by simple sums or differences depending on which meshes share each branch.
Summary of Mesh Current Analysis 🧾
Mesh current analysis is a loop based technique that uses KVL and Ohm’s law to set up and solve equations for unknown currents in planar circuits. By systematically defining mesh currents, writing KVL around each mesh, and handling shared elements carefully, you can analyze many practical circuits without guessing or trial and error.
The method is particularly powerful when combined with a clear sign convention, the supermesh approach for shared voltage sources, and the ability to recognize when node voltage analysis might be more efficient instead. Mesh analysis becomes an important foundation for more advanced circuit topics, including AC analysis, where similar ideas appear with impedances and phasors instead of simple resistances.