%%{init: {'theme': 'neutral', 'themeVariables': { 'fontFamily': 'monospace', "darkMode":false, "fontSize":"16px"}}}%%
flowchart TD
Crisis(["Unexpected Expense"]) --> NoFund{"Emergency Fund?"}
NoFund -->|"No"| CreditCard("Charge It to<br>Credit Card")
NoFund -->|"Yes"| EFund("Draw from<br>Emergency Fund")
CreditCard --> Interest("Pay 20% to 24% Interest<br>for Months or Years")
CreditCard --> Stress("Financial Stress<br>& Anxiety")
EFund --> Solved("Problem Solved<br>No Debt Added")
EFund --> Rebuild("Rebuild the Fund<br>Over Next Few Months")
style Crisis fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style NoFund fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style CreditCard fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Interest fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Stress fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style EFund fill:#48a56a,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Solved fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style Rebuild fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
5 Emergency Fund
An emergency fund is cash set aside to handle the unexpected without reaching for credit. It’s the financial equivalent of a spare tire: you don’t need it most of the time, but when you do, nothing else will do the job.
The standard target is 3 to 6 months of essential expenses, parked somewhere safe and liquid (easy to turn into cash quickly, without losing value). This is Step 4 of the Financial Order of Operations (Section 1), and it comes before investing, before extra debt payoff, before any goal other than capturing your employer match and eliminating high-interest debt.
This chapter covers:
- How much you actually need
- Where to keep it (and where not to)
- How to build it from scratch
- How to rebuild it after a withdrawal
5.1 Why It Matters
Most financial derailments don’t start with bad investing. They start with a single unexpected expense (a car repair, a medical bill, a job loss) that gets charged to a credit card because there’s no cash available.
Housel’s framing is useful here: an emergency fund isn’t about the return on the money. It’s about buying options: the ability to not be forced into a bad financial decision at a bad time. Having those options is worth more than any interest rate 1.
5.2 How Much Do You Actually Need?
“3 to 6 months of expenses” is the standard answer, and it’s a reasonable starting range. But it isn’t a single number, because emergencies don’t affect everyone equally.
Brian Preston’s Financial Order of Operations uses the standard 3 to 6 months of living expenses for step 4, and adds more for people whose income is less certain 2.
Ramit Sethi now asks for more: his first money rule is to always have one year of emergency funds in cash, or at least six months 3. He raised the number after watching people lose jobs during the pandemic.
Morgan Housel doesn’t give a number, but he keeps more cash than most advisors would say is efficient, because cash is what lets you get through a bad stretch without selling anything 4.
What they agree on: the fund belongs in cash, not investments, and starting small is better than waiting. The 3 to 6 month range is a floor to build toward; a bigger fund buys more freedom once the basics are covered.
The Essential Expenses Baseline
Start by calculating your essential expenses: what it actually costs to keep the lights on. This is not your total spending; it’s the floor.
| Category | Examples |
|---|---|
| Housing | Rent or mortgage, renter’s/homeowner’s insurance |
| Food | Groceries (not dining out) |
| Utilities | Electricity, water, gas, internet |
| Transportation | Car payment, insurance, fuel, transit pass |
| Health | Health insurance payments (premiums), medications you can’t skip |
| Minimum debt payments | Credit card minimums, loan payments |
Entertainment, subscriptions, gym memberships, and dining out are not essential expenses for this calculation. In a true emergency, you can cut them. Your emergency fund is sized to cover the life you need, not the one you currently live.
Adjusting for Your Situation
The right target depends on how much income risk you carry. More risk = more months.
%%{init: {'theme': 'neutral', 'themeVariables': { 'fontFamily': 'monospace', "darkMode":false, "fontSize":"16px"}}}%%
flowchart TD
Start(["How many months?"]) --> Job{"Job Stability?"}
Job -->|"Stable<br>single income"| Dep{"Dependents?"}
Job -->|"Variable / Self-Employed"| More("Lean toward<br>6 to 9 months")
Dep -->|"No"| Insure{"Good health &<br>disability coverage?"}
Dep -->|"Yes: kids, aging parents"| SixPlus("6 months minimum")
Insure -->|"Yes"| ThreeToSix("3 to 4 months<br>is sufficient")
Insure -->|"No"| SixMonths("Closer to<br>6 months")
style Start fill:#48a56a,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Job fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style More fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Dep fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style SixPlus fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Insure fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style ThreeToSix fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style SixMonths fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
A two-income household where both partners work stable salaried jobs has a lower emergency risk than a self-employed single parent. If you’re single with one paycheck, you’re the only income, so lean toward the higher end of your range. The fund should reflect that difference.
The Starter Fund First
Dave Ramsey popularized a practical approach (his Baby Step 1): build a $1,000 starter emergency fund immediately, even while paying down debt. Once high-interest debt is gone, shift the same monthly dollars you were paying toward debt into filling the emergency fund to its full target.
The sequence matters:
- Build $1,000 starter fund
- Eliminate credit card and high-interest debt (see Managing Debt)
- Build full 3 to 6 month fund
5.3 Emergency Reserves in the Financial Order of Operations
This sequence mirrors step 4 of Brian Preston’s Financial Order of Operations, introduced in Budgeting: emergency reserves are funded immediately after high-interest debt (step 3) and before Roth IRA and HSA contributions (step 5). See Managing Debt for how the two debt steps bracket this one.
Skipping ahead to invest before this step is funded exposes you to the exact timing problem described in Why Not the Stock Market? below. A market downturn and a job loss tend to arrive together.
5.4 Where to Keep It (and Where Not To)
An emergency fund has two jobs: stay safe and be available. This rules out most places you might initially consider.
%%{init: {'theme': 'neutral', 'themeVariables': { 'fontFamily': 'monospace', "darkMode":false, "fontSize":"16px"}}}%%
flowchart LR
Cash(["Your Emergency<br>Fund"]) --> Good
Cash --> Bad
subgraph Good["<strong>GOOD OPTIONS</strong>"]
HYSA("High-Yield Savings Account<br>(HYSA)")
MMF("Money Market Fund<br>(at a brokerage)")
CheckFed("Federally Insured<br>Credit Union")
end
subgraph Bad["<strong>BAD OPTIONS</strong>"]
Checking("Regular Checking Account<br>(too easy to spend)")
Market("Stock Market<br>(too volatile)")
CD("Long-Term CDs<br>(penalties for early withdrawal)")
Cash2("Physical Cash at Home<br>(no interest, risk of loss)")
end
style Cash fill:#48a56a,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Good fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Bad fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style HYSA fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style MMF fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style CheckFed fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style Checking fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Market fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style CD fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Cash2 fill:#f44242,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
The Right Account
A high-yield savings account (HYSA) at an FDIC-insured bank is the default recommendation. FDIC insurance is a federal guarantee that you get your money back, up to $250,000, even if the bank fails. A HYSA earns meaningfully more than a standard checking account while keeping the money one business day away. Credit unions offer the same thing, insured by the NCUA instead of the FDIC.
See High-Yield Accounts for a full breakdown of how to find and open one.
Why Not the Stock Market?
This is the most common mistake people make with emergency funds. The logic seems sound: “my money would earn more in index funds.” The problem is timing: bad things tend to happen at the same time.
If you lose your job in February and the stock market is down 25% at the same moment (which historically happens; recessions cause both), you’re forced to sell at the worst possible time. The emergency fund’s job isn’t to grow wealth; it’s to be there when you need it, at full value, on demand.
Ben Felix approaches this through the lens of human capital. For most, your ability to earn an income is your largest asset. An emergency fund protects you when that income stops or drops. If your income goes up and down a lot (for example, sales commissions, freelancing, or running a business), lean toward a larger cash buffer so you can cover your bills during lean months.
5.5 Building Your Emergency Fund
For most people, building the full fund takes one to two years of steady saving. Picture a first job with $2,400 a month in essential expenses and a four-month target of $9,600. The chart below shows how long that takes at three different monthly contribution amounts.
The pattern is simple: doubling the monthly contribution roughly halves the time to goal.
Automate It
The most reliable way to build the fund is to treat it exactly like a bill. Set up an automatic transfer to your HYSA on payday, before you have a chance to spend the money. See Automating Savings for the full setup playbook.
Where to Find the Money
If you’re reading this and thinking “I don’t have anything extra to save,” the answer is usually a combination of small cuts applied consistently:
- Pause one subscription
- Cook at home one extra night per week
- Redirect a tax refund directly to the fund
None of these feel dramatic. That’s the point. The fund gets built one unexciting month at a time.
5.6 How to Rebuild After a Withdrawal
Using the emergency fund isn’t a failure; it’s the fund doing its job. The mistake is treating a withdrawal as a one-time event rather than a signal to rebuild immediately.
%%{init: {'theme': 'neutral', 'themeVariables': { 'fontFamily': 'monospace', "darkMode":false, "fontSize":"16px"}}}%%
flowchart TD
Use(["Emergency: Fund Used"]) --> Assess("Assess: How much<br>was withdrawn?")
Assess --> Resume("Resume automatic<br>contributions immediately")
Resume --> Temp{"Can you temporarily<br>increase contributions?"}
Temp -->|"Yes"| Boost("Increase monthly<br>contribution until rebuilt")
Temp -->|"No"| Steady("Maintain existing<br>contribution; stay patient")
Boost --> Target(["Fund Restored"])
Steady --> Target
style Use fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style Assess fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Resume fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Temp fill:#f0cfcf,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style Boost fill:#48a56a,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Steady fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
style Target fill:#48a56a,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
Two rules for the rebuild phase:
Don’t stop other savings to rebuild faster. The automatic contributions will get you there. Don’t interrupt retirement account contributions, especially if you have an employer match.
Don’t restart debt payoff conversations during the rebuild. Your priority order right now is: minimum payments on everything, then rebuild the emergency fund, then return to accelerated debt payoff.
5.7 Math for Emergency Funds
The calculations here are simple, but writing them down forces you to confront the actual numbers.
Your Target Amount
Your emergency fund target is just essential monthly expenses multiplied by the number of months you want to cover.
The chart below shows how the target grows as you add months; each bar is the previous one plus one more month of expenses.
Formula: Target = Monthly Essential Expenses × Months of Coverage
- Where: Monthly Essential Expenses = what it costs each month to keep the lights on (not your total spending), and Months of Coverage = how many months you want the fund to last, usually 3 to 6.
Example: $2,400/month in essential expenses × 4 months = $9,600 target.
Check: $9,600 ÷ $2,400 = 4, so the fund covers exactly 4 months.
Assuming essential monthly expenses are in cell A2 and the number of months is in B2:
=A2*B2The Python version of emergency_fund_target() works the same way:
show/hide
def emergency_fund_target(monthly_expenses, months=3):
return monthly_expenses * months
# $2,400/month in essential expenses, 3-month and 6-month targets
print(emergency_fund_target(monthly_expenses=2400, months=3))
#> 7200
print(emergency_fund_target(monthly_expenses=2400, months=6))
#> 14400In R, emergency_fund_target() multiplies your essential monthly expenses by the number of months you want covered.
show/hide
emergency_fund_target <- function(monthly_expenses, months = 3) {
monthly_expenses * months
}
# $2,400/month in essential expenses, 3-month and 6-month targets
emergency_fund_target(monthly_expenses = 2400, months = 3)
#> [1] 7200
emergency_fund_target(monthly_expenses = 2400, months = 6)
#> [1] 14400Months to Reach Your Target
Given your current balance and a monthly contribution, how long until you reach the target? Think of the target as one bar. Part of it is already filled by what you’ve saved; the rest is the gap your monthly contributions have to close.
Each thin slice of the blue section is one $400 contribution. Counting the slices is the same as dividing the gap by the monthly contribution.
Formula: Months to Goal = (Target − Current Balance) ÷ Monthly Contribution
- Where: Target = the size of the fund you want, Current Balance = what you have saved now, and Monthly Contribution = how much you add each month.
Example: $9,600 target, $1,200 already saved, contributing $400/month → (9,600 − 1,200) ÷ 400 = 21 months.
Check: 21 × $400 = $8,400, and $8,400 + $1,200 = $9,600, which hits the target.
Assuming the target is in A2, your current balance is in B2, and your monthly contribution is in C2:
=ROUNDUP(MAX(0, A2-B2)/C2, 0)The Python version of months_to_ef_goal() works the same way:
show/hide
import math
def months_to_ef_goal(target, current_balance, monthly_contribution):
remaining = max(0, target - current_balance)
return math.ceil(remaining / monthly_contribution)
# $9,600 target, $1,200 saved, $400/month contribution
print(months_to_ef_goal(target=9600, current_balance=1200, monthly_contribution=400))
#> 21In R, months_to_ef_goal() subtracts what you’ve already saved from the target, then divides what’s left by your monthly contribution.
show/hide
months_to_ef_goal <- function(target, current_balance, monthly_contribution) {
remaining <- max(0, target - current_balance)
ceiling(remaining / monthly_contribution)
}
# $9,600 target, $1,200 saved, $400/month contribution
months_to_ef_goal(target = 9600, current_balance = 1200, monthly_contribution = 400)
#> [1] 21Contribution Needed by a Deadline
Working backwards: if you want to reach your target in a specific number of months, how much do you need to save each month? This time the number of slices is fixed (one per month), and the question is how wide each slice has to be.
Splitting the gap into equal slices is division: the gap divided by the number of months gives the width of each slice.
Formula: Monthly Contribution = (Target − Current Balance) ÷ Months Remaining
- Where: Target = the size of the fund you want, Current Balance = what you have saved now, and Months Remaining = how many months you have left to reach the target.
Example: You want a full $9,600 fund in 18 months and have $1,200 now → (9,600 − 1,200) ÷ 18 = $467/month
Check: $467 × 18 = $8,406, and $8,406 + $1,200 = $9,606, a few dollars over the target because $467 is rounded up.
Assuming the target is in A2, your current balance is in B2, and the number of months is in C2:
=ROUNDUP(MAX(0, A2-B2)/C2, 0)The Python version of monthly_contribution_needed() works the same way:
show/hide
def monthly_contribution_needed(target, current_balance, months):
remaining = max(0, target - current_balance)
return math.ceil(remaining / months)
# $9,600 target, $1,200 saved, want to finish in 18 months
print(monthly_contribution_needed(target=9600, current_balance=1200, months=18))
#> 467In R, monthly_contribution_needed() flips the question: given a deadline, it returns the monthly amount you need to save.
show/hide
monthly_contribution_needed <- function(target, current_balance, months) {
remaining <- max(0, target - current_balance)
ceiling(remaining / months)
}
# $9,600 target, $1,200 saved, want to finish in 18 months
monthly_contribution_needed(target = 9600, current_balance = 1200, months = 18)
#> [1] 467What the Fund Earns While You Build It
Keeping the fund in a HYSA means it earns interest as it grows. This won’t dramatically change your timeline, but it’s real money. Savings accounts advertise their APY (annual percentage yield): what your money earns in a year, with the monthly compounding already included. Top HYSAs paid a little over 4% APY in late 2026. The bar below shows a full $9,600 fund after a year at 4% APY: your money, plus a small slice of interest on the end.
Each year, the balance is multiplied by (1 + APY), so the green slice grows a little faster every year. For a number of months, use the fraction of a year: 12 months is one multiplication, 6 months is half of one. That pattern is the formula.
Formula: Future Value = Balance × (1 + APY)^(months ÷ 12)
- Where: Balance = what is in the account today, APY = the yearly return after compounding, written as a decimal (4% = 0.04), and months = how long you leave the money untouched.
Example: $9,600 in a HYSA at 4% APY, untouched for 12 months → $9,600 × 1.04 = $9,984. The interest pays for a car repair without reducing your fund.
Check: 4% of $9,600 is $384 of interest, and $9,600 + $384 = $9,984.
Assuming the balance is in A2, the APY is in B2 (as a decimal), and the number of months is in C2:
=A2*(1+B2)^(C2/12)The Python version of ef_growth() works the same way:
show/hide
def ef_growth(balance, apy, months):
return balance * (1 + apy) ** (months / 12)
# $9,600 at 4% APY for 12 months
print(ef_growth(balance=9600, apy=0.04, months=12))
#> 9984.0In R, ef_growth() grows a balance for a number of months at a given APY.
show/hide
ef_growth <- function(balance, apy, months) {
balance * (1 + apy)^(months / 12)
}
# $9,600 at 4% APY for 12 months
ef_growth(balance = 9600, apy = 0.04, months = 12)
#> [1] 99845.8 Putting It All Together
%%{init: {'theme': 'neutral', 'themeVariables': { 'fontFamily': 'monospace', "darkMode":false, "fontSize":"16px"}}}%%
flowchart TD
Start(["Build Your<br>Emergency Fund"]) --> Step1("i. Calculate monthly<br>essential expenses")
Step1 --> Step2("ii. Choose your target:<br>3 to 6 months, based on risk")
Step2 --> Step3("iii. Open a<br>dedicated HYSA")
Step3 --> Step4("iv. Set up automatic<br>monthly transfer on payday")
Step4 --> Step5("v. Build $1,000 starter<br>fund first if in debt")
Step5 --> Step6("vi. Pay off high-interest<br>debt, then fill full fund")
Step6 --> Step7("vii. Once funded, leave it<br>alone; it's not savings")
Step7 --> Step8(["viii. Rebuild immediately<br>after any withdrawal"])
style Start fill:#48a56a,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step1 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step2 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step3 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step4 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step5 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step6 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step7 fill:#0e9aa7,color:#F5F2E8,stroke:#1C1C1E,stroke-width:2px
style Step8 fill:#86ddcd,color:#1C1C1E,stroke:#1C1C1E,stroke-width:2px
5.9 Recap
An emergency fund is not an investment. It’s insurance, and the cost of that insurance is the extra growth you don’t get by keeping it in cash instead of stocks. That’s a reasonable price for what it buys.
- Size it to your actual risk. Stable salaried job with good coverage? Three months is fine. Variable income or dependents? Six months or more.
- Keep it separate. A dedicated HYSA with a slight friction to transfer prevents casual spending from eroding the fund.
- Build it in stages. $1,000 starter fund first, then full fund after high-interest debt is cleared.
- Automate the contribution. Set it on payday and treat it like a bill until the fund is full.
- Rebuild immediately after using it. The fund only works if it’s there the next time you need it.
As Housel writes, the point of financial margin isn’t to optimize; it’s to survive. An emergency fund doesn’t make you rich. It keeps a bad month from becoming a bad decade.
The Psychology of Money: Timeless Lessons on Wealth, Greed, and Happiness. Housel, Morgan. 2020.↩︎
The Financial Order of Operations. Preston, Brian. 2024.↩︎
10 Easy Money Rules (by Ramit Sethi). Sethi, Ramit. 2024.↩︎
The Psychology of Money: Timeless Lessons on Wealth, Greed, and Happiness. Housel, Morgan. 2020.↩︎









