Sub topic 5
Sizing and holding an emergency fund
This chapter assumes you have finished the budgeting chapter. You should have a monthly cash-flow budget that separates essential costs from flexible ones. You should also be comfortable reading short Python scripts and working with percentages.
What an emergency fund is for
An emergency fund is cash set aside for expenses that are unexpected, necessary, and urgent. Typical triggers are job loss, a medical bill, an urgent home or car repair, or travel for a family crisis.
The fund has one job: it keeps a shock from becoming debt or from forcing you to sell investments at a bad time. Without it, a $2,000 repair goes on a credit card at 22% interest. Or you sell stock during a market drop and lock in the loss.
Three tests help you decide whether a cost belongs to the fund:
- Unexpected. You could not have planned for it. Annual car insurance is not an emergency. It is a predictable cost that belongs in the budget.
- Necessary. Skipping it causes real harm. A sale on a laptop does not qualify.
- Urgent. It cannot wait until you save for it normally.
Sizing the fund from your own budget
Generic advice says "keep three to six months of expenses." The useful part of that rule is the base it multiplies. Use essential monthly costs, not total spending. In an emergency you cut dining out, subscriptions, and travel. You cannot cut rent or minimum loan payments.
The next function sizes the target from your essentials. It uses the essentials from your budget, including minimum debt payments.
def emergency_fund_target(essential_monthly_costs, months):
return sum(essential_monthly_costs.values()) * months
essentials = {"rent": 1500, "food": 500, "utilities": 200, "transport": 250, "insurance": 250, "minimum_debt_payments": 300}
for months in (3, 6):
print(months, "months:", emergency_fund_target(essentials, months))Essentials total $3,000 per month. The output is:
3 months: 9000
6 months: 18000Compare that with the $3,900 of total monthly spending in the earlier snapshot example. Sizing from total spending would overstate the need by 30%. Sizing from essentials gives a target you can reach sooner.
Choosing the number of months
The right multiplier depends on how likely a shock is and how long it would last. The table gives starting points. Treat them as judgment calls, not rules.
| Situation | Suggested months |
|---|---|
| Two stable incomes, secure jobs, no dependents | 3 |
| Single income, stable job | 4 to 6 |
| Dependents, or one income supports the household | 6 |
| Commission, freelance, or seasonal income | 6 to 12 |
| Specialized field where a job search is slow | 6 to 9 |
| Health conditions or an older home needing repairs | Add 1 to 2 |
Two edge cases are worth thinking through. First, if you have strong disability and unemployment coverage through work, the lower end is reasonable. Second, if your household is one illness away from losing income, the higher end protects you better than any investment would.
Building the fund in stages
A target of $18,000 can feel out of reach, so build it in stages. Each stage protects you against a smaller class of problems.
A common order is:
- Starter buffer. Save one month of essentials, or $1,000 if that is larger than your essentials gap. This covers small repairs and stops new credit card debt.
- Pay down high-interest debt. Move to the debt chapter's payoff plan while keeping the starter buffer in place.
- Core fund. Build to three months of essentials.
- Full target. Continue to your chosen multiplier while also investing for retirement.
The order is a trade-off. Paying 22% interest on a card while holding cash that earns 4% costs you money each month. But with no cash at all, the next surprise goes back on the card. The starter buffer resolves that tension.
Setting a timeline
Divide the gap by what you can save each month. Using the numbers from the snapshot chapter, suppose you hold $4,200 in checking, and you keep $1,000 of that as working cash for bills. Say $3,200 counts toward the fund. The remaining gap to a three-month target of $9,000 is $5,800. If your monthly savings rate produces $1,100 of surplus and you assign $600 of it to the fund:
target = 9000
current = 3200
monthly_contribution = 600
months_needed = -(-(target - current) // monthly_contribution)
print(months_needed)The output is 10, so about ten months. Write that date in your plan. A target with a date is a goal. A target without one is a wish.
Where to hold the fund
Hold the fund in an account that has three properties: it is safe, it is liquid, and it is separate from your daily spending.
- Safe means the balance cannot fall. Cash accounts insured by a national deposit scheme meet this test. Stocks and bond funds do not, because they can lose value exactly when job losses spike.
- Liquid means you can reach the money within a day or two without penalty.
- Separate means it sits in its own account, ideally at a different bank from your checking, so it is harder to spend by accident.
| Option | Safety | Access | Typical drawback |
|---|---|---|---|
| High-yield savings account | High (insured up to the limit) | 1 to 2 business days | Rate changes with the market |
| Money market deposit account | High (insured up to the limit) | Often same day or next day | Some have minimum balances |
| Short certificate of deposit | High | Penalty for early withdrawal | Locks money for a term |
| Money market mutual fund | Very high, but not insured | 1 to 2 business days | Not covered by deposit insurance |
| Checking account | High | Immediate | Pays little or nothing, easy to spend |
| Stock or bond funds | Variable | Days to settle | Can lose value when you need cash |
A practical layout keeps one month of essentials in an easy-access account and the rest in a high-yield savings account. If you use certificates of deposit, build a "ladder": split the money across several maturities so that some of it comes due regularly.
Check the insurance limit on each account. Most national deposit schemes cap coverage per depositor per bank. If your fund exceeds the cap, spread it across institutions.
Interest and inflation
Cash in a savings account earns interest, but the rate may sit near or below inflation. That means the fund slowly loses purchasing power. Do not take investment risk to fix this. The fund exists for safety, and a small real loss is the price of that safety. Revisit the target each year so that inflation in your essential costs does not quietly shrink your coverage. If rent rises from $1,500 to $1,650, a six-month target rises by $900 for that item alone.
Using and refilling the fund
Use the fund only for events that pass the three tests. When you do spend from it, do two things.
- Record the withdrawal and the reason in your plan's log.
- Add a refill line to your budget. Until the fund returns to its target, treat the refill as a fixed expense, in the same way you treat a loan payment.
If you lose income, shift to your essentials-only budget on day one. Cut flexible spending first, then calculate your runway. Runway is the number of months the fund lasts at your reduced spending.
def runway_months(fund_balance, essential_monthly_costs, income_replacement=0):
burn = sum(essential_monthly_costs.values()) - income_replacement
if burn <= 0:
return float("inf")
return fund_balance / burn
essentials = {"rent": 1500, "food": 500, "utilities": 200, "transport": 250, "insurance": 250, "minimum_debt_payments": 300}
print(round(runway_months(9000, essentials), 1))
print(round(runway_months(9000, essentials, income_replacement=1200), 1))The first call prints 3.0. The second prints 5.0, because $1,200 of unemployment benefits or part-time work lowers the monthly burn from $3,000 to $1,800. This shows why even partial income extends your runway more than it seems.
Common mistakes
- Sizing from total spending. This inflates the target and delays other goals.
- Holding the fund in investments. A market fall often arrives together with layoffs.
- Keeping it in checking. A balance mixed with daily money gets spent without a decision.
- Counting credit as the fund. A credit line can be cut or frozen during a downturn. It is a backup, not a substitute.
- Never refilling. Many people use the fund once and leave the balance low.
- Treating predictable costs as emergencies. Put annual or irregular bills in a sinking fund instead, which is a separate savings line for expected costs.
What to write in the plan
The plan document needs five facts about the fund:
- The monthly essential cost figure and the date you calculated it.
- The chosen number of months and the reason.
- The target amount and the current balance.
- The account name, institution, and insurance limit.
- The monthly contribution and the date you expect to reach the target.
Exercise
Your essential monthly costs are $2,400, and your total spending is $3,300. You are a freelancer with irregular income, so you choose 9 months of coverage. You hold $6,000 in a savings account earmarked for the fund and can add $450 per month. What is your target, and how many months until you reach it?
Show answer
Target = 2,400 x 9 = $21,600, using essentials rather than total spending. Gap = 21,600 - 6,000 = $15,600. At $450 per month, 15,600 / 450 = 34.7, so 35 months (about three years). You might decide to build the first 3 months ($7,200) quickly, then continue toward 9 months while also investing.
Exercise
A $1,800 car repair arrives. You have a $9,000 fund and a credit card at 22% interest. Which should you use, and what should you do afterward?
Show answer
A repair that is unexpected, necessary, and urgent passes the three tests, so use the fund rather than the card. The fund earns about 4% while the card charges 22%, so paying cash avoids a much larger interest cost. Afterward, add a refill line of the $1,800 to your budget until the balance returns to $9,000, and log the withdrawal in your plan.