joeg836
Returning Member

Capital Gains and previous State taxes

We moved from MD to NC in Dec of 2020. I had one additional paycheck from the MD employer that was attributed to 2021 income but MD taxes were withheld. I bought both NC and MD turbo tax software.

Last year (2021) I had to sell stock in a company that was bought out. As a result, I had some capital gains. Turbo is correctly refunding my MD taxes from my salary income but when I enter the capital gains from 2021 it reduces my MD refund. Is this correct? Do I have to pay capital gains tax in a state I was not a resident of when I sold the stock?