Capital Gains Tax

We sold some land in 2022 and had a Capital Gain on Long Term Asset.  We are both retired and live on Social Security so are income is low.  Is the Capital Gains tax figured on Total Income, Adjusted Gross Income or Taxable Income? 

 

Thanks