XIRR Auditor
Free · No signup · Runs in your browser

Compare two strategies: pay off debt first then invest, vs. invest while servicing debt. See which builds more net wealth over your time horizon.

Debt & investment details
$

Total outstanding debt (student loan, car, personal loan)

%

Annual interest rate on the debt

$

Total monthly budget — used entirely to pay debt (Strategy A) or pay debt and invest (Strategy B)

%

Annual return on invested money (US equities avg ~10%)

1–40 years

The core trade-off

Paying off debt is a guaranteed return equal to the debt's interest rate. Investing gives an expected return that's uncertain. If your debt charges 7% and you expect 10% from investments, investing mathematically wins — but with risk. If debt charges 20% (credit card), paying it off first is nearly always right.

The psychological factor

Math doesn't capture the stress of carrying debt or the motivation boost from becoming debt-free. Some people invest better when debt-free; others stick to their strategy regardless. The "right" answer is the one you'll actually follow consistently.

Debt typeTypical rateRecommendation
Credit card18–30%Pay off immediately
Personal loan8–15%Pay off before investing
Auto loan5–8%Borderline — math says invest
Student loan4–7%Borderline — situational
Mortgage3–7%Invest alongside; tax deductible

Frequently asked questions

What about the employer 401k match?

Always contribute enough to get your full employer 401k match first — it's an instant 50–100% return, which beats any debt rate. After capturing the match, the debt-vs-invest math applies to remaining income.

Does the mortgage tax deduction change the math?

If you itemize deductions, your effective mortgage rate is lower. A 6% mortgage with a 22% tax bracket has an effective after-tax cost of ~4.7% — even more borderline against expected market returns.

What counts as 'investing while paying'?

Strategy B pays only the interest on the debt each month (keeping the principal constant) and invests the remainder of your monthly budget. At the end of the horizon the full principal is still owed, so net wealth subtracts it. This models the classic trade-off: keeping low-cost debt and putting extra cash to work in the market.

Related tools