You finished residency, maybe fellowship too. You're finally earning real money — the average physician salary in 2025 was $386,000, according to Medscape — and you're staring at two numbers that feel like they're in direct competition: $223,000 in student loan debt (the AAMC Class of 2025 average) and a retirement account that's barely above zero.
Every dollar you put toward loans is a dollar that isn't compounding in your 401(k). Every dollar you invest is a dollar still accruing interest on a loan balance that feels like it'll never die. The internet is full of people who will confidently tell you which one to prioritize. Most of them are oversimplifying a decision that has at least six variables.
This post walks through the actual math, the tax wrinkles that change the answer for high earners, the PSLF question, and the behavioral factors that no calculator captures. By the end, you won't have a single "right" answer — but you'll have the framework to find yours.
The Simple Math (That Everyone Quotes)
The basic framework is straightforward: compare the interest rate on your loans to the expected return on your investments. If your expected return is higher, investing wins. If your loan rate is higher, paying off debt wins.
The S&P 500 has returned approximately 10% annually over the long term (nominal, before inflation). Your federal student loans, if you took out Direct Unsubsidized loans for med school between 2020 and 2025, carry interest rates between 5% and 8%. PLUS loans are 7% to 9%. For loans disbursed July 2025 through June 2026, the rates are 7.94% (Direct Unsubsidized) and 8.94% (Direct PLUS).
At first glance, 10% beats 7-9%. Invest everything, right?
Not so fast. That comparison ignores three critical adjustments.
The Three Adjustments Nobody Makes
1. The student loan interest deduction doesn't exist for you.
The federal student loan interest deduction allows you to deduct up to $2,500 in interest per year, which effectively lowers your loan's cost. But the deduction phases out completely at $90,000 of modified AGI for single filers and $185,000 for married filing jointly.
If you're an attending physician earning $300,000+, you get zero benefit from this deduction. Your effective interest rate is your stated interest rate — no discount. Meanwhile, online calculators that bake in the deduction may understate your true borrowing cost by up to a full percentage point.
2. Investment returns are pre-tax. Loan payoff is a guaranteed after-tax return.
The S&P 500's 10% average return is nominal and pre-tax. In a taxable brokerage account, you'll owe capital gains taxes on the growth, reducing the effective return to roughly 7-8% depending on your bracket, holding period, and state. In California, where capital gains are taxed as ordinary income at up to 13.3%, the drag is significant.
Paying off a loan at 7.5% interest is a guaranteed, risk-free, after-tax return of 7.5%. No market risk. No sequence-of-returns risk. No tax drag. To match that return in a taxable account, you'd need a pre-tax return of roughly 10-11%.
However — and this is where the math actually gets interesting — tax-advantaged accounts change the comparison entirely.
3. Tax-advantaged accounts create a return the loan can't match.
A dollar contributed to a pre-tax 401(k) or 403(b) at a 43% combined marginal rate (32% federal + 11% California) effectively costs you only $0.57 out of pocket. You get a $0.43 tax savings immediately — that's an instant 75% return on the money you actually part with, before the investments earn a single penny. Over decades, the tax-deferred compounding adds another 0.5% to 2% in effective annual return, depending on your withdrawal tax rate.
This is the argument that physician-finance experts like those at White Coat Investor have been making for years: the tax arbitrage on a 401(k) contribution for a high-income physician is so large that it almost always beats paying down even a high-interest loan.
Tax-advantaged investing (401k, 403b, 457b, HSA, backdoor Roth) almost always beats loan payoff for physicians, because the tax benefit is an instant guaranteed return that exceeds the loan interest rate. Taxable investing vs. loan payoff is a much closer call — and at today's federal loan rates (7-9%), the loan payoff often wins. The answer changes based on where the next dollar is going.
The Decision Framework
Your effective after-tax interest rate — the rate after accounting for any deductions you actually qualify for (which for most attending physicians is zero) — determines which zone you're in:
Important: in all three zones, max your tax-advantaged accounts first. The decision framework above applies to what you do with money after you've captured the employer match, maxed the 401(k)/403(b), funded the backdoor Roth, and contributed to your HSA. For the full account ordering, see our post on the ideal investment order for high earners.
What About PSLF?
If you work for a qualifying nonprofit or government employer — which includes most academic medical centers, VA hospitals, and many health systems — Public Service Loan Forgiveness remains available. PSLF provides tax-free forgiveness of your remaining federal loan balance after 120 qualifying payments (10 years) on an income-driven repayment plan.
If you're pursuing PSLF, the calculus inverts completely. Every extra dollar you pay toward your loans is a dollar you could have invested, because the remaining balance will be forgiven anyway. The optimal strategy is to minimize payments (stay on the lowest IDR plan you qualify for) and invest the difference aggressively.
The One Big Beautiful Bill Act (signed July 2025) preserved PSLF but made significant changes to the broader repayment ecosystem. The SAVE plan's interest subsidies ended in August 2025. A new Repayment Assistance Plan (RAP) launches July 1, 2026, replacing most current IDR options for new borrowers. Existing borrowers with loans taken before July 2026 can still use IBR (10% of discretionary income, 20-year forgiveness) and should avoid taking new federal loans after July 2026, which would lock them into RAP's terms. For physicians currently in training who started loans before the cutoff, PSLF remains a viable strategy — but the window to optimize is narrowing. Consult a student loan specialist to evaluate your specific situation.
The Numbers, Spelled Out
Let's run the math on a specific scenario, because abstractions don't change behavior — concrete numbers do.
Dr. A — 32 years old. Just finished Gastroenterology fellowship. Starting salary: $380,000. Federal student loans: $240,000 at a blended 7.2% rate. Currently has $18,000 in retirement savings. Lives in California. Not pursuing PSLF (works for a private group). Has $5,000/month available after living expenses, taxes, insurance premiums, and minimum loan payments.
| Strategy | Net Worth at Age 42 (10 Yrs) | Net Worth at Age 52 (20 Yrs) | Assumptions |
|---|---|---|---|
| A. All $5K/mo to loans first Then invest after payoff (~4 years) | ~$590,000 | ~$1,900,000 | Loans paid off in ~4 yrs. Then $5K/mo invested for 6 yrs (to year 10) and 16 yrs (to year 20). 7% net return. No 401(k) contributions during loan payoff (illustrative extreme). |
| B. All $5K/mo to investing Minimum payments on loans | ~$650,000 | ~$2,150,000 | Loans on standard 10-yr repayment. $5K/mo invested from day one. 7% net return. Total interest paid on loans: ~$95,000. |
| C. Hybrid: $2.5K loans / $2.5K investing | ~$620,000 | ~$2,030,000 | Loans paid off in ~6 yrs. $2.5K/mo invested from day one, then $5K/mo after loans are cleared. 7% net return. |
These are simplified illustrations assuming a constant 7% net return and ignoring the tax advantage of retirement accounts, which would further favor the investing strategies. In reality, the first dollars invested should go into a 401(k)/403(b) where the tax benefit adds an immediate ~43% boost.
The gap between Strategy A (all-in on debt) and Strategy B (all-in on investing) is roughly $250,000 over 20 years. That's real money — but it assumes a consistent 7% return and no major market drawdowns. Strategy C, the hybrid, lands in between and gives you the psychological benefit of watching the loan balance shrink while still getting money into the market early.
The Part The Math Misses
If this were purely a spreadsheet exercise, the answer would almost always be "invest more, pay loans slowly." But physicians don't live in spreadsheets.
Research on physician burnout consistently identifies financial stress as a contributing factor. A 2024 Medscape survey found that debt burden correlates with lower career satisfaction, especially among early-career physicians. The psychological benefit of being debt-free — sleeping better, feeling less trapped, having the freedom to change jobs or reduce hours — is real and not captured in any net worth comparison.
The 10% average return assumes you hold through every crash, correction, and panic. DALBAR's research shows the average investor trailed the S&P 500 by 1.1% annually over 20 years because of badly timed selling. If you're the type of person who would pull money out during a downturn — and most people are, regardless of what they think — the effective gap between investing and loan payoff narrows significantly.
Eliminating a $3,000/month loan payment in year 4 gives you $3,000/month of permanent cash flow that can then be redirected to investing, disability insurance, 529 plans, or building an emergency fund. That flexibility has value that doesn't show up on a balance sheet. It also protects you if your income changes — a job loss, a disability, a practice transition — because your fixed obligations are lower.
The Order That Actually Works
Given all of these variables — the tax math, the rate comparison, the behavioral factors, and the 2026 regulatory landscape — here's the framework that works for most new attending physicians who are not pursuing PSLF:
| Priority | What | Why |
|---|---|---|
| 1 | Own-occupation disability insurance + term life | Protects your income — the asset that funds everything else. Buy within your first year of attending practice. |
| 2 | Emergency fund (3-6 months expenses) | Prevents you from taking on new debt (credit cards, personal loans) during a crisis. |
| 3 | 401(k)/403(b) to employer match | Free money. 100% instant return on matched dollars. |
| 4 | HSA (if eligible) | Triple tax advantage. Can be used for healthcare in retirement tax-free. |
| 5 | Max 401(k)/403(b) + 457(b) if available | At 43% marginal rate, every pre-tax dollar saves $0.43 in taxes immediately — a guaranteed return higher than any loan rate. |
| 6 | Backdoor Roth IRA | $7,000/year into tax-free growth. Small relative to income, but compounds enormously over 30 years. |
| 7 | Remaining surplus → loans OR taxable investing | This is where your rate zone (above 7%: loans; 4-7%: split; below 4%: invest) determines the answer. Consider refinancing to lower the rate if not pursuing PSLF. |
For a deeper look at how all of these levers interact — especially the tax strategies available to high earners and the physician-specific tax playbook — we've written extensively on both.
The Bottom Line
The question "should I pay off loans or invest?" is actually three questions stacked on top of each other: where is the next dollar going (tax-advantaged account or not)? What's my effective after-tax interest rate on the loans? And how do I actually behave with money under stress?
For most physicians earning $300,000+, the answer is: max every tax-advantaged account first (that's always the right answer, regardless of loan balance), then use the rate-zone framework to decide what happens with the surplus. If your loans are above 7% and you're not pursuing PSLF, aggressive payoff of any remaining surplus after tax-advantaged accounts are maxed is defensible and often optimal. If you can refinance below 5%, investing the surplus has a strong historical edge.
The one answer that is never right: doing nothing while you figure it out. Every month of inaction costs you either compounding returns or accruing interest — and usually both.
Sources Cited
- Medscape, Physician Compensation Report 2026: Average physician salary $386,000. medscape.com
- Association of American Medical Colleges (AAMC), Class of 2025: Average education debt $223,130; median $215,000; 70% of graduates carry education debt. aamc.org
- Federal Student Aid, loan interest rates for 2025-2026: Direct Unsubsidized 7.94%; Direct PLUS 8.94%. studentaid.gov
- IRS, student loan interest deduction phaseout: $155,000 MFJ (2026). irs.gov
- One Big Beautiful Bill Act (P.L. 119-21, signed July 4, 2025): SAVE plan sunset, RAP plan creation, Grad PLUS elimination for new borrowers post-July 2026, $200K lifetime cap for professional school borrowers.
- Medical Economics, "A New Chapter in Student Loans: What the OBBBA Means for Physicians" (June 2026). medicaleconomics.com
- White Coat Investor, "Pay Off Student Loans or Invest" (updated March 2026). whitecoatinvestor.com
- Student Loan Planner, "Top 10 Changes Under the OBBBA" (July 2025). studentloanplanner.com
- DALBAR Inc., Quantitative Analysis of Investor Behavior, 2025 edition. dalbar.com
- IRS Revenue Procedure 2025-32: 2026 contribution limits.
- California Franchise Tax Board, capital gains and income tax guidance (2026).
This article is for informational and educational purposes only and should not be considered investment, tax, legal, or student loan advice. All investment strategies carry risk, including the possible loss of principal. Past performance does not guarantee future results. Net worth projections are hypothetical illustrations based on simplified assumptions and may not reflect your situation. Student loan repayment strategies are subject to federal policy changes; consult with a qualified student loan advisor for current guidance. Consult with a qualified financial professional before making financial decisions.