"What if a company is just gifted a building... Wouldn't this unbalance the equation A = L + E instantly? The building adds to Assets, but where does the corresponding Liability or Equity come from? I don't understand why the balance sheet always balances."
β u/godspeed_1225, r/Accounting, 2024
π― The Answer: Kirchhoff's Law
The balance sheet always balances not by magic, but by mathematics. When you're gifted a building, the journal entry is:
Dr. Building (Asset) $1,000,000
Cr. Contributed Capital (Equity) $1,000,000
The building does create equity! It's a source term - external value flowing into the company. The balance sheet identity A = L + E holds because every transaction has equal debits and credits. This is Kirchhoff's Current Law from electrical engineering, applied to accounting.
Theorem 1 (Kirchhoff's Law for Accounting)
Let B be the incidence matrix of the accounting graph, where:
Step 2 (Incidence Matrix): Construct the incidence matrix \(B \in \mathbb{R}^{|V| \times |E|}\) where:
\[
B_{ij} = \begin{cases}
+d & \text{if account } i \text{ is debited by } d \text{ in entry } j \\
-c & \text{if account } i \text{ is credited by } c \text{ in entry } j \\
0 & \text{if account } i \text{ is not involved in entry } j
\end{cases}
\]
Step 3 (Balanced Entry Property): By the double-entry bookkeeping rule, every journal entry must balance. That is, for each entry \(j\):
\[
\sum_{i} B_{ij} = 0
\]
This states: "Total debits = Total credits" for entry \(j\).
Step 4 (Matrix Form): Sum over all accounts for each entry. Let \(\mathbf{1}\) be a column vector of ones (length \(|V|\)). Then:
\[
\mathbf{1}^T \cdot B = [0, 0, ..., 0]
\]
This is the Kirchhoff property: every column of \(B\) sums to zero.
Step 5 (Aggregation to Balance Sheet): Define account types:
Step 6 (The Identity): By the Kirchhoff property, summing all account balances must equal zero (since we start with zero balances and every transaction adds zero to the total):
\[
\sum_{i \in A} \text{balance}_i + \sum_{i \in L} \text{balance}_i + \sum_{i \in E} \text{balance}_i = 0
\]
But liabilities and equity are recorded as credits (negative balances in our convention), so:
\[
\text{Assets} - \text{Liabilities} - \text{Equity} = 0
\]
Rearranging:
\[
\boxed{\text{Assets} = \text{Liabilities} + \text{Equity}}
\]
β QED
π Visual Representation: Accounts as Graph Nodes
Each transaction (edge) has +/- entries that sum to zero. This is the Kirchhoff property: 1T B = 0.
π Worked Example: The Gifted Building
Scenario: A philanthropist gifts a building worth $1,000,000 to Company XYZ.
Journal Entry:
Account
Debit
Credit
Type
Building (Asset)
$1,000,000
β
Asset β
Contributed Capital (Equity)
β
$1,000,000
Equity β
Total
$1,000,000
$1,000,000
Balanced β
Balance Sheet Effect:
Assets increase by $1,000,000 (Building)
Equity increases by $1,000,000 (Contributed Capital)
Liabilities unchanged (0)
A = L + E still holds: ΞA = $1,000,000 = $0 + $1,000,000 = ΞL + ΞE β
Key Insight: The building doesn't "break" the equation because it creates a source term (Contributed Capital). This is exactly like electric current entering a circuit nodeβit must equal current leaving the node (Kirchhoff's Current Law).
Corollary 1 (Trial Balance): The accounting trial balance (sum of all debit balances = sum of all credit balances) is a direct consequence of the Kirchhoff property. If the trial balance doesn't balance, at least one transaction violates \(\mathbf{1}^T \cdot B = 0\), indicating a posting error.
Corollary 2 (Graph Conservation): Summing account balances across any partition of the graph yields zero net flow for internal transactions. Only external sources (revenue, contributions, borrowing) and sinks (expenses, distributions, repayments) change the total.
π‘ Why This Matters
A = L + E is not an arbitrary accounting conventionβit's a mathematical theorem that follows from double-entry bookkeeping. Understanding this transforms accounting education from memorizing rules to understanding why the rules must be this way.
Every "magic" accounting identity (equity bridge, sustainable growth, dividend formulas) follows from this foundation. Kirchhoff's Law is Theorem 1 because all other results depend on it.