Match Day is just around the corner on Friday, and we’re celebrating all the graduating MS4s by offering a free WCI course. If you book a consultation with StudentLoanAdvice.com—the best in the business for helping you save money with your student loans—we’ll send you the Fire Your Financial Advisor: RESIDENT course (a $299 value) FOR FREE! Make sure to hurry, though. This offer ends on March 23. Saving huge money on your student loans and getting a free WCI course in the process? Sounds like a fantastic way to start on your path to financial literacy. Book an appointment with StudentLoanAdvice.com today.

It is relatively straightforward to get out of an investment in stocks, bonds, or mutual funds. You go onto your computer, make a few clicks, and voila, you're out. Depending on the type of account, you could have some tax consequences. In a tax-free account like a Roth, an HSA, or a 529, you probably won't have any. You have to be a little smarter in a taxable account, where you can hold an investment for at least a year to pay taxes at the lower long-term capital gains rates, donate it to charity to avoid capital gain taxes completely (and maybe get a charitable contribution deduction if you itemize), or just die and pass it along to your heirs tax-free.

Investments in individual properties are a little more complicated.

#1 The Home You Live In

Getting out of the home you live in is more straightforward than an investment property. You can usually sell the place and move on to the next one. You'll have a few selling costs, including realtor commissions, repairs, and vacancies (the time you're paying the mortgage but not actually living there), which are not insignificant. I've found that 10% of the value of a property is a pretty good estimate of the selling costs, but it can be done for less if you're willing to sell it yourself or if you can avoid having it sit empty.

There can be tax consequences as well. Until 1997, under Section 1034, you could exchange the equity in your home tax-free into another home of equal or greater value. That has since been repealed and replaced with Section 121, which basically allows you to exclude from income up to $250,000 ($500,000 married) in capital gains from the sale of your primary residence as long as you've lived there for two of the last five years. This essentially eliminates the tax consequences of selling a home for most home sales. Obviously, this provision of the tax code is highly discriminatory against those who live in expensive real estate markets like the Bay Area and Manhattan, as well as against those who stay in their homes for a long time.

#2 The 1031 Exchange

Investment property is not entitled to the $250,000 exclusion, unfortunately. Section 1031, however, does allow you to exchange your investment property equity into another property while deferring the capital gains (and depreciation recapture) taxes due. This works fine until you wish to get out of real estate investing altogether. Then, what are your options?

More information here:

I Want to Invest in Real Estate, But I Also Want to Be Totally Lazy About It: What Are My Options?

10 Ways to Avoid (or at Least Delay) Capital Gains Taxes

The 7 Worst Ways to Invest in Real Estate

#3 Pay the Tax Bill

Option No. 1 is to just pay the capital gains and depreciation recapture taxes due. If you bought the property for $100,000, depreciated it down over 14 years to $50,000, and sold it for $200,000, you would owe depreciation recapture taxes (25%) on $50,000 and long-term capital gains taxes (0%-20% + 3.8% PPACA tax) on $100,000. That could be as much as $12,500 + $23,800 = $36,300. That's enough to make any investor stop and wonder how to avoid that.

#4 Die

Option No. 2 is to die. If you buy an investment property worth $100,000, and 50 years later, the property is worth $1 million while you're on your deathbed, you've got two choices. You can sell it today and pay 25% of $100,000 (since it's now fully depreciated) and 23.8% of $900,000, or you can leave it to your heirs, who sell it the day after you die and owe no capital gains taxes—although your estate may possibly owe taxes if it is over $15 million ($30 million married) [2026 — visit our annual numbers page to get the most up-to-date figures].

The property gets a step up in basis at your death, so basically it's as if they bought it at its value on the day of your death. That'd be an extra ~$240,000 for them.

#5 Live in It

What's that you say? You don't want to die or pay taxes. Luckily, you have a few more options. The best of the rest might very well be to live in the property. Once it becomes your principal residence, you are again eligible for that tax exclusion of up to $250,000 ($500,000 married) of depreciation recapture and capital gains taxes. You have to own the property for at least five years and live in it for at least two years to qualify under Section 121.

The obvious issue here is that most investment property owners don't actually want to live in the type of property they were planning to rent out. Who wants to move from a 3,000 square foot house into a two-bedroom apartment for five years just to save $30,000 in taxes? Another option exists. You can do a 1031 exchange from an investment property you don't want to live in into an investment property you would want to live in. You then rent it out for a while before moving in your family. For how long do you have to rent it out? The IRS doesn't specify. The only requirement is that you have the intent to rent it and that you can prove it in an audit. I'd think a year of renting it out would be plenty, but it would probably be wise to consult with an attorney and/or accountant familiar with case law if you want to minimize this period.

More information here:

5 Bad Arguments Against Private Real Estate Syndications

A Tale of 2 Sponsors: How My Real Estate Investments Have Had Vastly Different Results

#6 Work in It (Do You Really Want Out of Real Estate Investing?)

Another option is to exchange the investment property into a building you're now leasing for work. You get away from the hassles of managing tenants and save on rent, but you don't owe any capital gains taxes on the exchange. Depending on why you want out of real estate investing, you might also be happy simply exchanging into a property requiring less management time, effort, and expense—such as a “triple-net” commercial property.

#7 Give It Away

Another way to avoid those capital gains and depreciation recapture taxes is to give the property away to charity. The charity can then sell it tax-free, and you may get an itemized deduction for the entire value of the property. Let's say it is a fully depreciated, paid-for property worth $200,000. You get a write-off for $200,000 (possibly saving you up to $100,000 in taxes depending on your marginal tax rate), the charity gets $200,000 (minus transaction costs), and the IRS doesn't get squat.

While you don't have to pay taxes, you do lose the property. Paying $200,000 to save $50,000 isn't exactly a smart business move. If you're not feeling quite that charitable, you could do a Charitable Remainder Trust. That means you give the property to the charity, and it establishes a trust for you for a certain number of years—such as 15-20—or until the death of you, you and your spouse, or all your grandchildren if you like. The charity sells the property, funds the trust with relatively conservative investments, and uses them to pay you interest for 15 years. Whatever is left belongs to the charity.

It's like buying an annuity (although the interest rate is significantly less, but by law at least 5%). You also don't get to deduct the full value of the donation, only the present value of the ultimate donation (the remainder), which must be at least 10% of the value at the time of the donation. Why would the charity do this? All charities won't, but those who do figure 10%+ in 15-20 years is better than nothing now. Many will put limitations on the trust as well, mostly because it isn't worth the hassle if they have to wait too long to get your money.

The Worst Way to Get Out of a Real Estate Investment

Given the other options, just selling and paying the tax may not be the worst way to get out of the investment (especially if you have a loss on it). But if you do this over and over again, it reflects a lack of planning on your part. If you're going to be a real estate investor, do it for the long-term, exchanging from one property to another as needed. Then, you only have to deal with the costs and hassles of getting completely out of real estate just once.

Interested in exploring private real estate investing? Make sure to sign up for the free White Coat Investor Real Estate Newsletter that will give you important tips for investing in this profitable asset class while also alerting you to new opportunities. Start your due diligence with those who support The White Coat Investor site:
* Consider these introductions—not recommendations. WCI has a financial relationship with every company listed, most are for accredited investors, and you are responsible for your own due diligence.

Have you needed to get out of a real estate investment? How did you choose to get out? Would you do anything differently? 

[This updated post was originally published in 2013.]