Property
Like-kind real property
For real estate, like-kind is broad. Most U.S. real property held for business or investment can be like-kind to other U.S. real property held for business or investment.
A match in asset type does not mean you qualify. This is general information, not tax, legal, or financial advice. A real exchange needs a qualified intermediary and a tax advisor.
The buildings do not have to match
An apartment building can be exchanged for land, a warehouse, or another investment property. The two sides do not have to share a use, a size, or a tenant.
What they need to share is simpler, and stricter: both are real property, both are in the United States, and both are held for business or investment.
Two edges of the category
U.S. real property is not like-kind to foreign real property. A building across a border is not saved by being real estate.
After the 2017 tax law, 1031 treatment is generally limited to real property. Personal property is generally outside like-kind treatment under section 1031, even when it was used in a business.
Holding purpose is its own test
Raw land and a rented industrial building can be like-kind to each other when both are held for investment or business. The breadth of the real-estate rule does not pull in a property you hold for personal use.
A primary home fails the typical case for that reason, not because a house is the wrong kind of structure. A vacation house you mostly occupy has the same problem, unless a separate dwelling-unit safe harbor actually fits.
Like-kind is not the whole exchange
Two suitable parcels can still produce tax if you receive boot, miss a deadline, or take control of the proceeds. Like-kind answers what may be exchanged. It does not answer whether this exchange works.
Value, debt, the identity of the taxpayer, and related-party limits sit alongside the asset test. None of them is waived because the properties are both real estate.