Your Equation

Tools / Circuit solver

Circuit solver

Describe a DC circuit as a connection list of resistors and sources. The solver gives every voltage, current and power with the equations behind them, shows what each source contributes to any result you choose, and ranks which components that result is most sensitive to.

Start from an example

A current source sits between two loops (a supermesh). The solver needs no special treatment: R2 carries 6 A and R1 carries 3 A.

Connection list

Each row joins two nodes. Name nodes anything you like (1, 2, A, out) and use 0 for ground. Current is positive when it flows From → To through the element. A voltage source raises the voltage from its From node to its To node (To is the + terminal). A current source pushes current from its From node to its To node. Values accept suffixes: 2.2k, 10m, 5u.

Circuit connection list
ElementTypeFrom nodeTo nodeValueRemove
V1
R1
I1
R2

    Result to analyse

    6 ACurrent through R2 (B → 0)3nodes108 Wdelivered by sources

    ✓ Power check passes: sources deliver 108 W and the circuit absorbs 108 W.

    • V1 has the biggest effect: changing it by 10 % moves current through R2 (B → 0) by up to 400 mA.
    • V1 supplies most of it: 4 A of 6 A.

    Circuit map

    +V1 = 24 V3 A ↑I1 = 3 A3 A ↑R2 = 2 Ω6 A ↓R1 = 4 Ω3 A →A = 24 VB = 12 V

    Arrows show the real direction of conventional current. The map is drawn automatically, so it may differ from a textbook layout.

    Every element

    ElementTypeFrom → ToValueCurrent From → ToVoltage From − ToPower
    V1Voltage source0 → A24 V3 A−24 Vdelivers 72 W
    R1ResistorA → B4 Ω3 A12 Vabsorbs 36 W
    I1Current source0 → B3 A3 A−12 Vdelivers 36 W
    R2ResistorB → 02 Ω6 A12 Vabsorbs 72 W

    Node voltages

    24 VA12 VB0 Vground (0)

    Contributions

    What each source adds to current through R2 (B → 0) when it works alone (superposition).

    V1Voltage source 24 VKey driver
    4 A
    I1Current source 3 A
    2 A

    ✓ Together: 4 A + 2 A = 6 A, the same as the full circuit.

    Sensitivity

    How far current through R2 (B → 0) moves when each component is changed by −10 % and +10 %. The line marks today’s value, 6 A.

    V1Voltage source 24 V · S = +0.67Key driver
    5.6 A6.4 A
    R1Resistor 4 Ω · S = −0.33
    5.813 A6.214 A
    R2Resistor 2 Ω · S = −0.33
    5.806 A6.207 A
    I1Current source 3 A · S = +0.33
    5.8 A6.2 A

    Working: node equations

    Show the equations
    • Node A: − I(V1) + (V(A) − V(B)) / 4 Ω = 0
    • Node B: (V(B) − V(A)) / 4 Ω − 3 A + (V(B)) / 2 Ω = 0
    • V1: V(A) − 0 = 24 V

    Each node equation says the currents leaving the node add to zero. Written as a matrix, G·x = z, with conductances in siemens (S):

    EquationV(A)V(B)I(V1)Right side
    Node A0.25-0.25-1=0
    Node B-0.250.750=3
    V1100=24

    How to read it

    The solver uses nodal analysis: for every node except ground it writes that the currents leaving the node add to zero (Kirchhoff’s current law), adds one equation for each voltage source, and solves the lot at once. Because it works node by node, a current source shared by two loops (a supermesh in mesh analysis) needs no special handling.

    • Contributions use superposition. Each source is switched on alone while the others are replaced by a short circuit (voltage source) or an open circuit (current source). The contributions add up to the full result.
    • Sensitivity changes each component by −10 % and +10 % in turn and shows how far the chosen result moves. S is the normalised sensitivity: the percentage change of the result for a 1 % change of the component.
    • Power check: the power delivered by the sources must equal the power absorbed by the resistors. If they differ, something is wrong.

    Limits: DC circuits with ideal resistors, voltage sources and current sources. The circuit map is drawn automatically and may be arranged differently from your textbook diagram; the connection list is the exact description.