Investors & landlords

 My question is, can I offset that same amount I would be taxed on if I also cashed out of stocks with the same amount of capital losses? (I'm wanting to avoid having to pay capital gains tax if I can.)

 

Yes that's how it works.   You first net the gains and losses.  Then you are only taxed (if any) on a Net Gain.