When I graduated I had $24,000 in federal student loans at 4.5%. Within two years I had a small taxable brokerage account, an emergency fund, and a 401(k) at work with a 4% match. The question I could not answer cleanly was: should I be aggressively paying down the loan, or putting that extra money into the brokerage?
Every personal-finance article I read at the time said the same thing: compare the loan rate to the expected market return; if the expected return is higher, invest. With long-term equity returns historically around 7% real, and my loan at 4.5%, the rule said invest. I did the opposite for two years and then switched. Both moves were defensible. The reason the simple rule is incomplete is interesting.
The 'just compare rates' rule
The rule, stated cleanly: if the after-tax interest rate on the debt is lower than your expected after-tax investment return, invest the marginal dollar. If higher, pay down. The math, on a spreadsheet, is correct.
What the rule assumes is that the two paths are emotionally and behaviorally identical. They are not.
What the simple rule misses
Three things.
The market return is expected, not guaranteed. The 7% real number is a long-run average across rolling thirty-year windows. Over any five-year window, the actual return can be flat, negative, or 14% annualized. If you start investing in a bad cohort while carrying a loan you could have paid down, the gap can be uncomfortably large for uncomfortably long.
The behavior changes are not equivalent. Setting up a direct deposit into a brokerage account once and forgetting about it is roughly as effortful as setting up an auto-payment to your loan servicer. But selling part of the brokerage account to cover an emergency feels like a defeat; sending an extra mortgage payment never does. The instruments are not interchangeable inside a person's head.
Risk capacity changes with debt. A household with $40,000 of consumer debt cannot tolerate the same equity allocation as one without. Paying down the debt isn't only a return calculation — it is a risk-capacity increase. The "return" on the debt payoff is not just the avoided interest; it is the marginal increase in how much equity risk you can carry on the rest of the balance sheet.
The seven columns I track
The spreadsheet I built had seven columns per debt:
- Balance — current outstanding.
- Nominal rate — APR.
- Tax-deductible? — student-loan interest is deductible up to a limit for some incomes; mortgage interest may be; credit-card interest is not. This turns the nominal rate into an effective rate.
- Effective rate — nominal rate adjusted for deductibility.
- Required minimum monthly — what I must pay regardless.
- "Sleep cost" — a 1-to-5 score for how much carrying this debt bothers me at 3 AM. Not a number, a vibe. Worth tracking honestly.
- Prepayment penalty? — yes/no.
Then I ranked everything by effective rate, plus a sleep-cost tiebreaker. Anything above my conservative-end equity return assumption (I use 5%, not 7%) went into the "pay down" column. Anything below went into "invest." Credit-card debt — at any rate — is always pay-down first, before brokerage contributions.
If you cannot pay extra on the loan without raiding the emergency fund, you do not have a debt-versus-investing question yet. You have an emergency-fund question.
What I actually did
My student loan at 4.5% sat below my conservative-end equity assumption. The textbook said invest. My sleep-cost score said pay down. I split the difference for two years — $300 a month extra to the loan, $400 a month into a taxable brokerage — and was, in hindsight, slightly worse off in pure-return terms than if I had pushed the whole $700 into the market that year. I was, however, noticeably calmer.
In year three, with the loan balance under $9,000, I cleared the rest in a single quarter using a bonus. The remaining brokerage trajectory has been fine. The hybrid path was not optimal in spreadsheet terms; it was probably optimal in behavior terms.
Three rules of thumb
- Credit-card debt first, always. A 22% APR will beat the market every year, in the wrong direction.
- Match first. If your employer matches 401(k) contributions, capture the full match before doing anything else. It is a guaranteed return that no debt rate touches.
- Sleep matters. If the spreadsheet says invest and your gut says pay down, paying down is rarely the wrong move. The actual return-on-sleep is hard to estimate, but it is not zero.
The textbook answer is correct in expectation. The lived answer includes the variance, the behavior change, and the night-of-bad-news call you do not want to have to make. Build the spreadsheet anyway. Look at it. Then make the human decision.





