Investors & landlords

You have to sell it first.  You don't have a "realized" gain or loss on a stock until you sell it.

**Answers are correct to the best of my ability but do not constitute tax or legal advice.