First Year Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Kirchhoff's laws

Kirchhoff’s Current Law (KCL) and Kirchhoff’s Voltage Law (KVL), with node/mesh concepts, assumptions, derivations, formulas, and solved circuits using nodal and mesh analysis.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Kirchhoff’s laws are the foundation for analyzing any electrical circuit, from a small sensor board to a large substation control panel. Engineers use them to find unknown voltages and currents, to check if a design is correct, to simplify networks before using advanced theorems (superposition, Thevenin), and to set up equations for simulation.

Key ideas

  • Node: A point in a circuit where two or more branches connect. All ideal wires between components that are directly connected share the same node (same potential).
  • Reference node (ground): The node chosen as 0 V to measure all other node voltages.
  • Loop: Any closed path in a circuit that does not pass through the same point more than once.
  • Mesh: A loop that contains no other loop within it (a window of a planar circuit).
  • Planar circuit: A circuit that can be drawn on a plane without branches crossing. Many exam problems assume planarity.
  • Passive sign convention: If current enters the positive-labelled terminal of an element, the power absorbed by that element is p = v·i (positive means absorbing).

Exact statements and assumptions:

  • Kirchhoff’s Current Law (KCL): “The algebraic sum of currents at a node is zero.” Equivalently, “The total current entering a node equals the total current leaving the node.”
    • Assumptions: Lumped-circuit model; charge does not accumulate at the node (net charge in the node region is constant). Valid for all circuit frequencies under lumped assumptions; in distributed systems, displacement current keeps charge continuity valid.
    • Common exam form: Assign currents leaving the node as positive; sum equals zero: Σ i_k = 0.
  • Kirchhoff’s Voltage Law (KVL): “The algebraic sum of all voltages around any closed loop is zero.” Equivalently, “The sum of voltage rises equals the sum of voltage drops around a loop.”
    • Assumptions: Lumped-circuit model; electric fields are conservative within the loop region (no time-varying magnetic flux linking the loop, or, if present, include the induced emf in the sum). Valid for dc and ac circuits if induced emfs are accounted for.

Derivations (university style):

  1. Derivation of KCL from conservation of charge (step-by-step)

    • Consider a small region enclosing a circuit node. Let q(t) be the total charge stored in that region and i_in(t) the algebraic sum of currents entering it.
    • By conservation of charge: dq/dt = i_in(t) − i_out(t). If we take currents leaving as positive in the sum at the node, then Σ i_k = − d q_node/dt.
    • In the lumped-circuit model, the node itself is an equipotential point with negligible charge storage (no net accumulation in steady-state or when using displacement current through capacitors as branch currents). Thus d q_node/dt = 0, giving Σ i_k = 0.
    • Conclusion: Total current entering equals total current leaving the node.
  2. Derivation of KVL from a conservative electric field (step-by-step)

    • In electrostatics (no time-varying magnetic fields), the electric field is conservative, so the line integral of E around any closed path is zero: ∮ E·dl = 0.
    • Voltage is the line integral of E between two points. Summing element voltages around a loop is equivalent to the closed-path integral; hence the algebraic sum of voltages is zero: Σ v_k = 0.
    • If a time-varying magnetic flux Φ links the loop, Faraday’s law gives ∮ E·dl = −dΦ/dt. In circuit terms, include the induced emf as a source in the loop equation so that “sum of drops equals sum of rises” still balances.

What to draw (typical exam diagrams):

  • For KCL: Draw a node as a dot with 3–4 branches connected. Label currents i1, i2, i3, i4 with arrows. Show “currents leaving positive” or “entering positive” convention, then write i1 + i2 − i3 − i4 = 0 (based on arrows). Mark the node as V_node.
  • For KVL: Draw a single loop with a voltage source (polarity marked + to −) and two resistors. Mark a clockwise loop current I and indicate element voltage polarities using passive sign convention. Then write +V_source − I·R1 − I·R2 = 0.

Using Kirchhoff’s laws to analyze circuits:

  • Nodal analysis (uses KCL):

    1. Choose a reference node (ground).
    2. Label node voltages V1, V2, … with respect to ground.
    3. At each non-reference node, write KCL: sum of currents leaving (or entering) equals zero. Use Ohm’s law to express each branch current in terms of node voltages.
    4. Solve the simultaneous equations for the node voltages.
    5. Compute any branch current from the node voltages.
    • Notes: With voltage sources between two non-reference nodes, form a supernode and write KCL for the supernode plus one voltage-source constraint equation.
  • Mesh analysis (uses KVL):

    1. For a planar circuit, assign a mesh current in each mesh (usually clockwise).
    2. Write KVL around each mesh. For a resistor in a shared branch, the drop is R·(I_mesh_through − I_other_mesh).
    3. Include source voltages with sign according to the loop direction and source polarity.
    4. Solve the resulting linear equations for the mesh currents.
    • Notes: With current sources in a common branch between two meshes, form a supermesh that encircles both meshes and write an extra constraint using the source current.

