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 student loan payoff vs. invest calculator finds it. 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 can also model the student loan interest deduction. The table below has it switched off, so it compares each loan's full rate with the return; the deduction section turns it on.

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, a 6% expected return and the interest deduction off: break-even market return 6.72%; prepaying the loan ends $868 ahead of investing the extra.

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 $500 of level a tie; the smallest gap here, $508 for the 8.07% loan at 8%, only just clears that. 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: the invest path's net worth minus the prepay path's, where net worth is investments minus the balance still owed. The line starts at zero, falls below it in the first year and keeps falling, ending at -$868: prepaying ahead.

The chart shows the 6.52% loan at 6%: the invest path's net worth minus the prepay path's, where net worth is investments minus the balance still owed. The prepay path puts everything into the loan until it is gone after 4 years 7 months, then invests the freed payment plus the $300. The gap widens every year in its favor and finishes at $868.

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%.

Switch the calculator's deduction on with that income, filing status and rate, and it puts the loan's effective rate at 5.09%. Prepaying still saves $6,203 of interest, but it also gives up $1,365 of tax savings on the interest it avoids. The break-even drops to 5.24%, and at 6% investing now ends $918 ahead instead of $868 behind. Open this scenario.

Calculator figures for the same loan at a 6% return with the deduction on, for a single filer with $75,000 of modified AGI at a 22% rate: paid off after 4 years 7 months, $6,203 of interest saved, an effective loan rate of 5.09%, and the invest path ending at $52,174 against $51,256.

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 calculateStudentLoan in the student loan 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. With the deduction on, each year's tax saving is the lesser of that year's interest and $2,500, times the share left after the phase-out, times the marginal rate. 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 Student Loan Payoff vs. Invest calculator. Change any input there and the numbers update.