By Suhin Nallagatla

401k vs Student Loan Payoff: What Attending Physicians Should Do First

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.

The 401k vs student loan payoff decision for physicians is not a generic personal finance question. It involves 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. This article gives you the actual framework attending physicians should use, with real numbers.


Why the Standard "Invest vs. Pay Off Debt" Math Doesn't Work for Physicians

The classic rule of thumb says: if your loan interest rate is lower than your expected investment return, invest. If it's higher, pay off debt. In a vacuum, that logic is sound. For physicians, it collapses almost immediately.

The median medical school debt load at graduation is $200,000, according to AAMC data. Many physicians — particularly those pursuing surgical subspecialties — carry $300,000 to $400,000+. Interest on that scale isn't background noise. A $300,000 balance at 7.05% accrues $21,150 in interest in year one alone. The math has to account for that weight explicitly.

At the same time, physicians enter attending-level income late — typically ages 30 to 35 — after spending the peak compound-interest years of their 20s in training. Every year of 401k contribution delay is expensive. A $23,000 contribution (the 2024 IRS limit) invested at 7% average annual return grows to roughly $44,000 after 10 years. That compounding window is already compressed relative to non-physician peers.

The real question isn't "which is better" in the abstract. It's: what is your specific loan interest rate, what is your marginal tax rate, and what is your employer match situation?


The Employer Match Is Always First — No Exceptions

Before any other calculation, capture the full employer 401k match. This is the one rule that survives every scenario.

A typical hospital employer offers a 3–6% match on salary contributions. On a $240,000 internal medicine salary, a 4% match represents $9,600 in free money annually. That's an immediate 100% return on the dollars contributed to trigger the match — no investment in existence beats that, and no student loan interest rate exceeds it.

Contribute at minimum up to the match threshold on day one. The math here is unambiguous regardless of whether your loans are at 6%, 7%, or 8%. Leaving the match on the table is the one clear mistake in this decision tree.


The 401k vs Student Loan Payoff Framework for Attending Physicians

After capturing the full employer match, the decision splits based on two variables: your loan interest rate and your PSLF eligibility.

If You're Pursuing PSLF

If you are employed at a nonprofit hospital or academic medical center — as roughly 50% of attending physicians are — PSLF changes the calculus entirely. Under PSLF, your loan balance is forgiven after 120 qualifying payments on an income-driven repayment plan. That means the principal you'd theoretically "pay off aggressively" may never need to be repaid at all.

In this scenario, maximizing your 401k contributions is typically the right move — not the compromise move. Here's why: your IDR payment under IBR (the 2026 default plan for new attendings) is calculated as a percentage of your discretionary income. Every pre-tax dollar you contribute to a 401k reduces your Adjusted Gross Income, which directly reduces your IBR payment. That creates a compounding tax benefit: lower AGI means lower IDR payments means more dollars preserved for investments.

A cardiologist earning $420,000 at an academic medical center might carry $350,000 in loans. Maximizing the $23,000 401k contribution plus $46,000 defined contribution plan (if available via a 457b or similar) could reduce AGI by $69,000, lowering IBR payments by several thousand dollars annually — while simultaneously building retirement wealth. That's a double win that pure loan payoff never achieves.

See PSLF vs Aggressive Payoff for full scenario modeling on this decision.

If You're in Private Practice (No PSLF)

Private practice physicians — a large portion of surgical specialties, emergency medicine groups, and primary care — don't have access to PSLF. Here the math returns to rate comparison, but with tax-adjusted precision.

Your effective student loan interest rate after accounting for the student loan interest deduction (capped at $2,500 for most attendings who earn above the phaseout threshold — which most do) is approximately equal to your nominal rate. Most attending physicians earn too much to deduct student loan interest at all. The full statutory rate applies.

Federal graduate loan rates in 2024–2025 sit at 7.05–8.08% depending on loan type. The 10-year historical average return of a diversified index fund portfolio is approximately 10%, but that's pre-tax. In the 32% or 37% bracket (likely for most attendings), the after-tax return on investments is meaningfully lower. Guaranteed 7–8% by eliminating debt is competitive with expected after-tax equity returns.

The private practice physician framework:

  • Capture full employer match first (if applicable)
  • Max Roth IRA via backdoor conversion ($7,000 in 2024) — tax-free growth is worth prioritizing
  • Max 401k to IRS limit ($23,000 in 2024) for the tax deduction
  • Allocate remaining cash flow to loans at whatever split makes you sleep at night, with a tilt toward loans if your rate exceeds 7%

This is the framework, not a rigid formula. An orthopedic surgeon earning $600,000 with $200,000 in loans should prioritize wealth building — the debt is small relative to income. An EM physician earning $320,000 with $380,000 in loans at 7.5% faces a different math problem. Run actual numbers for your situation at the MedDebt Quiz.


Tax Bracket Arbitrage: The Hidden Reason 401k Contributions Win Early

