Bought house for $130k, divorced later, refinanced to remove ex and took out some cash, new mortgage $250. Sold for $440. Profit $170. Do I have to pay cap gains tax?

If I do is the bank or someone supposed to provide me with a form stating what the gains are?