Scott, as long as you sold the losing stock, you'll pay tax on the difference (100K - 50K). Be careful of the wash sale rules (buying back your loser within 30 days of selling it means you don't get the loss until a future sale).
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.