A small wooden balance with three figures on a dark marble surface.
Photo: Ann H ยท Pexels
Home/Student Loans & College/Pay Off Loans or Invest?
๐ŸŽ“ Student Loans ยท Strategy

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.

โœ๏ธ Written by DigitalWealthSource
๐Ÿ” Reviewed by Derek Giordano
๐Ÿ“… Updated Sep 28, 2026
โฑ๏ธ 6 min read
๐Ÿ“‘ On this page โ–ผ
Step 1: Forgiveness Step 2: What Comes First Step 3: After-Tax Rates Step 4: Compare With Investing Worked Example Decision Rules FAQ

๐Ÿ“ 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 โ†’

The short answer

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

FigureAmountSourceVerified
Student loan interest deduction$2,500 a year per return, without itemizingIRS Tax Topic 456Sep 28, 2026
2026 deduction phase-out, single$85,000 to $100,000 of modified AGIIRS Rev. Proc. 2025-32Sep 28, 2026
2026 deduction phase-out, joint$175,000 to $205,000 (none if married filing separately)IRS Rev. Proc. 2025-32Sep 28, 2026
Federal loan rates (2026-27)6.52% undergraduate, 8.07% graduate, 9.07% PLUSFederal Student AidSep 28, 2026
Income-driven forgivenessTaxable again for forgiveness after 2025; PSLF stays tax-freeIRS Publication 4681Sep 28, 2026
2026 contribution limits$24,500 for a 401(k), $7,500 for an IRAIRS IR-2025-111Sep 28, 2026
Fed's target range3.75% to 4.00% since Sep. 16, 2026Federal ReserveSep 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

  1. Your employer's 401(k) match. A 50% or 100% match beats any loan rate.
  2. 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.
  3. Credit cards and other high-rate debt, highest rate first, as in the avalanche method.
  4. 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.

LoanRateAfter 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-212.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

๐Ÿงฎ Worked Example: Alex's Extra $300 (illustrative)

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.
๐Ÿงฎ Check Your Forgiveness Path First
The RAP vs IBR Calculator shows your payment on each plan, the first step in deciding whether prepaying makes sense.
Open the calculator โ†’

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.

Frequently Asked Questions

Should I pay off student loans early or invest?
+
Check forgiveness first: if you are pursuing PSLF or likely income-driven forgiveness, invest instead. Otherwise, after a 401(k) match and an emergency fund, prepay loans with an after-tax rate of about 7% or more and invest when the rate is under about 5%.
Is it worth paying extra on student loans if I am going for PSLF?
+
No. PSLF forgives whatever is left after 120 qualifying payments, tax-free, so extra payments only reduce the amount forgiven. Pay the lowest qualifying amount on RAP or IBR and put extra money elsewhere.
Is student loan interest tax-deductible in 2026?
+
Yes, up to $2,500 a year without itemizing. For 2026 the deduction phases out between $85,000 and $100,000 of modified AGI for single filers and $175,000 to $205,000 for joint filers, and married people filing separately cannot claim it.
What interest rate makes paying off student loans better than investing?
+
A common rule of thumb: prepay when the after-tax rate is about 7% or higher, invest when it is under about 5%, and split in between. Prepaying earns the loan rate with certainty; investment returns vary.
Is income-driven repayment forgiveness taxable in 2026?
+
Yes. The temporary exclusion covered forgiveness through 2025, so income-driven forgiveness after that counts as taxable income unless an exception such as insolvency applies. PSLF forgiveness and death or disability discharges remain tax-free.
โš ๏ธ Important Disclosure
DigitalWealthSource publishes educational financial content. Nothing on this site constitutes personalized financial, tax, legal, or investment advice. Every person's financial situation is unique. We strongly encourage consulting with a qualified financial advisor, CPA, or attorney before making significant financial decisions. Content is provided for informational and educational purposes only.
Sources: IRS Tax Topic 456; IRS Rev. Proc. 2025-32; IRS Publication 4681; IRS release IR-2025-111; Federal Student Aid (2026-27 rates, PSLF); Public Law 119-21 (RAP); Federal Reserve open market operations. Figures verified September 28, 2026.
๐Ÿ‘ค
Written & reviewed by Derek Giordano
Derek reviews all content on DigitalWealthSource. Background in business marketing with hands-on experience in debt payoff, homebuying, tax strategy, and long-term investing. Our methodology โ†’
✓
Independent & Ad-Free
No ads, no affiliate links, no sponsored content. Sources are listed on this page. Spot an error or an outdated figure? Tell us and weโ€™ll fix it.
📖 Sources & References
  1. Topic no. 456, Student loan interest deduction. Internal Revenue Service. https://www.irs.gov/taxtopics/tc456
  2. Rev. Proc. 2025-32: 2026 inflation adjustments (student loan interest phase-out). Internal Revenue Service. https://www.irs.gov/pub/irs-drop/rp-25-32.pdf
  3. Publication 4681, Canceled Debts, Foreclosures, Repossessions, and Abandonments. Internal Revenue Service. https://www.irs.gov/publications/p4681
  4. 401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500 (IR-2025-111). Internal Revenue Service. https://www.irs.gov/newsroom/401k-limit-increases-to-24500-for-2026-ira-limit-increases-to-7500
  5. Interest Rates and Fees for Federal Student Loans (2026-27). Federal Student Aid. https://studentaid.gov/understand-aid/types/loans/interest-rates
  6. Public Service Loan Forgiveness. Federal Student Aid. https://studentaid.gov/manage-loans/forgiveness-cancellation/public-service
  7. Public Law 119-21, enrolled text (Repayment Assistance Plan). GovInfo. https://www.govinfo.gov/content/pkg/PLAW-119publ21/html/PLAW-119publ21.htm
  8. Open Market Operations (federal funds target range). Federal Reserve Board. https://www.federalreserve.gov/monetarypolicy/openmarket.htm