401k vs Student Loan Payoff: What Attending Physicians Should Do First
A third-year internal medicine resident finishes training with $280,000 in federal student loans at a weighted average interest rate of 7.05%. On day one as an attending, she earns $240,000. Her financial inbox immediately fills with competing advice: max your 401k, pay off debt aggressively, do both, do neither until you have an emergency fund. The noise is overwhelming — and most of it wasn't written for physicians.
This decision isn't generic personal finance. Physicians face loan balances that dwarf what most financial content assumes, specialty-specific income trajectories, tax brackets that punish inaction, and an IDR landscape that changed dramatically in 2026. You need a framework built for your situation, not for someone with $50,000 in debt and a $120,000 salary.
Why the Standard "Invest vs. Pay Off Debt" Math Doesn't Work for Physicians
The classic rule says: if your loan interest rate is lower than your expected investment return, invest. If it's higher, pay off debt. That logic sounds clean in a textbook. It breaks down fast for physicians.
According to AAMC data, the median medical school debt at graduation is $200,000. Many physicians—particularly surgical subspecialists—carry $300,000 to $400,000+. That's not background noise. A $300,000 balance at 7.05% accrues $21,150 in interest in year one alone. The scale changes everything.
Meanwhile, physicians enter attending-level income late. You're typically 30–35 years old. Your peers started their careers at 22, compounding returns through their entire 20s while you were studying anatomy. Every year of 401k delay costs real money. A $23,000 contribution invested at 7% annual return grows to roughly $44,000 after 10 years. That window was already compressed before you even started.
Here's the real question: What's your loan interest rate, your marginal tax bracket, and what does your employer match?
The Employer Match Is Always First — No Exceptions
Before anything else, capture the full employer 401k match. This isn't negotiable.
Most hospital employers offer a 3–6% match. On a $240,000 internal medicine salary, a 4% match equals $9,600 in free money annually. That's an immediate 100% return. No investment beats that. No loan interest rate exceeds it.
Contribute at minimum to trigger the full match on your first day. The math is unambiguous whether your loans sit at 6%, 7%, or 8%. Walking away from that match is a mistake you can't fix later.
The 401k vs Student Loan Payoff Framework for Attending Physicians
After you've locked in the full match, the decision hinges on two things: your loan interest rate and whether you're PSLF-eligible.
If You're Pursuing PSLF
Roughly half of attending physicians work at nonprofit hospitals or academic medical centers. If you're one of them, PSLF rewrites the entire playbook. Your loan balance gets forgiven after 120 qualifying payments on an income-driven repayment plan. That principal you'd theoretically demolish through aggressive payoff? It may never need to be repaid at all.
In this scenario, max out your 401k contributions. Not as a compromise—as the primary strategy. Here's the mechanics: your IDR payment under IBR (the 2026 default plan for new attendings) is a percentage of your discretionary income. Every pre-tax dollar you contribute to a 401k reduces your Adjusted Gross Income. Lower AGI means lower IDR payments. More dollars stay in your pocket. You're building retirement wealth while shrinking the payment that PSLF will eventually forgive.
A cardiologist earning $420,000 at an academic center carrying $350,000 in debt could max out a $23,000 401k plus $46,000 in defined contribution plans through a 457b. That's $69,000 in AGI reduction. Result? Several thousand dollars in lower annual IDR payments—year after year—while the retirement account compounds. That's a double win. Aggressive payoff never does this.
See PSLF vs Aggressive Payoff for detailed scenario modeling.
If You're in Private Practice (No PSLF)
Private practice physicians—many surgeons, emergency medicine groups, and solo primary care doctors—don't have PSLF access. For you, the math returns to comparing rates, but you need to do it carefully.
Your federal grad loan rates in 2024–2025 are 7.05–8.08%. Your stock market return averages around 10% historically, but that's pre-tax. If you're in the 32% or 37% tax bracket (you likely are), your after-tax return drops significantly. A guaranteed 7–8% from eliminating debt starts looking pretty competitive.
Here's the private practice playbook:
- Capture full employer match first (if your practice offers it)
- Max Roth IRA via backdoor conversion ($7,000 in 2024)—tax-free growth matters at your income level
- Max 401k to IRS limit ($23,000 in 2024) for the tax deduction
- Put remaining cash toward loans with a tilt toward loans if your rate exceeds 7%
This is a framework, not a straitjacket. An orthopedic surgeon earning $600,000 with $200,000 in loans faces different math than an EM physician earning $320,000 with $380,000 in loans at 7.5%. Your personal numbers matter enormously.
Use the MedDebt Quiz to test your specific situation.
Tax Bracket Arbitrage: The Hidden Reason 401k Contributions Win Early
New attending physicians land in the 32% or 37% federal tax bracket almost immediately. A $23,000 401k contribution saves $7,360–$8,510 in federal taxes in year one. That's real cash.
This tax savings partially offsets what you're giving up by not attacking the debt harder. If your loans accrue $21,000 in interest annually but your 401k contribution saves $8,000 in taxes, the net cost of prioritizing retirement over debt is $13,000—not $21,000. The equation shifts.
Most physicians spend several years in the 32% bracket before income growth pushes them into 37%. That window—typically your early-to-mid 30s—is premium real estate for tax-deferred contributions. You won't get those dollars sheltered at this rate again. Front-load it while the rate is at its highest.
What About High-Interest Refinanced Loans?
Some attendings refinanced federal loans during the low-rate environment of 2020–2021 and held them. Others refinanced recently into variable rates that have climbed. One more group holds private loans from law school sidelines or other pre-med debt.
For refinanced private loans above 7%: the payoff case strengthens. No PSLF exists for these. The rate is locked in and compounding. After maxing your 401k for tax purposes, extra cash should flow toward these loans.
For refinanced loans below 5%: invest instead. A 4% interest rate sits below reasonable after-tax equity returns. Make minimum payments, max your retirement accounts, build net worth.
Haven't evaluated refinancing yet? Check options at /refinance. Critical caveat: refinancing erases PSLF eligibility permanently. Confirm you're not on a PSLF path before you refinance any federal loans.
Physician-Specific Scenarios by Specialty
Your specialty matters because debt, income, and employer structure vary dramatically. Medical school debt varies significantly by specialty, and those differences drive different decisions.
Academic cardiologist, $420,000 salary, $350,000 debt, nonprofit employer: Max 401k + 457b, stay on IBR, pursue PSLF. Your retirement contributions reduce IBR payments AND build wealth. Aggressive payoff is the wrong move.
Private practice orthopedic surgeon, $600,000 salary, $200,000 debt, 7.05% rate: Max 401k, capture SEP-IRA or solo 401k contributions as a partner, attack the debt with excess cash. Your income makes payoff achievable—don't sacrifice retirement compounding.
Primary care physician, $220,000 salary, $290,000 debt, PSLF eligible: Maximize pre-tax contributions because they lower your AGI and IBR payments simultaneously. Your 401k strategy and loan strategy aren't separate—they're connected.
Emergency medicine attending, $340,000 salary, $260,000 debt, private group (no PSLF): Max the 401k and backdoor Roth, then direct aggressive cash flow to loans until the balance drops below $150,000. Your high income makes this achievable in 5–7 years without sacrificing retirement.
For emergency medicine context, see the emergency medicine specialty page. For primary care details, see student loan strategy for primary care doctors.
The Psychological Factor Physicians Underweight
Financial psychology isn't trivial. A $300,000 loan balance during early attending years creates real stress that affects how you practice and how you feel. Some physicians gain enormous peace of mind watching that balance drop aggressively—and that psychological benefit has economic value in burnout prevention.
If making higher loan payments reduces your anxiety and keeps you from leaving medicine early, that's a rational financial decision even if the math slightly favors investing. The optimal plan is one you'll actually execute for 20 years. A plan you abandon in year three because the debt stress became unbearable costs you everything.
Acknowledge the psychology. Don't pretend it doesn't exist. But keep it in perspective: emotional preference for payoff shouldn't override your $9,600 employer match or a clear PSLF path. Feelings inform the decision at the margins. They shouldn't override the core math.
FAQ: 401k vs Student Loan Payoff for Physicians
Should physicians max their 401k before paying off student loans? Generally yes, with two caveats: always get the full employer match first, and if you're PSLF-eligible, maxing pre-tax contributions reduces your IDR payment while building wealth. For private practice physicians without PSLF, max the 401k for tax purposes, then direct excess cash to loans above 7%.
What if my student loan interest rate is higher than my 401k return? Compare them on an after-tax basis. A 401k contribution in the 32% bracket creates an immediate 32% return through tax savings. After accounting for that, even a 7–8% loan rate isn't clearly higher than the tax-adjusted benefit of 401k contributions at your income level.
Does a 401k contribution reduce income-driven repayment payments? Yes. Under IBR (the 2026 default plan), your payment is based on Adjusted Gross Income. Pre-tax 401k, 403b, or 457b contributions reduce AGI dollar-for-dollar, which directly lowers your IDR payment. This is one of the strongest arguments for PSLF-track physicians to max retirement accounts before making extra loan payments.
Should attending physicians refinance before deciding on 401k contributions? Refinancing eliminates PSLF eligibility permanently. Know your employment status and PSLF path before refinancing. If you're not PSLF-eligible and your current rate exceeds 6.5%, refinancing to a lower rate shifts the invest vs. payoff math toward investing. See PSLF vs refinancing for full analysis.
What's the right order of operations for a new attending?
- Capture full employer 401k match. 2. Build a 3-month emergency fund if you don't have one. 3. Max backdoor Roth IRA ($7,000). 4. Max 401k/403b to IRS limit ($23,000 in 2024). 5. If PSLF-eligible, make minimum IDR payments. If not PSLF-eligible, direct remaining cash toward loans, weighted toward higher-interest balances.
Run Your Own Numbers
Every physician's debt situation is unique. Use the MedDebt Calculator to model your exact repayment strategy—PSLF vs. aggressive payoff vs. refinancing—with your actual loan balance, specialty, and income.
It's free, takes 2 minutes, and shows you net worth projections by year.
This article is for informational purposes only and does not constitute financial, legal, or tax advice. Every borrower's situation is unique — consult a certified student loan advisor or fee-only financial planner before making repayment decisions.
Don’t just read — model your actual numbers
Enter your specialty and debt. See exactly when you’ll reach forgiveness and how much you save.
Try the calculator free — no email requiredFounder, MedDebt
Suhin built MedDebt to give medical students the loan modeling tools that financial planners charge $500+ to provide. He tracks federal student loan policy, IDR regulations, and physician personal finance so you don't have to.
Disclosure: This article is for informational purposes only and does not constitute financial, legal, or tax advice. Loan program details change — always verify current rules on studentaid.gov. MedDebt may earn a referral commission if you refinance through links on this site.