Attending physicians typically land in the 32% or 37% federal tax bracket immediately upon finishing residency. That means a $23,000 401k contribution saves $7,360–$8,510 in federal taxes in year one — real cash that didn't exist before.

This tax savings partially offsets the "cost" of not paying down debt faster. If your loan balance is accruing $21,000/year in interest and your 401k contribution saves $8,000 in taxes, the net cost of prioritizing retirement savings over debt payoff is $13,000 — not $21,000. The picture changes substantially.

Additionally, physicians starting attending salaries often spend several years in the 32% bracket before their income growth pushes them firmly into 37%. That window — typically ages 32–40 — is the highest-value period for tax-deferred retirement contributions. A dollar sheltered from tax at 37% is more valuable than the same dollar sheltered at 28% later in your career if your income drops in retirement. Front-load the 401k while the marginal rate is highest.


What About High-Interest Refinanced Loans?

Some attending physicians refinanced federal loans during residency or early attending years when rates were lower (2020–2021), and now hold private loans at 3–4%. Others refinanced in 2023–2024 into 6–7% variable rates that have since adjusted upward.

For physicians holding refinanced private loans above 7%: the argument for aggressive payoff strengthens. There is no PSLF option on private loans. The rate is real and compounding. After maxing the 401k for tax purposes, directing excess cash flow toward these loans makes mathematical sense.

For physicians holding refinanced loans below 5%: the math almost universally favors investing over accelerated payoff. A 4% interest rate is below most conservative estimates of long-term equity returns even after taxes. Make minimum payments, max retirement accounts, and build net worth.

If you haven't evaluated whether refinancing is right for your situation, review options at /refinance. Note: refinancing eliminates PSLF eligibility — confirm you're not on a PSLF track before refinancing federal loans.


Physician-Specific Scenarios by Specialty

Specialty matters here because debt load, income, and employer type vary widely. Medical school debt varies significantly by specialty, and that variance drives different 401k vs payoff decisions.

Academic cardiologist, $420,000 salary, $350,000 debt, nonprofit employer: Max 401k + 457b, stay on IBR, pursue PSLF. Retirement contributions reduce IBR payment AND build wealth. Aggressive payoff is the wrong move here.

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, make standard aggressive loan payments with excess cash. Debt is manageable relative to income — don't sacrifice retirement compounding.

Primary care physician, $220,000 salary, $290,000 debt, PSLF eligible: Maximize pre-tax contributions specifically because they lower AGI and IBR payments simultaneously. This is the scenario where 401k and loan strategy are directly interlinked.

Emergency medicine attending, $340,000 salary, $260,000 debt, private group (no PSLF): After 401k max and backdoor Roth, direct aggressive cash flow to loans until balance is under $150,000. High income makes payoff achievable in 5–7 years without sacrificing retirement entirely.

For emergency medicine-specific context, see the emergency medicine specialty page. For primary care strategy details, see student loan strategy for primary care doctors.


The Psychological Factor Physicians Underweight

Financial psychology is real. A $300,000 loan balance during the first years of attending income creates documented stress that affects clinical performance and physician wellness. Some physicians derive significant psychological benefit from watching that balance drop aggressively — and that psychological benefit has economic value in burnout prevention.

If making higher loan payments reduces stress and keeps you practicing longer, that's a rational financial decision even if the pure math slightly favors investing. The optimal financial plan is one you'll actually execute for 20 years. A plan you abandon in year three because the debt anxiety became unbearable is worth nothing.

Acknowledge the psychology, don't pretend it doesn't exist, but calibrate it: the emotional preference for paying off debt shouldn't override a $9,600 employer match or a clear PSLF path. Psychological preferences inform the decision at the margins, not at the core.


FAQ: 401k vs Student Loan Payoff for Physicians

Should physicians max their 401k before paying off student loans? Generally yes, with two conditions: always capture the full employer match first, and if you're on PSLF, maximizing pre-tax contributions reduces your IDR payment while building wealth simultaneously. For private practice physicians without PSLF, max the 401k for the tax deduction, then direct excess cash to loans above 7%.

What if my student loan interest rate is higher than my 401k return? The comparison should be made on an after-tax basis. A 401k contribution in the 32% bracket effectively earns an immediate 32% return via tax savings. After accounting for that, even a 7–8% loan rate is not clearly higher than the tax-adjusted benefit of 401k contributions at high income levels.

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 reduces 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. Confirm your employment status and PSLF eligibility before refinancing. If you are not PSLF-eligible and your current interest rate exceeds 6.5%, refinancing to a lower rate changes the loan payoff vs. invest math in favor of investing. See PSLF vs refinancing for the full analysis.

What's the right order of operations for a new attending physician?

  1. Capture full employer 401k match. 2. Build a 3-month emergency fund if not already established. 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 flow to loans, weighted toward higher-interest balances.

Run Your Own Numbers

Every physician's debt situation is different. 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.

SN
Suhin Nallagatla

Founder, 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.

See your payoff timeline.

Enter your specialty, residency, and loan details. Get a customized projection in seconds.

Calculate my payoff — free →