Scope and limitations:

  • KCL is exact in lumped circuits; in distributed/high-frequency cases, charge continuity still holds but branch definitions may require transmission-line treatment (outside this topic).
  • KVL is exact when induced emfs are included. If you ignore a time-varying flux that links the loop, KVL in the form Σ drops = 0 is not valid; you must add the induced emf term.

Where this topic connects:

  • Use these laws before applying Network theorems (superposition, Thevenin) or Star–delta transformation. They underpin AC fundamentals (phasors), transient analysis (capacitors and inductors), and machine/transformer equivalent circuits.

Formulas

Σ i_k = 0

  • KCL at any node: algebraic sum of currents i_k at the node is zero. i_k in amperes (A). Applies to lumped circuits; always valid if displacement current is included in branch currents.

Σ v_k = 0

  • KVL around any closed loop: algebraic sum of element voltages v_k is zero. v_k in volts (V). Applies to lumped circuits; include any induced emf if a time-varying flux links the loop.

v = R·i

  • Ohm’s law for a resistor: voltage v (V) across the resistor equals resistance R (Ω) times current i (A). Used to convert between currents and voltages in KCL/KVL equations.

Number of independent KCL equations = N − 1

  • N is total number of nodes in a connected circuit. One node is reference; the remaining N − 1 node equations are independent. Dimensionless count, applies to connected networks.

Number of independent KVL equations (meshes) = B − N + 1

  • B is number of branches, N is number of nodes. For a connected planar network, the count of independent mesh equations equals B − N + 1. Dimensionless, applies to planar circuits.

Power p = v·i

  • Instantaneous power. p in watts (W), v in volts (V), i in amperes (A). Passive sign convention assumed. Useful to check energy balance with KVL/KCL.

Worked examples

Example 1: Nodal analysis using KCL (dc resistive circuit) Given: A circuit has two non-reference nodes A and B. Components:

  • Between node A and ground: resistor 2 kΩ.
  • Between node B and ground: resistor 1 kΩ.
  • Between node A and node B: resistor 4 kΩ.
  • A current source of 3 mA from ground to node A (injecting into node A). Find node voltages VA and VB (with ground as 0 V) and branch currents.

Steps:

  1. Assign node voltages VA, VB (in V) with reference to ground.
  2. Write KCL at node A (currents leaving positive): Formula: Σ i_k = 0 → (VA/2 kΩ) + ((VA − VB)/4 kΩ) − 3 mA = 0. Numbers: VA/2000 + (VA − VB)/4000 = 0.003 A. Multiply by 4000: 2·VA + (VA − VB) = 12 → 3·VA − VB = 12. …(1)
  3. Write KCL at node B (no source at B): Formula: Σ i_k = 0 → (VB/1 kΩ) + ((VB − VA)/4 kΩ) = 0. Numbers: VB/1000 + (VB − VA)/4000 = 0. Multiply by 4000: 4·VB + (VB − VA) = 0 → −VA + 5·VB = 0 → VA = 5·VB. …(2)
  4. Solve (1) and (2): Substitute VA = 5·VB in (1): 3·(5·VB) − VB = 12 → 14·VB = 12 → VB = 12/14 = 0.857142857 V ≈ 0.857 V. Then VA = 5·VB = 4.285714285 V ≈ 4.286 V.
  5. Branch currents (using Ohm’s law):
    • Through 2 kΩ to ground: I_Ag = VA/2 kΩ = 4.286 V / 2000 Ω = 0.002143 A = 2.143 mA.
    • Through 4 kΩ from A to B: I_AB = (VA − VB)/4 kΩ = (4.286 − 0.857) V / 4000 Ω = 0.000857 A = 0.857 mA.
    • Through 1 kΩ to ground: I_Bg = VB/1 kΩ = 0.857 V / 1000 Ω = 0.000857 A = 0.857 mA.
  6. Check KCL at A: 2.143 mA + 0.857 mA = 3.000 mA equals source current 3 mA (satisfied).

Answer: VA ≈ 4.286 V, VB ≈ 0.857 V; I_Ag ≈ 2.143 mA, I_AB ≈ 0.857 mA (A→B), I_Bg ≈ 0.857 mA.

Example 2: Mesh analysis using KVL (two-loop planar circuit) Given: Two meshes share a 4 Ω resistor. Left mesh has a 10 V source (positive at the top, oriented so that a clockwise traversal sees a +10 V rise) in series with a 2 Ω resistor. Right mesh has a 5 Ω resistor. The 4 Ω resistor is common between meshes. Find mesh currents I1 (left, clockwise) and I2 (right, clockwise).

