Tax optimization for self-employed physician with W-2 income and SEP-IRA

Trying to figure out the best approach here. I'm a hospitalist — W-2 from the hospital plus a small independent moonlighting practice (1099 income, filed on Schedule C). I've been contributing to a SEP-IRA on the self-employment side for two years. My financial advisor keeps saying I'm "leaving money on the table" but won't get specific about the forms. What I want to know: is there a smarter structure than a SEP-IRA for someone in my situation, and does the W-2 retirement contribution from my employer affect how much I can put into the SEP? Also wondering whether the solo 401(k) route is actually better here or if that's only worth it above a certain income level. Happy to hear from anyone who's navigated this exact setup.

43 comments

Schedule C net profit is what drives your SEP-IRA contribution limit. Whether the hospital side reduces your room depends on the plan. If the hospital plan is a 401(k) of an unrelated employer, what you and the hospital put into it doesn't reduce what you can contribute on the self-employment income. If it's a 403(b), it is aggregated with the SEP of the practice you control for the annual addition limit, so it does count. That said, the SEP-IRA limit is based on a percentage of net self-employment earnings after the deduction for half of self-employment tax, so the Schedule C number after that adjustment is the ceiling. The IRS contribution limits page and the SEP plan instructions have the current figures. Worth knowing before you decide anything.

Carla K.

Author

That's the part my advisor glossed over. So the W-2 deferrals at the hospital don't eat into SEP room at all?

Depends on the hospital plan. If it's a 401(k), it's a different plan with a different limit. If it's a 403(b), it's aggregated with your own practice's plan for the annual addition limit. Where it also gets complicated is if both plans are defined contribution plans and you're considered a controlled group or affiliated service group, but for a typical hospital employee plus solo practice that's not the issue.

Solo 401(k) is worth a real look if your moonlighting nets enough to matter. As an employee of your own practice you can make an elective deferral, then also make an employer profit-sharing contribution on top. The combined employee deferral across ALL plans — including the hospital's 403(b) or 401(k) — is subject to one annual limit, so you can't double-dip on the deferral side. But the employer contribution from the solo side is separate. That's the structural advantage over a SEP-IRA for someone who already maxes out at the hospital.

Carla K.

Author

So the deferral limit is shared across both plans but the employer profit-sharing piece on the solo side is additive — did I read that right?

Exactly right. The elective deferral limit is per person across all plans in the same year. The profit-sharing/employer contribution falls under the annual addition limit. That limit is separate from an unrelated employer's 401(k), but a hospital 403(b) is aggregated with your solo plan. That's why high earners with two income streams often come out ahead with a solo 401(k) over a SEP.

Form 5305-SEP is what most custodians use to document a SEP-IRA — worth pulling it out and reading the contribution limit section yourself rather than taking the advisor's word for it. I uploaded my Schedule C, the 5305-SEP, and my prior year 1040 to taxr.ai and it flagged that my contribution had been calculated on gross self-employment income instead of the net after the SE tax deduction adjustment, which meant I'd been slightly over the actual limit. Caught it before filing. The IRS page on SEP plans spells out the exact formula.

Carla K.

Author

Wait, that's a real risk — over-contributing to a SEP triggers an excise tax doesn't it?

Yes, excess contributions to a SEP are subject to a 6% excise tax under the same rules that apply to IRA excess contributions. You'd need to withdraw the excess plus earnings before the return due date to avoid it.

Had a smaller version of this — my bookkeeper handed me a gross figure and I didn't catch the SE tax deduction step. Amended Schedule C and recalculated before the extended due date, no excise tax owed.

One structural question worth asking your CPA: is your moonlighting set up as a sole proprietorship or through an S-corp? Because if you've crossed a certain income threshold on the 1099 side, an S-corp election changes the self-employment tax picture meaningfully, and also changes how the solo 401(k) employer contribution is calculated — it comes off W-2 wages paid by the S-corp, not off net Schedule C. Different math entirely.

