The fine print of trading and investing


Column · Argument · Investing

An Emergency Fund Is the Margin of Safety Under a Portfolio

An emergency fund is the margin of safety under every portfolio you own. Without one, a lost job in a downturn turns a paper loss into a sale at the bottom.

AI-assisted, reviewed by the The Margin Report human editor: John James → 4 min read Published

A person holding a red umbrella and a camera in front of a wall covered in dark ivy
Photo by FUTC on Unsplash

The call

Keep several months of expenses in cash-like savings before investing, because the fund is what stops a lost job from forcing a sale at the low.

Cash needed
$12,000
Same shares at the peak
$16,000

Sell 400 shares, market order, good for the day. At $30 a share the ticket raises $12,000. A year ago the same 400 shares were worth $40 each, $16,000 in total. Nobody places that order because they think it’s a good time to sell. They place it because the paycheck stopped and the rent didn’t.

The sale you are forced to make

Job losses and falling markets tend to arrive together. The downturn that squeezes company profits squeezes payrolls too. Without cash on hand, the only money available in that stretch is the portfolio. And the portfolio is down.

Take a hypothetical household that spends $2,000 a month. One earner loses a job just as stocks fall 25% from their peak.

The household spends $12,000. It gives up shares that were worth $16,000 at the peak, and more to the point, it gives up whatever those shares do in the recovery. A paper loss that would have healed with time becomes a realized one. The portfolio ends the year smaller than a patient holder’s, though its holdings did nothing wrong.

With $12,000 set aside in cash, nothing has to be sold. The portfolio can sit through the fall.

Graham’s term, applied to a household

Benjamin Graham used margin of safety for the gap between what you pay for a stock and what you estimate it is worth, room enough that an error in the estimate still leaves you whole. The margin of safety entry works his version through with numbers, and Graham’s margin of safety rebuilt for a trading account moves it into position sizing.

An emergency fund is the same idea one level down. Every portfolio plan assumes no forced sale. The fund is the room that lets the assumption be wrong.

The objection: cash earns less

The strongest case against a large fund is plain arithmetic. Over long periods stocks have tended to earn more than cash, so every dollar parked in savings compounds more slowly, and a household that holds $12,000 in cash for a decade gives up whatever that money would have grown to in the market over all those years of rising prices and reinvested dividends.

That is a real cost, and nobody knows in advance how large it will be over the decade you actually live through. It is also an insurance premium, and premiums can be priced. Suppose, hypothetically, stocks outearn cash by 4 percentage points a year.

The comparison is not exact, since the $4,000 is a shortfall against the peak that could partly recover, and the lost upside on the sold shares could be worth more or less. But the shape holds. You pay a small, steady premium. In exchange, a lost job in a bad market stops being a portfolio event.

Where the cash goes

The fund needs two properties. You can reach it within days. Its value doesn’t move with stocks. Insured savings accounts, Treasury bills and money market funds all fit. Each pays something. None is the place to chase yield. Bills can be bought on a staggered schedule, so part of the fund matures each month or quarter and turns back into cash without any sale.

A forced sale at a loss gets a small tax cushion. Realized capital losses offset capital gains, and up to $3,000 of any excess can offset ordinary income each year under IRS rules, with the rest carried forward, as the answer on how capital losses offset gains and income explains. That is a consolation. It does not give you the shares back.

Hold the fund first, and never borrow it

The call: before money goes into stocks, set aside cash for several months of expenses. Size it to your own situation. Six months is the example above; a household with two secure incomes can reasonably hold less, and one depending on a single commission-based income, a small business or seasonal work should hold more, because the fund’s job is to cover the longest gap you can realistically face without touching the portfolio.

Run the sum for your own household. Add up the bills that keep coming when a paycheck stops: housing, insurance, food, debt payments, utilities. Multiply by the number of months you might plausibly go without income. At $2,000 a month, a four-month fund is $8,000 and a nine-month fund is $18,000. Where you land between them depends on how exposed your income is to the same downturn that would be hitting your portfolio. If you ever draw on the fund, refill it before new money goes back into stocks.

Never count a margin loan as the fund. The loan is secured by the same stocks that are falling, the broker can raise its requirement in a volatile market, and a deeper fall brings a margin call that sells your shares at the low anyway, which is the exact outcome the fund exists to prevent. The same logic keeps dividend stocks from standing in for bonds.

The call weakens only for a household whose income can’t plausibly stop. There aren’t many.

Readers also ask

Where should you keep an emergency fund?

Somewhere you can reach within days at a known value: an insured savings account, Treasury bills, or a money market fund. Check whether the account is insured by the FDIC or covered by SIPC, how quickly you can withdraw, and whether any early redemption or transfer delay applies.

Can a margin loan be your emergency fund?

It shouldn't be. A margin loan is backed by the very holdings that drop in a downturn, so the room to borrow shrinks exactly when you need it, the broker can raise its requirement without notice, and a deeper fall can bring a margin call that forces the sale the fund was meant to prevent.

Should you invest your emergency fund in stocks to earn more?

Stocks can fall 25% in the same months a job disappears, and money you may need within a year shouldn't be exposed to that. The fund's lower return is the price of never having to sell. Money beyond the fund can go into the portfolio.