Earned Income for Roth IRA

  • I had a total of 6,000 inW2 Earned Income in 2019.
  • I also had a loss of -5,000 in 1099 Income in 2019.
  • I contributed 6,000 to my 2019 Roth IRA.

Do I have a 5,000 excess contribution in 2019? 

 

In other words, is my Earned Income based on just my W2 income or both W2 and 1099 combined Net Income?