You will have to pay capital gains tax in both New York and Kansas. However, you may qualify for a credit in New York for the tax paid to Kansas. When you go through the New York return, make sure you click Start next to the Taxes Paid to Another State section to calculate the credit.