Carla K.

Author

Still sole prop for now. At what point does the S-corp math start to favor it?

That's a CPA question — it turns on the net SE income level, your state's franchise or minimum tax, and the administrative cost of running payroll. There's no universal threshold. Get a CPA who does physician practice structures to run the actual numbers for your income level.

Don't overlook the defined benefit plan angle if the moonlighting income is substantial and consistent. A cash balance plan layered on top of a solo 401(k) can shelter significantly more than either plan alone — the actuary sets the contribution based on your age and target benefit. Older physicians in their 50s especially benefit from the catch-up dynamics in cash balance math. Much more complicated to administer and you need an actuary, but the tax deferral potential is in a different league.

Carla K.

Author

I'm mid-30s so maybe not the right moment for cash balance, but good to know for later.

Mid-30s, cash balance is still usable but the annual contribution room is smaller because the actuary has more years to compound to the target. The solo 401(k) with profit-sharing is usually the cleaner answer at your age.

Publication 560 on the IRS site covers SEP, SIMPLE, and qualified plans for self-employed people. It has the net self-employment earnings worksheet that walks through the circular calculation — you need net earnings, then subtract half SE tax, then apply the contribution rate. The circularity is because the contribution itself is deductible, which slightly reduces the base. Most people skip the worksheet and get a number that's close but not exact.

Carla K.

Author

I definitely did not do the circular worksheet. Used a rough percentage my advisor gave me. Need to go back and check this.

Form 1040 Schedule 1, line 16 is where the SEP-IRA deduction lands — not Schedule C, not Schedule SE. I had my preparer give me the draft return and I ran it through Taxr; it traced the SEP deduction from the Schedule C net profit through the SE tax worksheet to the Schedule 1 deduction and confirmed the numbers tied. Saved me from trusting a figure I couldn't verify myself. Worth doing before you finalize anything.

Carla K.

Author

Schedule 1 line 16 — I've been staring at that line without understanding where the number came from. That's the deduction that reduces AGI, right?

Correct, it's an above-the-line deduction, reduces your AGI directly. That matters if you're anywhere near a phase-out threshold for other deductions or credits.

If you do switch to a solo 401(k), you no longer have to adopt the plan document by December 31. You can set it up as late as your return due date including extensions and still make employer contributions for that year. For the first plan year, a sole proprietor can also make elective deferrals up to the return due date (without extensions). That's close to the SEP-IRA (SEP deadline is the return due date including extensions). That timing matters if you're thinking about making the switch for the current year.

Carla K.

Author

That is genuinely useful. I'd assumed the solo 401(k) had to be set up by Dec 31. The later adoption deadline for a solo 401(k) gives me more room than I thought.

SEP-IRA contributions can go in up to the return due date with extensions. A solo 401(k) can be established up to the return due date with extensions for employer contributions. For a sole proprietor, first-year elective deferrals can be made up to the return due date without extensions. Confirm with your plan document.

The W-2 from the hospital — is there a 403(b) or 401(k) there? Because if you're already maxing elective deferrals on the hospital side, the entire employee deferral slot on a solo 401(k) is already used up. You'd only have the profit-sharing/employer contribution room on the solo plan. That changes the math on whether a solo 401(k) beats a SEP in your specific situation.

Carla K.

Author

Yes, maxing the 403(b) at the hospital. So for the solo plan I'd basically only get the profit-sharing piece, not additional deferrals.

Right. And the SEP contribution rate and the solo 401(k) employer contribution rate are both capped at 25% of net earnings (after the adjustments) so if you're only using the employer piece, the two plans converge in how much room you actually have. The solo 401(k) still wins if you want the Roth in-plan conversion option, but purely on contribution ceiling they're close.

Roth solo 401(k) is an option some plans allow — you can designate elective deferrals as Roth. No income limit the way a Roth IRA has one. Useful for a physician income level where direct Roth IRA contributions aren't available. Though as noted above, if the hospital plan is already eating the full deferral limit, there's nothing left to designate as Roth on the solo side.

