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 three concrete numbers: the target fund you're aiming for, how many months your current savings already cover, and exactly how much to set aside each month to close the gap on your own timeline.
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 looks at what you've already got saved and expresses it in the same unit as your goal — months, not dollars — because "$5,000" means something very different to someone spending $2,000 a month than to someone spending $6,000 a month: currentRunwayMonths = currentSavings ÷ monthlyEssentialExpenses.
Then it works out the gap between where you are and where you want to be (gap = targetFund − currentSavings) and spreads that gap evenly across however many months you've given yourself to close it: monthlySavingsNeeded = gap ÷ goalMonths. If your current savings already meet or beat your target, the gap is zero or negative and the calculator reports $0 needed — you're already there. Every output is rounded to the cent from the unrounded intermediate values, so nothing drifts between steps.
Worked example
Say your essential expenses run $3,000 a month, you've already got $5,000 set aside, you're targeting the default 6 months of coverage, and you're 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 your income stopped tomorrow — not six months. Saving $1,083.33 a month for the next year closes that gap exactly on schedule. Push the target out to 9 or 12 months (common advice if your income is variable) and both the target fund and the monthly savings figure scale up with it; stretch the goal window to 18 or 24 months instead of 12 and the monthly number drops, at the cost of staying under-covered for longer.
How to interpret your result
The target fund is your finish line — the balance you want sitting in cash before you stop treating "building an emergency fund" as an active goal. Current runway in months is the honest version of your current safety net: it's easy to feel good about a dollar figure and forget that the same figure buys wildly different amounts of protection depending on your cost of living. Monthly savings needed is the actionable number — what to actually move into savings each pay period or month to hit your target fund inside the timeline you chose.
Three to six months of essential expenses is standard guidance for someone with a steady paycheck and reasonable job security. If your income is variable — freelance, commission, seasonal, gig work, or a single-income household — most financial educators push that toward 6 to 12 months, since a slow month doesn't come with severance or unemployment insurance the way a layoff from salaried work might. That's why this calculator defaults to 6 months rather than 3: it splits the difference and assumes at least some income variability, and you can move the slider up if yours is higher.
This tool only models essential expenses, not your full lifestyle spending, and only counts savings you could access within days without a penalty or a market sale — checking, savings, or a money market account, not retirement accounts or investments. It doesn't model interest earned while you save, taxes, or irregular windfalls (a bonus, a tax refund) that might shorten your timeline faster than steady monthly contributions. Treat it as a planning target, not a guarantee, and revisit the inputs whenever your expenses or income situation changes.
Methodology & sources
targetFund = monthlyEssentialExpenses × targetMonths; currentRunwayMonths = currentSavings ÷ monthlyEssentialExpenses (zero if expenses are zero); gap = targetFund − currentSavings; monthlySavingsNeeded = gap ÷ goalMonths when the gap is positive and a goal window is set, otherwise zero. All outputs are rounded to the cent from unrounded intermediates, and the calculator requires monthly essential expenses greater than zero to avoid a divide-by-zero runway calculation.
The framing of an emergency fund as cash set aside specifically for unplanned expenses or income loss — and the practice of sizing it around your own essential spending rather than 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 used here are common financial-planning conventions, not a figure mandated by any regulator; this tool is a planning estimate, not personalized financial advice.