Real estate

1031 exchange: rules and calculator

A 1031 exchange lets you sell an investment property, buy another, and pay the capital gains tax later, if the deadlines and the numbers line up.

A 1031 exchange, named after section 1031 of the Internal Revenue Code, lets the owner of investment or business real estate sell it and put the proceeds into another property without paying tax on the gain that year. Since 2018 only real property qualifies, and both properties must be held for investment or for use in a business, never a main home or a house bought to flip. The replacement must be identified in writing within 45 days of the sale and acquired within 180 days, or by the due date of the tax return if that comes first, and the money must sit with a qualified intermediary in between. Any cash you keep and any mortgage that is not replaced is boot, taxed now. In the calculator's example, a rental sold for $800,000 with a $335,000 gain and traded up to $1,000,000 defers the whole gain, about $75,892 of federal tax, and the new property starts with a basis of $665,000.

Purchase price + improvements − depreciation taken.

Taxed up to 25% when recognized.

Advanced: costs, other income, state rate

Commission, intermediary fee, title, transfer tax.

Top rate by default; lower if your income stays in a lower bracket.

Tax deferred by the exchange

$75,892

No boot: the whole gain is deferred

Realized gain$335,000
Cash boot (equity not reinvested)$0
Mortgage boot (debt not replaced)$0
Gain recognized now$0
Gain deferred$335,000
Basis of the replacement property$665,000
Tax on a plain sale instead$75,892

Federal 0/15/20% stacked on your other income, 25% cap on depreciation, 3.8% NIIT, state rate on the recognized gain. Exchange costs are treated as reducing the amount realized. How this is calculated

Checked by Radif Partners · Editorial policy · How we calculate

The two deadlines that end most failed exchanges

The clock starts the day the property you give up is transferred, and nothing stops it. By day 45 you must name the replacement in a signed document delivered to the intermediary or the seller, with a description precise enough to find it: a street address or a legal description. By day 180 you must own it. The two periods run at the same time, so the 180 days include the first 45. Weekends and federal holidays count, and the IRS does not extend the dates for a slow lender, except under a disaster relief notice for taxpayers in a declared area.

The 180-day limit has a second edge that catches December sellers. The exchange period ends on the earlier of day 180 or the due date of your return for the year of the sale, extensions included. A rental sold in November reaches day 180 in May, after April 15: file an extension, or the period closes on April 15 even if you have not bought yet. The mini-calculator below gives both dates from your closing day.

Your 45-day and 180-day deadlines

Identify the replacement by

Sun, November 29, 2026

Close on the replacement byTue, April 13, 2027
Return due date to watchnot binding
Days countedcalendar days, weekends and holidays included

Both periods run at the same time from the day the old property is transferred.

What you may identify

Most investors use the three-property rule: up to 3 potential replacements of any value, and you buy one or more of them. Above three, the total value of everything identified may not exceed twice the price of what you sold (the 200% rule), unless you end up acquiring at least 95% of the value you identified. Identifying a backup is cheap insurance: if the first purchase falls through on day 120, you can still close on property number two. A replacement you did not identify by day 45 cannot be added later.

Like-kind means real estate for real estate

The phrase sounds narrow, but for real property it is broad. A duplex can be traded for raw land, a warehouse for a block of condominiums, a farm for a strip mall, and a fee interest for a lease of 30 years or more. What matters is how you hold the property, not what it is: both sides must be held for productive use in a trade or business or for investment. Two exclusions follow. A main home is personal use, covered by the home sale exclusion instead. Property bought to fix up and resell quickly is held primarily for sale, which section 1031 shuts out. Real property in the United States and real property abroad are not like-kind, so a rental in Ohio cannot be swapped for an apartment in Lisbon. Equipment, vehicles and artwork stopped qualifying with the 2017 tax law.

Boot: the part of the deal that is taxed now

Boot is anything you receive that is not like-kind real estate. Cash left over after the purchase is boot. So is mortgage relief: if the loan paid off on the old property is larger than the loan on the new one, the difference counts as money received, unless you add cash of your own at closing to cover it. Exchange expenses such as the commission and the intermediary fee reduce what you realized. The gain you recognize is the smaller of the boot and the gain itself. Take an owner who sells for $1,000,000 with a $300,000 mortgage, buys for $900,000 with a $260,000 loan, and pockets the difference: $60,000 of cash boot plus $40,000 of mortgage boot makes $100,000 taxable now, and $500,000 stays deferred.

Boot from cash out or a smaller loan

Boot taxed this year (up to your gain)

$80,000

Cash boot$40,000
Mortgage boot$40,000
New loan needed to avoid mortgage boot$300,000

Adding cash of your own at closing offsets mortgage boot dollar for dollar; it never offsets cash you take out.

Depreciation recapture rides along