AMT is worth a mention for anyone at high physician income levels exercising ISOs on the side — not directly about the SEP question but the SEP deduction does reduce AMT income as well as regular income, which is part of why the above-the-line deduction on Schedule 1 line 16 is valuable. If ISOs are in the picture, Form 6251 line 2i is where the ISO spread adjustment shows up and it doesn't go away just because you have big deductions elsewhere.

Carla K.

Author

No ISOs here, purely W-2 and 1099 income, but noted for the future if the equity comp picture changes.

Form W-2 box 12 codes matter here — code D is 401(k) deferral, code E is 403(b) deferral. Those box 12 amounts feed into whether you've already hit the annual elective deferral limit across plans. I had my W-2, 1099-NEC, and solo 401(k) contribution worksheet uploaded to Taxr and it cross-referenced the box 12 deferral against the solo plan contribution to flag whether I had any remaining deferral room or just profit-sharing room. Made it very clear before I sent the numbers to my CPA.

Carla K.

Author

W-2 box 12 — I've never paid attention to that code. Going to pull mine and see what's in there.

Box 12 code D or E will show your pre-tax deferral. If your hospital also has a 457(b), code G shows that — 457(b) deferrals are under a separate limit from 401(k) and 403(b), so that one actually does give you more room if your hospital offers it.

457(b) government plans have a separate deferral limit from 401(k) and 403(b) plans — worth checking whether your hospital is government or non-profit because the stacking rules differ between governmental 457(b) and non-governmental 457(b). A CPA who works with physician compensation structures will know the distinction cold.

Carla K.

Author

Hospital is non-profit. Is the non-governmental 457(b) meaningfully different for this purpose?

Non-governmental 457(b) contributions technically remain the hospital's assets until distributed — different creditor exposure and distribution rules than a governmental plan. Worth understanding before you treat it the same way in your overall plan.

Coming at this from the other direction: before optimizing the retirement accounts, did you check whether your Schedule C is capturing all deductible business expenses? Malpractice insurance, CME costs, licensing fees, home office if you do any charting at home — all of those reduce net SE income, which reduces SE tax, which reduces the adjusted net earnings that the SEP contribution is based on. Lower net earnings means lower SEP limit, yes, but also lower SE tax, which is often the bigger near-term win.

Carla K.

Author

Honestly I've been sloppy on the Schedule C expenses side. CME is deducted but malpractice might be getting double-counted somewhere. Need to review before filing.

Malpractice double-counting is a real thing if the hospital also covers part of it and you're deducting the full premium. Coordination with the W-2 employer matters there.

Defined contribution plan annual addition limit per the IRS is a separate ceiling above the elective deferral limit. It covers the total of employee deferrals plus employer contributions plus after-tax contributions. If you are running a solo 401(k) and also participating in the hospital plan, the annual addition limit applies per employer, so an unrelated employer's 401(k) doesn't count against your solo plan. A 403(b) is different: it is aggregated with the plan of a business you control. With a hospital 403(b), what the hospital puts in on your behalf does squeeze the solo 401(k) profit-sharing room.

Per employer, not per plan — that's the key, and a 403(b) gets aggregated with your own practice's plan. A lot of people get this backwards and think their hospital 403(b) contributions don't count against their solo plan room.

If this is your first year with meaningful 1099 income you should also look at estimated quarterly payments to avoid an underpayment penalty. The SE tax on Schedule SE plus the income tax on the 1099 income can add up fast and the hospital withholding won't cover it. That's a bit off the SEP topic but it's the thing that actually catches physicians off guard in year one of moonlighting.

Carla K.

Author

Second year moonlighting and I definitely got hit with the underpayment penalty year one. Have estimated payments set up now but the amount is based on a rough guess. Should probably recalculate after I sort out the SEP contribution.