Investing

Yep, you'd pay.  There's no "rollover" of profits generally available when it come to gains on the sale of stock.