Investors & landlords

I am probably looking at this the wrong way 
I assumed that making $20000 and paying tax on that would mean the first $20000 of the second year return has already been taxed
Otherwise why would I reinvest if I have to pay tax twice?