How the calculation works
after-tax return = return × (1 − tax rate)
wealth = Σ monthly cash invested × (1 + after-tax return ÷ 12)^months left
Both strategies spend the same cash every month: the scheduled payment plus the extra amount. Prepaying puts all of it on the loan; when the loan ends, the whole budget is invested. Investing pays only the scheduled payment and invests the extra every month. Both are measured on the original payoff date.
Investment returns compound monthly at the after-tax rate, which is the assumed return times one minus your tax rate. Prepaying saves interest at the loan APR, so the breakeven is the after-tax return at which both end equal, found by bisection. When your after-tax return equals the APR, the two strategies tie.
Every formula on the site is documented on the methodology page.
Scenarios with real numbers
$25,000 at 7.5% APR, 60 months left, $300 extra a month
Prepaying clears the loan in 35 months and saves $2,159 in interest. The breakeven after-tax return is 7.50%.
Savings account at 4.5%, taxed at 15%
After tax the account earns 3.82%, well under the loan rate, so prepaying comes out ahead by $1,153.
A stock index returning 9% a year, taxed at 15%
If that return were certain, investing would win by $51. It is not certain, which is the risk you take on in exchange for the possible gain.
Frequently asked questions
Is a known saving better than an expected return?
Prepaying a loan saves interest at the loan APR whatever markets do, assuming you keep the loan to term. Investment returns are an assumption you type in. The tool shows what that assumption is worth, not a forecast.
Does paying a car loan early hurt my credit?
Closing an installment loan can cause a small, temporary dip in some scores because an active account closes. It is rarely a reason to keep paying interest.
Why include tax?
Savings interest is taxed as ordinary income and investment gains are taxed too, so the after-tax return is what you keep. Loan interest on a car is usually not deductible.
Should I keep an emergency fund first?
Cash sent to a loan cannot be withdrawn again. Many people keep several months of expenses in savings before prepaying debt.