Investors & landlords

If you sold a stock which was not in a retirement account it is a realized gain even if the proceeds were then invested in an IRA.