Retirement tax questions

See IRS Pub  590A Contributions to IRAs page 6  What is Compensation - Self Employment Income.  

The deduction allowed for the deductible part of yourself-employment taxes.

https://www.irs.gov/pub/irs-pdf/p590a.pdf