Sub topic 7
Putting it together: assets minus liabilities
This chapter assumes you have already listed your accounts, valued each asset and recorded the current balance of each debt. If you have not, the earlier chapters on assets, liabilities and gathering statements cover that. You also need basic arithmetic and enough Python to read a dictionary and a loop. The formula is simple. Most errors come from the inputs you feed it and from how you handle signs and dates.
The formula
Net worth is total assets minus total liabilities, measured on one date:
net worth = total assets - total liabilitiesHere is what each part means in practice.
- Total assets is the sum of the current value of everything you own that has monetary value.
- Total liabilities is the sum of the outstanding balance of every debt you owe.
- One date means every number comes from the same day, or as close to it as your statements allow.
The result can be positive, zero or negative. A positive result means what you own exceeds what you owe. A negative result means you owe more than you own. That is common for recent graduates and for people early in a mortgage.
A worked example
Take a household with these values on a single date.
| Assets | Value | Liabilities | Balance |
|---|---|---|---|
| Checking | 4,200 | Mortgage | 245,000 |
| Savings | 12,000 | Auto loan | 9,500 |
| Brokerage | 25,000 | Credit card | 1,800 |
| Retirement | 68,000 | Student loan | 14,000 |
| Home | 310,000 | ||
| Car | 14,000 | ||
| **Total** | **433,200** | **Total** | **270,300** |
Net worth is 433,200 − 270,300 = 162,900.
The same calculation in Python:
assets = {
"checking": 4200,
"savings": 12000,
"brokerage": 25000,
"retirement": 68000,
"home": 310000,
"car": 14000,
}
liabilities = {
"mortgage": 245000,
"auto_loan": 9500,
"credit_card": 1800,
"student_loan": 14000,
}
total_assets = sum(assets.values())
total_liabilities = sum(liabilities.values())
net_worth = total_assets - total_liabilities
print(total_assets, total_liabilities, net_worth)This prints 433200 270300 162900.
The same calculation in a spreadsheet, assuming asset values are in B2:B7 and liability balances are in E2:E5:
Net worth = SUM(B2:B7) - SUM(E2:E5)Keep assets and liabilities in separate ranges. This keeps the subtraction in one place and makes errors easier to spot.
The sign convention
You must decide how liabilities are stored, and then stay consistent. There are two common conventions.
- Positive balances, explicit subtraction. Store a 245,000 mortgage as
245000and subtract the liability total. The code above does this. A debt balance reads as "how much I owe". - Negative liabilities, plain sum. Store the mortgage as
-245000and add everything together. Some budgeting apps export data this way.
Mixing the two conventions causes a classic error. If a liability is stored as a negative number and you then subtract the total, you add the debt to your net worth instead of removing it. In the example, flipping all four signs and subtracting would give 433,200 + 270,300 = 703,500, which is badly wrong.
Check the sign of any imported data before you total it. Credit card exports often show a balance owed as a negative amount in one file and a positive amount in another.
Credit balances and other edge cases
Not every number fits neatly into "asset" or "liability". These cases come up often.
- A credit card with a credit balance. If you overpaid and the issuer owes you 50, the account is a small asset, not a negative liability. Either treatment gives the same net worth. Pick one and apply it consistently.
- An account with a negative checking balance. An overdrawn account is a liability. Do not leave a negative number inside the asset total without noticing it. The arithmetic works, but the record becomes harder to read.
- A zero balance. Keep accounts at zero in your inventory. A paid-off card will be used again, and a placeholder row keeps your records stable.
- Items with no market value. An item you could not sell, such as a worn-out appliance, contributes zero. Do not carry it at its purchase price.
Making the code safer
A bare sum accepts anything. A short function can reject the inputs that most often corrupt the result. This version refuses negative values, so a sign mix-up fails loudly instead of producing a wrong answer.
def net_worth(assets, liabilities):
"""Return (total_assets, total_liabilities, net_worth).
Both arguments map names to non-negative amounts.
Liabilities are balances owed, stored as positive numbers.
"""
for label, group in (("asset", assets), ("liability", liabilities)):
for name, amount in group.items():
if amount < 0:
raise ValueError(
f"{label} '{name}' is negative ({amount}); "
"store balances as positive numbers"
)
total_assets = sum(assets.values())
total_liabilities = sum(liabilities.values())
return total_assets, total_liabilities, total_assets - total_liabilities
assets = {"checking": 4200, "savings": 12000, "home": 310000}
liabilities = {"mortgage": 245000, "credit_card": 1800}
print(net_worth(assets, liabilities))
try:
net_worth(assets, {"mortgage": -245000})
except ValueError as error:
print(error)The first call prints (326200, 246800, 79400). The second prints the message liability 'mortgage' is negative (-245000); store balances as positive numbers.
Match values to the same date
The formula is only meaningful when the inputs describe the same moment. Statements rarely line up exactly. A mortgage statement may close on the 15th, a brokerage account updates daily, and a credit card closes on the 3rd.
Use these rules:
- Choose a snapshot date, such as the last day of the month or year.
- For market-priced assets, use the closing value on that date. Most brokerages show it as the "balance as of" date.
- For loans, use the principal balance on that date. If the latest statement is older, subtract any payments you made since then.
- For credit cards, include charges that have posted and charges that are still pending. Pending charges are debt you have already incurred.
- For slow-moving items such as a home or car, use the most recent estimate you can defend, and say so in your notes.
Mixing a brokerage value from today with a mortgage balance from three months ago can shift the result by thousands. This matters most when you compare two snapshots, because an inconsistent date looks like a real change in net worth.
Do not double count
Double counting means including the same value twice. It is the most common structural error in this calculation. Watch for these cases.
- Home value and equity. If you list the home at 310,000 as an asset, list the mortgage in full as a liability. Do not also list "home equity" of 65,000 as an asset. Use either the gross method (full value as an asset, full balance as a liability) or the net method (only equity as an asset, no mortgage). Both give the same net worth. The gross method keeps assets and debts visible, and it is the one used in this tutorial.
- Transfers between accounts. Money moved from checking to savings is still the same money. Make sure you read both balances after the transfer.
- Credit card payments from checking. If you paid 1,800 on the card from checking, the checking balance falls and the liability falls. If you used an old checking balance and a new card balance, the payment is counted once too often.
- Accounts that sit inside other accounts. A cash sweep inside a brokerage account can show up both in the account total and as a separate line.
Two numbers worth computing alongside
Net worth is a difference, so it hides the size of the two totals. Two quick numbers restore that context.
- Debt-to-asset ratio is total liabilities divided by total assets. In the example, 270,300 / 433,200 is about 0.624, or 62.4%. A lower ratio means more of what you own is free of debt.
- Net worth as a share of assets is net worth divided by total assets. In the example, 162,900 / 433,200 is about 37.6%. The two percentages add up to 100%.
The same net worth of 162,900 could come from a very different balance sheet, such as 200,000 of assets with almost no debt, or 2,000,000 of assets with a large mortgage. The second is more exposed to a fall in asset values.
Common errors in this step
| Symptom | Likely cause |
|---|---|
| Net worth is higher than total assets | A liability was entered as a negative number and then subtracted |
| Net worth jumps with no real event | Mixed dates, or a switch between gross and net treatment of the home |
| Liabilities look too small | Only the monthly payment was entered, not the outstanding balance |
| Net worth is much too high | Home equity was listed as an asset on top of the full home value |
| Net worth is slightly off | A pending card charge or a recent payment was left out |
A good sanity check is that net worth must be less than or equal to total assets whenever liabilities are non-negative. If it is not, there is a sign error.
Exercise
A household has these values on 31 December: checking 3,000, savings 9,000, car 12,000, home 280,000, mortgage 230,000, auto loan 8,500, credit card 2,500. (a) What is the net worth? (b) A teammate entered the mortgage as -230000 and subtracted the liability total from the asset total. What number do they get, and why is it wrong?
Show answer
(a) Total assets are 3,000 + 9,000 + 12,000 + 280,000 = 304,000. Total liabilities are 230,000 + 8,500 + 2,500 = 241,000. Net worth is 304,000 - 241,000 = 63,000. (b) Their liability total is -230,000 + 8,500 + 2,500 = -219,000. Subtracting it gives 304,000 + 219,000 = 523,000. The result is wrong because the mortgage was stored with a negative sign and then subtracted, which removes a debt that should have been deducted. The fix is to store every balance as a positive number, or to use negative liabilities and add instead of subtract.
Exercise
Your total assets are 150,000 and your net worth is 45,000. What is your debt-to-asset ratio, and what are your total liabilities?
Show answer
Total liabilities equal assets minus net worth: 150,000 - 45,000 = 105,000. The debt-to-asset ratio is 105,000 / 150,000 = 0.70, or 70%.