Pay Off Debt or Invest?
Put extra cash on the loan or into the market? Simulate both and see the break-even return.
Results
How it works
Both paths start with the same cash each month. Path A sends the regular payment plus the extra to the loan until it is gone, then invests the whole amount. Path B sends only the regular payment to the loan and invests the extra from month one. Both paths earn the same return on what they invest.
Interest on the loan is balance x rate / 12 each month, charged before the payment. Investments grow at return / 12 a month, after tax drag is taken off the yearly return. Net worth is invested money minus the loan owed.
The break-even return is the yearly return at which both paths finish with the same net worth. It is found by bisection. If your expected return is below the break-even, paying the loan is the better choice.
Limits: the return is one steady figure, not a market path, and the tax drag is a flat estimate. The horizon is capped at 50 years. If the regular payment does not cover the monthly interest, the loan never shrinks on Path B and a warning is shown. Figures are editable; verify them for the current year.