Steps:

  1. Assign mesh currents I1 and I2 (A), both clockwise.
  2. Write KVL for Mesh 1 (sum of drops equals sum of rises; choose all terms on one side equals zero): Formula: −10 V + 2·I1 + 4·(I1 − I2) = 0. Simplify: 6·I1 − 4·I2 = 10. …(A)
  3. Write KVL for Mesh 2 (no source): Formula: 5·I2 + 4·(I2 − I1) = 0. Simplify: −4·I1 + 9·I2 = 0. …(B)
  4. Solve (A) and (B): From (B), 4·I1 = 9·I2 → I1 = 2.25·I2. Substitute into (A): 6·(2.25·I2) − 4·I2 = 10 → 13.5·I2 − 4·I2 = 10 → 9.5·I2 = 10 → I2 = 10/9.5 = 1.05263158 A. Then I1 = 2.25·I2 = 2.36842105 A.
  5. Shared branch current through 4 Ω (left to right) is (I1 − I2) = 1.31578947 A. Drop across 4 Ω: V_4Ω = 4·(I1 − I2) = 5.2631579 V.
  6. Check KVL Mesh 1 numerically: Drops = 2·I1 + 4·(I1 − I2) = 4.7368421 + 5.2631579 ≈ 10.000 V = source 10 V (satisfied). Mesh 2: Drops = 5·I2 + 4·(I2 − I1) = 5.2631579 − 5.2631579 = 0 V (satisfied).

Answer: I1 ≈ 2.368 A (clockwise), I2 ≈ 1.053 A (clockwise); V across 4 Ω ≈ 5.263 V (left higher).

Example 3: Theory — State, derive, and discuss the limitations of Kirchhoff’s laws Model answer outline:

  1. Statement:
    • KCL: At any node, the algebraic sum of currents is zero (total entering equals total leaving).
    • KVL: Around any closed loop, the algebraic sum of voltages is zero (sum of rises equals sum of drops).
  2. Assumptions:
    • Lumped-circuit model applies; elements are small enough that propagation delays and field coupling between distant parts are negligible.
    • For KVL in its simplest form, no time-varying magnetic flux links the loop; otherwise, include induced emf.
  3. Derivations:
    • KCL: From conservation of charge; in lumped circuits, a node cannot store net charge over time, so Σ i_k = 0.
    • KVL: From conservative electric field; closed-path line integral of electric field is zero; hence Σ v_k = 0. With time-varying flux, add induced emf term.
  4. Limitations and applicability:
    • At very high frequency or in physically large circuits, parasitic capacitances/inductances and transmission-line effects mean we must model distributed parameters; Kirchhoff’s laws still arise from Maxwell’s equations but must be applied with induced emf and displacement current terms handled correctly.
  5. Diagram instructions to include:
    • Draw a node with three branches; show currents i1, i2 entering, i3 leaving; write i1 + i2 − i3 = 0.
    • Draw a single loop with a source and two resistors; mark loop direction and element polarities; write +V − iR1 − iR2 = 0.

Common mistakes

  • Forgetting that shared-resistor voltage in mesh analysis depends on the difference of mesh currents, R·(I_mesh1 − I_mesh2).
  • Dropping the polarity marks on elements; then KVL terms are written with wrong signs.
  • Using the wrong reference node in nodal analysis, leading to unnecessary supernodes or more equations than needed.
  • Not including the current source direction (arrow) when writing KCL, or treating a source as a resistor.
  • Writing too many KCL/KVL equations: not recognizing that only N − 1 node equations (in any connected circuit) and B − N + 1 mesh equations (in a connected planar circuit) are independent.
  • Rounding intermediate steps too early; final numeric answers won’t satisfy KCL/KVL checks.
  • Ignoring induced emf when a loop is explicitly linked by a changing magnetic field in a question about electromagnetic induction.

For your exam

  • Law statements: Exact statements of KCL and KVL, with assumptions. Full marks: both forms (“sum equals zero” and “entering equals leaving” / “rises equals drops”).
  • Short notes: Assumptions behind Kirchhoff’s laws; scope and limitations with respect to time-varying magnetic fields and displacement current.
  • Derivations: KCL from conservation of charge; KVL from conservative electric field. Full marks: stepwise logic and link to physical laws.
  • Numericals: Solve for node voltages using nodal analysis; find mesh currents using mesh analysis; compute branch currents and voltage drops. Full marks: correct setup (clear reference node/mesh directions), correct equations, units carried, check using KCL/KVL.
  • Diagrams: Node with multiple branches (KCL), single loop with source and resistors (KVL), clarity in polarities and current directions (no crossing lines unless needed).
  • Verification: Show a quick back-check (e.g., sum of currents equals source current; KVL around a loop adds to zero). This earns credit and prevents sign errors.

Quick check

  1. State KCL and mention its key assumption.
  2. In mesh analysis, how do you write the voltage across a resistor common to two meshes in terms of mesh currents?
  3. A loop contains a changing magnetic flux. What must you add to the KVL equation?

Answers: 1) KCL: Algebraic sum of currents at a node is zero; assumes no net charge accumulation in the node (lumped model). 2) V_R = R·(I_mesh_through − I_other_mesh), using assigned loop directions. 3) Include the induced emf (−dΦ/dt) term as a source in the loop equation so that sum of rises equals sum of drops.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?