Depreciation lowered your taxable rental income every year, and it lowered your basis by the same amount. When gain is recognized on residential or commercial buildings, the part that comes from depreciation is unrecaptured section 1250 gain, taxed at your ordinary rate up to a ceiling of 25%, before the rest of the gain gets the 0%, 15% or 20% capital gains rates. A full exchange defers this too. A partial one does not split it pro rata: the calculator treats recognized boot as recapture first, which is the conservative reading for buildings that have been depreciated on a straight line. The 3.8% net investment income tax applies to recognized gain above $200,000 of income for single filers or $250,000 for couples, thresholds the IRS does not index.

The intermediary holds the money, not you

If the sale proceeds reach your bank account, even for a day, the exchange is over. A qualified intermediary, sometimes called an accommodator or facilitator, signs the sale and purchase agreements as the exchanger's assignee and holds the cash in between. Your own attorney, real estate agent, accountant or employee within the last two years cannot serve, nor can a relative. Intermediaries are not licensed by the federal government; ask how the funds are held (a segregated, qualified escrow or trust account protects you if the intermediary fails), and whether your state regulates them.

Basis carried into the new property

An exchange postpones the tax, it does not erase it. The deferred gain is subtracted from the price of the replacement to give its basis, so future depreciation is lower and a future taxable sale picks up both gains. In the example above, the $1,000,000 replacement starts with a basis of $665,000. The chain can go on for decades. When an owner dies holding the last property, heirs generally receive a basis stepped up to market value, which is why many investors exchange until the end; see estate tax by state for what the estate itself may owe.

Exchanges with relatives and other traps

Swapping with a related person, such as a family member or a company you control, is allowed, but if either side sells the property received within 2 years, the deferred gain becomes taxable in that year. Reverse exchanges, where you buy the replacement before selling, are possible through an exchange accommodation titleholder that parks one property for up to 180 days. A vacation home qualifies only if it is rented out at fair value and your personal use stays within limits set by IRS guidance. Report every exchange on Form 8824 with the return for the year the old property was transferred, even when no gain is recognized.

The state side of a deferred gain

States with an income tax generally follow the federal deferral, but some keep track of gain on property located in their territory. Since 2014, California requires an annual information return, form FTB 3840, from anyone who exchanges California property for property outside the state, so the deferred gain can be taxed when the replacement is finally sold. States without an income tax on capital gains have nothing to defer. The calculator applies the top rate of the state you choose to any boot; adjust the rate in the advanced options if your income sits lower. Transfer taxes are not deferred: the deed still pays the transfer tax of the state and county.

Questions people ask

Can I do a 1031 exchange on my primary residence?

No. Section 1031 covers only real property held for investment or used in a business. A main home is personal use and gets a different break, the exclusion of up to $250,000 of gain, or $500,000 for married couples, under section 121. A home that was rented out and later lived in, or the reverse, can sometimes use both rules, with limits on the gain that can be excluded.

What happens if I miss the 45-day identification deadline?

The exchange fails and the sale becomes an ordinary taxable sale. The intermediary returns the proceeds, usually after the 45th day or at the end of the 180-day period depending on the exchange agreement, and the gain is reported in the year the funds are received. There is no grace period; only a federal disaster declaration covering your area can postpone the dates.

Do I have to reinvest all the cash to avoid tax in a 1031 exchange?

To defer all the gain, yes: buy a replacement worth at least the net sale price and reinvest all the equity, keeping debt at the same level or replacing it with cash. Any cash you keep is taxed now, up to the amount of your gain, and so is a drop in mortgage debt that you do not cover with extra cash at closing.

How long must I hold a property before or after a 1031 exchange?

The tax code sets no minimum holding period. What counts is intent: the property must be held for investment or business use. Many advisers suggest holding a replacement through at least two tax years so the investment intent is easy to show. The only fixed period is two years for exchanges between related persons.

Is a 1031 exchange worth it on a small gain?

Compare the tax deferred with the costs. A qualified intermediary charges a fee, and the deadlines can push you to accept a worse property or price. On a modest gain in a state with no income tax, the federal saving may be a few thousand dollars. The calculator shows the tax a plain sale would cost next to the tax due with the exchange.

Can I exchange one rental property for two?

Yes. You can sell one property and acquire several, or sell several and buy one, as long as each property is identified in time and the totals respect the reinvestment rules. With more than three replacements, the 200% value limit on identified properties applies. Each property sold and bought still has to be investment or business real estate.

Keep going

Official sources for this page

Published by

Radif Partners

Rates checked on · Editorial policy · Contact

Estimates only: the figures on this page apply each state's published rates and rules to the numbers you enter. They do not replace the receipt of the seller, the bill of your county or city, or the decision of the state department of revenue.

State rates and exemptions for 2026, read on the official pages on