IRC Section 1031 lets you transfer the cost basis as long as you reinvest in real estate and inherited assets get stepped up cost basis. As long as you stay invested in real estate (and the tax laws don't change), you could get an entire lifetime of appreciation tax free all while having positive cash flow.