by omichowdhury · 2y ago · 0 comments
State Accounts track your net worth
Assets: what you own
Liabilities: what you owe
Change Accounts track why your net worth changes Income: what you've earned
Expense: what you've spent
The accounting equation that follows is ∆ State = ∆ Change: Assets - Liabilities = Income - Expense
Selling lemonade is +$5 Asset balanced by +$5 Income.
If you substitute into the equation, it's: $5 Asset = $5 IncomeTaking out a loan is +$10 Asset balanced by +$10 Loan. In the equation: $10 Asset - $10 Liability = $0.
In general, say you have a +Asset action, to balance the equation you can do it 4 ways:
+Asset -Asset aka swapped for equal value
+Asset +Liability aka took out a loan
+Asset +Income aka sold something
+Asset -Expense aka got a refund
I've left out Equity as a separate account type since you can just treat it mathematically as a Liability account.This is the system we've implemented in our ledger API (https://fragment.dev)
Don't you mean -Asset here?
I did an explanation with numbers here: https://news.ycombinator.com/item?id=40021506
Ah. So... where is the value of the lemonade before you sold it? Wasn't that an asset before you sold it?
I was going through the 4 combinations of balanced two-line entries, based on the accounting equation, to show how it helps when thinking through how to record something.
If you get into more than two lines, then yup selling a good would be
+Asset -Asset +Income
or if you include sales tax and son shipping costs: +Asset -Asset +Liability +Income +Expense
Using an updated accounting equation and negative numbers is a lot more intuitive than credits and debits. In this larger example it tells you: Cash Asset - COGS Asset - Tax Liability = Sales Income - Shipping Expense
It tells you what types of accounts balance, with a syntax that matches your intuitions: more asset = good, less asset = bad, more expense = bad, less expense = good.