Earned or Net Income for Roth IRA

I’m self-employed and receive 1099-NEC from a company.

Since my income is not much this year, it’s confusing which to consider for Roth IRA. I already filed my tax return and which line should I look for when deciding how much I can contribute to my Roth IRA?

 

From 1040 (Federal Return Summary)

  1. Total Income vs Adjusted Gross Income
  2. Should I subtract Self-employment Tax from either Total Income or AGI?

From Schedule C

  1. Gross Income (line 7)
  2. Net profit (line31)

 

Thank you.