Gig Work Tax

What is the aggregation rule for 401(k) contribution limits when I have a W-2 job and side hustle?

Side Hustle + W-2advanced3 answers · 5 min readUpdated February 28, 2026

Quick Answer

The 401(k) aggregation rule limits your total elective deferrals to $23,500 across ALL employer plans in 2026. If you contribute $15,000 to your W-2 job's 401(k), you can only contribute $8,500 to your side business SEP-IRA or Solo 401(k). However, employer matching and profit-sharing contributions don't count toward this limit.

Best Answer

PS

Priya Sharma, Small Business Tax Analyst

Best for people earning $50K-$150K from W-2 job plus $20K-$80K from side business

Top Answer

How the 401(k) aggregation rule works


The 401(k) aggregation rule is one of the most misunderstood aspects of retirement planning for side hustlers. According to IRS Publication 560, your total elective deferrals across ALL employer-sponsored retirement plans cannot exceed $23,500 in 2026 ($31,000 if you're 50 or older).


This means if you contribute $15,000 to your W-2 employer's 401(k), you can only contribute $8,500 in elective deferrals to your side business's SEP-IRA or Solo 401(k). The IRS treats you as one person with one annual limit, regardless of how many businesses or employers you have.


Example: $80K W-2 salary + $40K freelance income


Let's say Sarah earns $80,000 from her marketing job and $40,000 from freelance consulting. Here's how the aggregation rule affects her retirement contributions:


W-2 Job Contributions:

  • Sarah contributes 15% of her $80K salary = $12,000 to her employer's 401(k)
  • Her employer matches 50% up to 6% = $2,400 employer match
  • Total to employer 401(k): $14,400 ($12,000 employee + $2,400 employer)

  • Side Business Contributions:

  • Remaining elective deferral limit: $23,500 - $12,000 = $11,500
  • She can contribute up to $11,500 to her Solo 401(k) as an employee deferral
  • She can also contribute up to 20% of her net self-employment earnings as an employer contribution
  • Net SE earnings after SE tax deduction: ~$36,226
  • Maximum employer contribution: $36,226 × 20% = $7,245
  • Total Solo 401(k): $18,745 ($11,500 employee + $7,245 employer)

  • Sarah's total retirement savings: $33,145 ($14,400 + $18,745)


    Key factors that affect your strategy


  • Employer matching: Always contribute enough to your W-2 job to get the full employer match first — it's free money
  • Income timing: You can adjust W-2 contributions mid-year, but Solo 401(k) contributions are based on actual net earnings
  • Plan types: SEP-IRAs have lower contribution limits than Solo 401(k)s for the same income level
  • Age 50+ catch-up: The additional $7,500 catch-up contribution applies to your total across all plans

  • What you should do


    1. Calculate your optimal W-2 contribution to maximize employer matching

    2. Project your net self-employment income for the year

    3. Use the remaining elective deferral room for your side business plan

    4. Consider a Solo 401(k) over SEP-IRA for maximum flexibility

    5. Track contributions carefully to avoid exceeding limits


    The quarterly estimator tool can help you plan contributions throughout the year based on your actual income.


    Key takeaway: The $23,500 elective deferral limit applies to ALL your employer plans combined, but employer contributions (matching, profit-sharing) don't count toward this limit and can significantly boost your total retirement savings.

    *Sources: IRS Publication 560, IRC Section 402(g)*

    Key Takeaway: The $23,500 elective deferral limit applies across all employer plans, but smart planning with employer contributions can help you save $30K+ annually for retirement.

    2026 retirement contribution limits for side hustlers with multiple income sources

    Contribution TypeAnnual LimitApplies ToNotes
    Elective deferrals$23,500 ($31,000 if 50+)All plans combinedThis is your main constraint
    Employer contributionsUp to 25% of compensationEach plan separatelyDoesn't count toward elective limit
    Total annual additions$70,000 ($77,500 if 50+)Per planEmployee + employer combined
    Solo 401(k) employerUp to 20% of net SE incomeSide business onlyBased on Schedule C profit

    More Perspectives

    JO

    James Okafor, Self-Employment Tax Specialist

    Best for people earning $100K+ from W-2 job plus $75K+ from consulting or freelance work

    Advanced strategies for high earners


    When you're earning $100K+ from your W-2 job and substantial freelance income, the aggregation rule becomes both a constraint and an opportunity for sophisticated tax planning.


    The key insight: while your elective deferrals are capped at $23,500 total, your employer contributions from the side business are limited only by the annual additions limit of $70,000 (or 100% of compensation, whichever is less).


    Example: $120K W-2 + $100K consulting


    Take Marcus, a software engineer earning $120K with a $100K consulting business:


    Optimal W-2 strategy:

  • Contribute just enough for full employer match (say 6% = $7,200)
  • This preserves $16,300 of elective deferral room for the Solo 401(k)

  • Side business maximization:

  • Net SE earnings after SE tax deduction: ~$90,600
  • Employee deferral: $16,300 (remaining room)
  • Employer contribution: $90,600 × 20% = $18,120
  • Total Solo 401(k): $34,420

  • Total retirement savings: $42,620 vs. $23,500 if he only used his W-2 plan


    The defined benefit option


    For very high earners ($200K+ combined), consider a defined benefit plan for the side business. This can allow contributions of $100K-$300K annually, completely separate from 401(k) limits.


    Tax timing considerations


    High earners should also consider:

  • Roth vs. traditional contributions (aggregation applies to Roth too)
  • Mega backdoor Roth strategies through the Solo 401(k)
  • State tax implications of retirement contributions

  • Key takeaway: High earners can often save $40K+ annually by strategically splitting contributions between W-2 and side business plans, maximizing employer contributions where income is highest.

    Key Takeaway: High earners can save $40K+ annually by strategically splitting contributions between W-2 and side business plans, maximizing employer contributions where income is highest.

    PS

    Priya Sharma, Small Business Tax Analyst

    Best for people just starting freelance work alongside their W-2 job who need to understand the fundamentals

    Understanding the basics


    If you're new to having both W-2 and 1099 income, the aggregation rule might seem complicated, but it's actually designed to prevent double-dipping on retirement tax benefits.


    Think of it this way: the IRS gives you one annual "bucket" for elective deferrals ($23,500 in 2026). Whether you fill that bucket from your day job's 401(k), your side business's Solo 401(k), or a combination doesn't matter — once it's full, it's full.


    Simple example: $60K job + $20K side hustle


    Jenny earns $60,000 as a teacher and $20,000 tutoring privately:


  • She contributes $10,000 to her school's 403(b)
  • She can contribute up to $13,500 more to a Solo 401(k) for her tutoring business
  • Her side business also allows an employer contribution of ~$3,600 (20% of net SE earnings)
  • Total retirement savings: $17,100

  • Common mistakes to avoid


    1. Over-contributing: The IRS penalizes excess contributions at 6% annually until corrected

    2. Ignoring employer match: Always get your full W-2 employer match first

    3. Wrong plan type: SEP-IRAs are simpler but often allow lower contributions than Solo 401(k)s

    4. Poor timing: Side business contributions must be made by the tax filing deadline (including extensions)


    Getting started


    Start simple: contribute enough to your W-2 plan to get any employer match, then open a Solo 401(k) for your side business. Track your total contributions monthly to stay under the limit.


    Key takeaway: The aggregation rule protects you from accidentally over-contributing, but proper planning ensures you maximize your retirement savings across both income sources.

    Key Takeaway: Start with your W-2 employer match, then use remaining elective deferral room plus employer contributions to maximize your side business retirement plan.

    Sources

    401k limitsaggregation ruleside 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.