DecisionSheet

Pay off student loans early or invest? Compare the loan rate with your expected return

By DecisionSheet · Updated · 2026 tax figures

Every extra dollar paid on a student loan stops interest at the loan's rate, guaranteed. Every dollar invested earns whatever the market returns, which is not known in advance. So the comparison comes down to one number: the market return at which the two come out level. DecisionSheet's mortgage calculator finds it for any fixed-rate loan, and a student loan amortizes the same way a mortgage does. Run on a $30,000 loan over 10 years, the break-even is 4.07% at a 4.00% rate, 6.72% at 6.52% and 8.38% at 8.07%.

Three things can matter more than that comparison: an employer match, the tax deduction on student loan interest, and whether a federal loan might be forgiven. They are covered after the numbers.

The example

The calculator follows both paths for the loan's 120 months. On the prepay path, the $300 goes to principal until the loan is gone, after which the freed payment and the $300 are invested every month. On the invest path, the loan runs its full term and the $300 is invested every month. Both spend the same money each month, so the comparison is which account is larger at the end.

The calculator was built for mortgages and asks for a price and a down payment; the loan is the difference. Enter a price of $100,000 and a down payment of $100,000 minus your balance ($70,000 here), and leave property tax and insurance at zero.

Three rates, two returns

4.00% loan 6.52% loan 8.07% loan
Monthly payment $304 $341 $365
Interest over 10 years, no extra $6,448 $10,914 $13,811
Paid off with $300 extra after 4 years 7 months 4 years 7 months 4 years 6 months
Interest saved by prepaying $3,595 $6,203 $7,943
Break-even market return 4.07% 6.72% 8.38%
At 8%: invest minus prepay +$4,970 +$1,692 -$508
At 6%: invest minus prepay +$2,229 -$868 -$2,943

Open each case: 4.00%, 8% · 4.00%, 6% · 6.52%, 8% · 6.52%, 6% · 8.07%, 8% · 8.07%, 6%.

A positive figure means investing ended ahead; a negative one, prepaying. The pattern follows the break-even row:

Calculator verdict for a $30,000, 10-year loan at 6.52% with $300 a month extra and a 6% expected return: break-even market return 6.72%; paying the loan off first ends $868 ahead, inside the calculator's $2,000 neutral band.

The dollar amounts are small. A 10-year loan does not leave long for either path to compound, and the largest gap in the table is $4,970. The calculator calls any finish within $2,000 of level a neutral result, and three of the six cases land there. For a loan this size, the choice matters less than the reasons below, which can each move it by more.

Chart over 10 years for the same loan. Investing the $300 each month grows steadily to $48,742; the prepay path holds nothing until the loan is gone after 4 years 7 months, then invests the freed payment and finishes at $49,610.

The chart shows the 6.52% loan at 6%. The prepay path holds nothing in the account until the loan is gone after 4 years 7 months; from then on it invests the freed payment plus the $300, and finishes $868 ahead.

Take the employer match first

A 401(k) or 403(b) match is paid on the contribution itself. A match of 50% of each dollar contributed is a 50% return on the day the money goes in, before any market return, and no loan rate in this table, nor the 9.07% PLUS rate, comes close to it. Contributing enough to receive the full match comes before any extra loan payment. Check the plan's vesting schedule: a match that is forfeited on leaving before it vests is worth less to someone likely to leave.

The student loan interest deduction

Interest on a qualified student loan is deductible up to $2,500 a year. It is an adjustment to income, so it applies whether or not you itemize (IRS Topic 456). Married people filing separately cannot take it. For 2026 the deduction phases out for modified adjusted gross income between $85,000 and $100,000, or $175,000 and $205,000 on a joint return (Rev. Proc. 2025-32, section 4.29).

When the deduction applies in full, each dollar of interest costs a dollar less your marginal tax rate, and so each dollar of interest a prepayment avoids is worth that much less. Take a single filer with $75,000 of modified adjusted gross income, below the phase-out, whose taxable income sits in the 22% bracket. The 6.52% loan's first year of interest, $1,891, is under the $2,500 cap, and every later year's is smaller, so all of it is deductible. After tax the loan costs about 6.52% × (1 − 22%) = 5.09%.

Entered at that rate, the calculator's break-even drops to 5.21%, and at 6% investing now ends $931 ahead instead of $868 behind. Open this scenario.

Two cautions. The investment side can be taxed too: in a taxable account, the return after tax is lower than the figure entered, which pulls the comparison back toward prepaying. And the deduction stops helping above the phase-out, or on interest beyond $2,500 a year; for those dollars the pre-tax rate is the real one.

Federal loans: forgiveness changes the question

The comparison assumes every dollar of the loan will be repaid. For federal loans that is not always so. Public Service Loan Forgiveness cancels the remaining balance after qualifying payments while working for a qualifying employer, and income-driven repayment plans can forgive a balance left after many years of payments (Federal Student Aid). Anyone on track for either should not prepay: an extra dollar paid only shrinks the amount that would have been forgiven.

Federal loans also carry protections private loans generally do not, such as income-driven payments, deferment and forbearance. Prepaying does not give those up, but refinancing a federal loan into a private one does. The repayment plans available have changed in recent years; check current terms with your servicer or at studentaid.gov before deciding.

Assumptions and limits

Method and sources

The model is calculateMortgage in the mortgage payoff vs. invest calculator. The monthly payment is the standard fixed-rate amortization formula, the two paths are simulated month by month, and the break-even return is found by bisection against that same simulation. Every figure above is produced by running the model on the inputs in the scenario links. The deduction limits are read from the site's tax constants for 2026.

Open this scenario in the calculator

All figures on this page come from the Mortgage Payoff vs. Invest calculator. Change any input there and the numbers update.