Gig Work Tax

What is the aggregation rule for 401(k) contribution limits when I have both W-2 and self-employment income?

Side Hustle + W-2intermediate3 answers · 4 min readUpdated February 28, 2026

Quick Answer

The 401(k) aggregation rule means your total contributions across ALL plans cannot exceed $23,500 for 2026 (or $31,000 if 50+). If your W-2 job already maxes this out at $23,500, you cannot contribute to a solo 401(k) from side hustle income, but you can still contribute up to 25% of net self-employment earnings as employer contributions.

Best Answer

PS

Priya Sharma, Small Business Tax Analyst

Best for people earning $50K-100K at their day job with $20K-50K in side hustle income

Top Answer

How the 401(k) aggregation rule works


The IRS treats you as one person across all your retirement accounts. For 2026, your total employee deferrals cannot exceed $23,500 across all 401(k) plans, regardless of how many employers you have. This includes your W-2 employer's 401(k) AND any solo 401(k) you set up for freelance work.


The key insight: employee contributions aggregate, but employer contributions are calculated separately for each business.


Example: $75,000 W-2 salary + $30,000 freelance income


Let's say you earn $75,000 at your day job and $30,000 from freelance work:


Day job scenario:

  • You contribute 15% to your employer's 401(k): $11,250/year
  • Your remaining employee contribution capacity: $23,500 - $11,250 = $12,250

  • Solo 401(k) from freelance work:

  • Net self-employment income after SE tax: ~$27,175
  • Maximum employee contribution to solo 401(k): $12,250 (limited by remaining capacity)
  • Maximum employer contribution: $27,175 × 25% = $6,794
  • Total you can save from freelance income: $19,044

  • What happens if you over-contribute


    If you accidentally exceed $23,500 in total employee contributions:

  • You have until April 15, 2027 (tax deadline) to correct it
  • Withdraw the excess plus any earnings
  • The excess counts as taxable income in the year contributed
  • Earnings on excess contributions are taxable in the year withdrawn
  • If not corrected, you face a 6% excise tax annually until fixed

  • Key strategies for maximizing retirement savings


    Strategy 1: Optimize W-2 contributions first

    If your employer offers matching, contribute enough to get the full match before funding a solo 401(k). Employer matching is free money.


    Strategy 2: Use employer contributions from solo 401(k)

    Even if you max out employee contributions at your day job, you can still contribute up to 25% of net self-employment earnings as employer contributions to your solo 401(k).


    Strategy 3: Consider a SEP-IRA instead

    If tracking aggregation feels complex, a SEP-IRA only allows employer contributions (up to 25% of net SE income), eliminating aggregation concerns.


    What you should do


    1. Calculate your current W-2 401(k) contributions for 2026

    2. Subtract from $23,500 to find remaining employee contribution capacity

    3. Use our quarterly estimator to model optimal contribution strategies

    4. Consider increasing W-2 deferrals if you're not maximizing the limit

    5. Set up payroll reminders to track total contributions quarterly


    Key takeaway: The $23,500 limit applies to ALL your employee contributions combined, but you can still save additional money through employer contributions from your solo 401(k) — up to 25% of net self-employment income.

    *Sources: [IRS Publication 560](https://www.irs.gov/pub/irs-pdf/p560.pdf), [IRC Section 402(g)]*

    Key Takeaway: Employee contributions are limited to $23,500 total across all plans, but employer contributions from your solo 401(k) can add up to 25% of net self-employment income on top.

    2026 contribution scenarios showing how aggregation affects total retirement savings

    W-2 ContributionRemaining Employee CapacitySolo 401(k) EmployeeSolo 401(k) Employer (25%)Total Annual Savings
    $0$23,500$23,500$6,794$30,294
    $11,250$12,250$12,250$6,794$30,294
    $18,000$5,500$5,500$6,794$30,294
    $23,500$0$0$6,794$30,294

    More Perspectives

    JO

    James Okafor, Self-Employment Tax Specialist

    Best for people earning $100K+ at their day job who are already maxing out workplace retirement benefits

    Advanced considerations for high earners


    If you're already maxing out your W-2 employer's 401(k) at $23,500, the aggregation rule means zero employee contributions to a solo 401(k). However, high earners have unique advantages:


    Employer contribution opportunity

    Your solo 401(k) employer contribution limit is 25% of net self-employment income, with no aggregation restrictions. For someone earning $100K in freelance income, that's potentially $25,000 in additional tax-deferred savings.


    Mega backdoor Roth strategy

    If your W-2 plan allows after-tax contributions and in-service withdrawals, you might prioritize that over a solo 401(k). The combined limit for all contributions (employee + employer + after-tax) is $70,000 for 2026.


    Cash flow timing considerations

    High earners often have lumpy freelance income. Consider saving employer contributions in a business account throughout the year, then making one large contribution by the tax deadline.


    Key takeaway: High earners should focus on maximizing employer contributions from freelance income and exploring advanced strategies like mega backdoor Roth conversions.

    Key Takeaway: High earners already maxing W-2 contributions should focus on the 25% employer contribution opportunity from solo 401(k) — potentially $25,000+ in additional tax-deferred savings.

    PS

    Priya Sharma, Small Business Tax Analyst

    Best for people just starting freelance work who want to understand retirement account coordination

    Understanding the basics as a new freelancer


    When you start earning 1099 income, you don't automatically get a second $23,500 contribution limit. The IRS sees you as one taxpayer with one limit, regardless of income sources.


    Simple rule to remember:

    Add up all your employee contributions from every source. If the total exceeds $23,500, you've over-contributed.


    Common beginner mistake

    Many new freelancers assume they can contribute $23,500 to their W-2 job's 401(k) AND another $23,500 to a solo 401(k). This creates a $23,500 over-contribution subject to penalties.


    Start with tracking

    Before optimizing, track your W-2 contributions monthly. Most pay stubs show year-to-date 401(k) deferrals. Use this number to calculate remaining capacity.


    When a solo 401(k) makes sense

    Even with aggregation limits, a solo 401(k) often beats a SEP-IRA because:

  • Higher total contribution limits (employee + employer vs. employer only)
  • Loan provisions (if needed)
  • More investment options
  • Roth contribution capability

  • Key takeaway: Track your W-2 contributions first, then calculate remaining capacity for your solo 401(k) — don't assume you get two separate $23,500 limits.

    Key Takeaway: New freelancers must track W-2 contributions first and calculate remaining capacity — you don't get two separate $23,500 employee contribution limits.

    Sources

    401k limitsaggregation rulesolo 401kside hustleretirement planning

    Reviewed by Priya Sharma, Small Business Tax Analyst on February 28, 2026

    This content is for educational purposes only and is not a substitute for professional tax advice. Consult a qualified tax professional for advice specific to your situation.

    401(k) Aggregation Rule: W-2 + Side Hustle Limits | GigWorkTax