I've been contributing to a Roth IRA for many years, starting back when I was earning no income but my spouse was. I've since got a side hustle going where I bring in about $13,000 per year and have just continued to contribute the max into the IRA the whole time.
I recently learned that I could open a solo 401k for myself as well. But.. if I contribute the max to my 401k (which would be slightly less than my $13,000 income) can I still make contributions to the Roth? Reading the language again it says my max contribution is $5500 or my earned income. If I'm already shifting my income into a 401k, does that make it effectively $0 earned income leftover for the IRA?