Pay off student loans or invest: the math
Last updated
Educational content, not financial or legal advice. Doc Debts isn't a lender and earns nothing from any lender mentioned.

Extra dollars either erase loan interest at a known rate or seek investment returns that are not known in advance. A 2026-27 graduate federal loan charges 8.07 percent fixed, so every extra dollar toward it earns exactly that, guaranteed.1 Investing offers no such number on these pages. The rest is a labelled-hypothetical comparison, not advice.
What does paying extra buy you?
A guaranteed return equal to the loan's rate, plus a shorter clock.
- Each extra dollar against an 8.07-percent balance avoids 8.07 cents of yearly interest, with zero uncertainty.1
- Shorter repayment means fewer months of required payments and less total interest, whatever the plan.1
- A qualifying payment "is a full, on-time monthly payment"; paying more in a month adds no qualifying months, and after month 120 the remainder is forgiven.2
- Liquidity is the cost: dollars sent to the servicer no longer cover emergencies or opportunities.
What does investing buy you?
Liquidity and a chance at growth, with no promised number anywhere on the cited pages.
- Invested dollars stay reachable (subject to account rules) while loan dollars do not.
- No cited source on this site states an expected market return, so this page compares no number against the loan rate.
- Taxes cut both ways: IDR balances discharged on or after January 1, 2026 are taxed as income, while PSLF discharge stays excluded, which changes the payoff target for each track.34
- Volatility is the cost: invested dollars can fall while loan interest accrues regardless.
How do doctors usually decide?
By balance, rate, track, and cash cushion, weighed side by side. For scale, 71 percent of the Class of 2024 graduated with education debt, at a $205,000 median among indebted graduates.5
| Pay extra on loans | Invest the extra | |
|---|---|---|
| Return | Known: the loan's fixed rate1 | Unknown: no number cited here |
| PSLF track | One qualifying payment per month, whatever you pay2 | Minimum payments free cash for the same comparison |
| Non-PSLF track | Shorter clock, less total interest1 | Liquidity plus possible growth |
| Downside | Cash locked with the servicer | Growth may trail the loan rate |
| Downside | One month earns one qualifying payment2 | Losses compound while interest accrues |
- High-rate, non-forgivable balances argue for payoff; PSLF-track balances argue for minimums.21
- An emergency fund comes before either: illiquid extra payments help nothing in a crisis.
What does $10,000 extra do?
A labelled hypothetical computed on the loan. Take $10,000 of extra cash (hypothetical) against an 8.07-percent balance (hypothetical rate): it avoids about $807 of interest in a year (hypothetical).1 Invested instead, the same $10,000 (hypothetical) earns whatever the market gives, stated here as unknown because no cited source gives a number. The payoff leg is exactly $807; the investing leg is a question mark. Choose the certain $807 or the uncertain market, knowingly.
Where does PSLF fit in?
PSLF-track borrowers play a different game: minimize qualifying payments, then run this same comparison on the freed cash. Income plans can hold payments low (RAP from a $10 floor), with the remaining balance forgiven after the equivalent of 120 qualifying monthly payments.62 Only one qualifying payment counts per month, so dollars above the plan minimum buy no extra forgiveness months; the payoff-vs-invest question applies to those dollars.2 Non-track borrowers skip this section: every extra dollar shortens their clock.
Should I pay off my medical school loans fast or invest the difference as an attending?
As an attending, the rate decides more than the title does. Extra payments against a 2026-27 graduate balance earn a guaranteed 8.07 percent by erasing that interest, while investing earns whatever the market gives, which no cited source here will put a number on.1 PSLF-track attendings should pay only plan minimums, since extra dollars buy no additional forgiveness months beyond the 120.2 Non-track attendings with full emergency funds should weigh the certain 8.07 percent against their need for liquidity. Run the $10,000 hypothetical above with your balance before choosing.
Common questions
Do most doctors pay off their student loans?
No cited source on this site states what share of doctors fully repays versus rides forgiveness. What is measured: 71 percent of the Class of 2024 graduated with education debt at a $205,000 median among indebted graduates, and federal loans set the payoff clock by balance, rate, and plan.51 Payoff timing varies with training length, employer track, and income. Count your own months and balance rather than following a majority no one has counted.
Is it better to pay off your student loans or invest?
It depends on the track and the rate, compared with labelled numbers. Extra payments earn the loan's fixed rate with certainty (8.07 percent for 2026-27 graduate loans), while investing earns an unknown this page will not invent.1 PSLF-track borrowers gain nothing from extra loan payments past the plan minimum, since only 120 months count.2 Run the $10,000 hypothetical above with your own balance and rate, then pick knowingly.
At what age do most doctors pay off student loans?
No cited source states a payoff age. The inputs vary too widely: graduation debt (median $205,000 for indebted Class of 2024 graduates), training length, plan choice, and whether PSLF wipes the remainder after 120 qualifying payments.52 A borrower who trains long on income plans and earns forgiveness finishes paying years before the balance would amortize; a borrower who refinances and repays in full finishes on the contract's schedule. Your plan sets your age, not an average.
Should I split extra dollars between loans and investing?
Splitting is the honest answer when the comparison is close. Part of each extra dollar buys the certain loan-rate return, 8.07 percent for 2026-27 graduate loans,1 while the rest keeps liquidity and a chance at growth. Revisit the split when facts change: entering or leaving PSLF track, a rate change at refinance, or an emergency fund below comfort all move the line. The calculator below reruns the math whenever your numbers change.
Sources
-
FSA Partners: 2026-27 Direct Loan rates Checked 2026-09-30. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
-
Federal Student Aid: Public Service Loan Forgiveness Checked 2026-09-30. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
-
Federal Student Aid: IDR Plan FAQs Checked 2026-09-30. ↩
-
IRS Topic 431: Canceled Debt Checked 2026-09-30. ↩
-
AAMC Debt Fact Card, Class of 2024 Checked 2026-09-30. ↩ ↩2 ↩3
-
Federal Register: RISE final regulations Checked 2026-09-30. ↩