An emergency fund is the cash that stands between a surprise — a layoff, a slow month, a broken transmission, an unexpected medical bill — and a credit card balance you'll be paying off for years. This calculator turns "how much should I save" into concrete numbers: the target fund you're aiming for, how many months your current savings cover, how much to save each month to close the gap, and — since flat expenses-times-months poorly fits anyone whose income moves — how many genuinely bad months your fund can actually bridge.
How it works
The calculator starts from your monthly essential expenses — not your full budget, just the bare-bones amount that keeps the lights on: rent or mortgage, utilities, groceries, insurance, and minimum debt payments. Multiply that by your target months of coverage and you get your target fund: targetFund = monthlyEssentialExpenses × targetMonths.
Next it expresses your current savings in the same unit as your goal — months, not dollars — because "$5,000" means something very different at $2,000/mo of spending than at $6,000/mo: currentRunwayMonths = currentSavings ÷ monthlyEssentialExpenses. Then it finds the gap between where you are and your target (gap = targetFund − currentSavings) and spreads it across your goal window: monthlySavingsNeeded = gap ÷ goalMonths. If savings already meet or beat the target, monthly savings needed is $0.
That flat math is where most calculators stop. This one adds a second lens for lumpy income: enter your income in a realistic bad month — not your average, your worst realistic one — and it computes badMonthGap = max(0, monthlyEssentialExpenses − worstMonthIncome), the shortfall a bad month leaves once whatever income still shows up is counted. From there, monthsOfBadMonthsCovered = currentSavings ÷ badMonthGap shows how many such bad months your fund can absorb back-to-back. If bad-month income already covers expenses, the calculator reports a large placeholder instead of dividing by zero. Dollar outputs round to the cent from unrounded intermediates.
Worked example
Say your essential expenses run $3,000/mo, you've got $5,000 saved, you're targeting the default 6 months, and giving yourself the default 12 months to get there.
- Target fund: $3,000 × 6 = $18,000
- Current runway: $5,000 ÷ $3,000 = 1.67 months
- Gap: $18,000 − $5,000 = $13,000
- Monthly savings needed: $13,000 ÷ 12 = $1,083.33
So today's $5,000 covers about five weeks if income stopped entirely tomorrow. Now add the freelancer lens. At the default bad-month income of $0, every bad month is a total dry spell: badMonthGap = $3,000, so monthsOfBadMonthsCovered = $5,000 ÷ $3,000 = 1.67 — same as your runway. But if a realistic bad month for you still brings in $1,800 — one late-paying client, a few small invoices — then badMonthGap = $1,200, and that same $5,000 covers $5,000 ÷ $1,200 = 4.17 bad months back-to-back, not 1.67. The fund didn't change size; the honesty of what "bad" means for you did.
How to interpret your result
The target fund and current runway answer "how much should I have, on paper." The bad-month gap and coverage figures answer a sharper question: if my income did what it's done before on a rough stretch, how long would this fund actually last? That matters most for freelancers and commission or seasonal earners, because a slow month almost never means zero — usually one client pays late, one project stalls, and the rest limps along at a fraction of normal. Sizing a buffer off flat expenses ignores that trickle, making a fund look thinner, or thicker, than it really is.
This is where mainstream calculators stop short — the flat expenses-times-months formula on sites like Bankrate or NerdWallet is built for a salaried reader whose bad month means zero income until a new job starts, not a freelancer whose bad month usually still has some revenue in it. Neither figure is more "correct"; they answer different questions. Three to six months of expenses is standard guidance for steady income, and most planners push that to 6-12 months for variable income, hence this calculator's 6-month default. But once you've picked a target, the bad-month figures tell you something the target can't: how your fund holds up against your version of a rough patch, not a hypothetical stranger's.
This tool only models essential expenses and cash reachable within days — checking, savings, or money market, not retirement or investment accounts. It doesn't model interest earned while saving, taxes, or a run of bad months getting progressively worse. Treat both figures as planning inputs, not guarantees, and revisit them whenever your expenses, savings, or sense of a "bad month" changes.
Methodology & sources
targetFund = monthlyEssentialExpenses × targetMonths; currentRunwayMonths = currentSavings ÷ monthlyEssentialExpenses (zero if expenses are zero); gap = targetFund − currentSavings; monthlySavingsNeeded = gap ÷ goalMonths when positive and a goal window is set, otherwise zero. badMonthGap = max(0, monthlyEssentialExpenses − worstMonthIncome), the shortfall a bad month leaves once its own income is counted. monthsOfBadMonthsCovered = currentSavings ÷ badMonthGap when that gap is positive; when bad-month income covers or exceeds expenses, badMonthGap is zero and the calculator reports a large sentinel instead of dividing by zero. Dollar outputs round to the cent from unrounded intermediates; essential expenses must exceed zero and bad-month income cannot be negative.
The framing of an emergency fund as cash set aside for unplanned expenses or income loss — sized around your own essential spending, not a one-size-fits-all number — follows the Consumer Financial Protection Bureau's essential guide to building an emergency fund. The 3-6 (and 6-12 for variable income) month benchmarks are common conventions, not regulator-mandated figures, and the bad-month gap framing is this tool's own addition for irregular income, not a published methodology; treat it all as a planning estimate, not personalized advice.