
Pay Off Student Loans Early or Invest? The After-Tax, After-Forgiveness Math
The classic question has two new wrinkles in 2026: RAP and PSLF can make extra payments worthless, and income-driven forgiveness is taxable again. Here is the order to decide in, and the math behind it.
๐ On this page โผ
๐ Figures verified Sep 28, 2026 against IRS Tax Topic 456 and Rev. Proc. 2025-32 (the 2026 student loan interest deduction limits), IRS Publication 4681 (taxable forgiveness), IRS release IR-2025-111 (2026 401(k) and IRA limits), Federal Student Aid's 2026-27 rates and PSLF pages, and the Federal Reserve's target range. Returns in the example are illustrative. How we check numbers โ
If you're headed for PSLF or likely income-driven forgiveness, don't prepay: extra payments only shrink what's forgiven. Otherwise compare your loan's after-tax rate with what your money could earn. Grab any 401(k) match and build an emergency fund first. Prepay loans at about 7% or more, invest when the rate is under about 5%, and split the difference in between.
Numbers That Matter
| Figure | Amount | Source | Verified |
|---|---|---|---|
| Student loan interest deduction | $2,500 a year per return, without itemizing | IRS Tax Topic 456 | Sep 28, 2026 |
| 2026 deduction phase-out, single | $85,000 to $100,000 of modified AGI | IRS Rev. Proc. 2025-32 | Sep 28, 2026 |
| 2026 deduction phase-out, joint | $175,000 to $205,000 (none if married filing separately) | IRS Rev. Proc. 2025-32 | Sep 28, 2026 |
| Federal loan rates (2026-27) | 6.52% undergraduate, 8.07% graduate, 9.07% PLUS | Federal Student Aid | Sep 28, 2026 |
| Income-driven forgiveness | Taxable again for forgiveness after 2025; PSLF stays tax-free | IRS Publication 4681 | Sep 28, 2026 |
| 2026 contribution limits | $24,500 for a 401(k), $7,500 for an IRA | IRS IR-2025-111 | Sep 28, 2026 |
| Fed's target range | 3.75% to 4.00% since Sep. 16, 2026 | Federal Reserve | Sep 28, 2026 |
Step 1: Will Any of This Be Forgiven?
Forgiveness changes the math completely. If you're working toward PSLF, whatever is left after 120 qualifying payments is forgiven tax-free, so every extra dollar you pay only shrinks the forgiveness. Pay the lowest qualifying amount, usually on RAP or IBR, and invest the rest. Income-driven forgiveness is slower (30 years on RAP, 20 or 25 on IBR) and, for forgiveness after 2025, taxable again, so it only matters when your balance is large compared with your income. Private loans aren't forgiven, except sometimes on death or disability, so they go straight to Step 2.
Step 2: What Comes Before Either
- Your employer's 401(k) match. A 50% or 100% match beats any loan rate.
- An emergency fund of three to six months of expenses, so a surprise bill doesn't land on a credit card. Our emergency fund guide covers where to keep it.
- Credit cards and other high-rate debt, highest rate first, as in the avalanche method.
- Then the student loan question below.
Step 3: Find Each Loan's After-Tax Rate
Up to $2,500 of student loan interest a year is deductible without itemizing. For 2026 the deduction phases out between $85,000 and $100,000 of modified AGI for single filers and between $175,000 and $205,000 for joint filers, and married people filing separately can't take it. When it applies, a loan's after-tax rate is its rate times one minus your tax bracket, but only on the first $2,500 of interest each year.
| Loan | Rate | After tax, 22% bracket, fully deductible |
|---|---|---|
| Undergraduate Direct loan (2026-27) | 6.52% | 5.09% |
| Graduate Direct Unsubsidized (2026-27) | 8.07% | 6.29% |
| Parent PLUS (2026-27) | 9.07% | 7.07% |
| Undergraduate loan from 2020-21 | 2.75% | 2.15% |
| Private loan (illustrative) | 11.00% | 8.58% |
Above the phase-out, or once your interest passes $2,500, the after-tax rate is simply the rate.
Step 4: Compare With What Investing Could Earn
Prepaying earns exactly the loan's after-tax rate, guaranteed. Investing earns whatever markets deliver: stocks have returned more than 7% a year over long periods, with losing years along the way, while high-yield savings pay roughly in line with the Fed's target range, now 3.75% to 4.00%. That gives a workable rule of thumb:
- After-tax rate of about 7% or more: prepay. Few safe investments beat a guaranteed 7%.
- Under about 5%: invest, ideally inside a 401(k) or Roth IRA, where growth isn't taxed each year.
- Between 5% and 7%: split the extra money, or let your comfort with risk decide; prepaying is the sure thing.
Two more factors favor prepaying: a smaller balance lowers your debt-to-income ratio before a mortgage, and it frees up cash flow sooner. One favors investing: money you invest stays yours and can be reached in a crisis, while money paid to a lender can't be borrowed back, so keep your emergency fund intact first.
Worked Example: $300 a Month, Two Ways
Alex owes $40,000 on a 10-year plan and has $300 a month to spare. Option A puts it toward the loan, then invests the whole freed-up payment once the loan is gone. Option B makes only the required payment and invests the $300 in a Roth IRA. Both are debt-free by year 10; the question is which leaves more invested.
- At 6.52%, investments earning 7%: the required payment is $454.60. Prepaying clears the loan in 5 years 3 months and saves $7,246 of interest, leaving $51,177 invested by year 10. Investing instead leaves $51,925, $748 more, if the 7% shows up.
- At 9.07%, as on a Parent PLUS loan: prepaying leaves $55,341 against $51,925 from investing: $3,416 ahead, with no market risk.
- At 6.52%, but investments earn 4%: prepaying wins, $47,566 to $44,175.
- If Alex were on track for PSLF: on RAP the payment might be $241.67 a month. Adding $300 a month for 36 months would be $10,800 that forgiveness would otherwise have covered.
Returns are illustrative and not guaranteed; the example ignores the interest deduction, which makes prepaying slightly less valuable when it applies. Alex is an illustration.
Decision Rules
If this, then that
- If you're pursuing PSLF โ pay the lowest qualifying amount and invest the rest.
- If you don't have your full 401(k) match or an emergency fund โ do those first.
- If a loan's after-tax rate is 7% or more โ prepay it, highest rate first.
- If it's under 5% โ invest the extra, starting with tax-advantaged accounts.
- If you're applying for a mortgage within a few years โ paying down balances can lower your debt-to-income ratio.
Mistakes to avoid
- Prepaying loans that PSLF would have forgiven.
- Skipping a 401(k) match to pay down a 6% loan.
- Draining your emergency fund to make a big lump-sum payment.
- Letting extra payments advance your due date instead of cutting principal; tell your servicer to apply them to principal on the highest-rate loan.
- Assuming income-driven forgiveness is tax-free; for forgiveness after 2025 it's taxable again.
Related: the student loan tax bomb explains how forgiveness is taxed from 2026; PSLF in 2026 covers what counts; RAP vs IBR vs Tiered Standard compares the plans; and Roth IRA vs 401(k) covers where invested money should go.