When you sell a Pennsylvania farm for more than you paid, the gain is taxable. A 1031 exchange doesn't forgive that tax — it defers it, as long as you roll the proceeds into another like-kind property. Sell right and you keep more of your money working in land instead of sending it to the IRS.
What a 1031 exchange actually is
Section 1031 of the IRS code lets you swap one property held for business or investment for another and postpone the capital gains tax on the sale. In practice that means selling your farmland, reinvesting the full proceeds into replacement real estate, and deferring the gain on the old place.
Farmland held for income or investment generally qualifies. You don't have to buy another farm — the replacement just has to be like-kind real estate. That's a wide net in this world.
The two deadlines that will not bend
These are federal, non-negotiable, and there is no extension. The clock starts the day the old property closes.
45 days. You must identify your replacement property in writing to your qualified intermediary within 45 days of closing. You can name up to three properties. Miss this window and the exchange dies.
180 days. You must complete the purchase of the replacement property within 180 days of closing. That's the total for the whole thing, not 180 extra days after the identification.
Plan the replacement before you sign the sale agreement. These deadlines decide whether the deal works or whether you're writing a big check to the IRS.
You must use a qualified intermediary
Here's the rule that trips people up: you cannot take the cash from the sale yourself and reinvest it later. That's a taxable sale, period. The proceeds must go to a qualified intermediary — a neutral third party — who holds the money until you buy the replacement.
One slip and the whole exchange fails. Use an experienced QI and line up your real estate team before you close.
Reinvest enough to defer the tax
To defer the full gain, you need to meet two conditions: reinvest all of the net proceeds, and buy a replacement property of equal or greater value. Skimp on either, and that missing piece is taxable.
Think of it as a swap, not a sale-and-buy. If you pull money out of the deal in any form — cash on top, debt relief, a smaller replacement — that part is taxed.
Good news from Pennsylvania — this is new
For years, Pennsylvania only let you defer the federal tax. The state wanted its share regardless. Then on July 8, 2022, Pennsylvania changed course and conformed to the federal 1031 rules, so state tax can now be deferred too.
That's a real shift and it's recent enough that a lot of people don't know about it. But tax law can move again, so have your CPA confirm the current state of it before you commit to a plan.
Farmhouses and personal use complicate things
Here's the catch on owner-occupied farms: only the business and investment portion of the property is like-kind. The farmhouse you live in, the acreage that's personal use — that part may not qualify.
If your farm has a house you live in, get advice on how to split the property before you structure the sale. A little planning here avoids a nasty surprise at tax time.
What about an inherited farm?
A 1031 can pair with selling an inherited farm, but only if the numbers work. Inherited property gets a step-up in basis to its value at death, which often wipes out most of the gain before you even start. Whether the basis math makes a 1031 unnecessary or still worthwhile depends on your situation.
Read our guide to capital gains when you sell, then talk to your CPA about whether stacking a 1031 on an inherited farm makes sense for you.
A 1031 exchange only works if you hit the deadlines and let a qualified intermediary hold the money. Plan the replacement before you ever sign the sale agreement.
Who should and shouldn't use a 1031
A 1031 makes sense when you genuinely plan to stay in real estate and keep the next property for a while. If you want to exit land entirely and cash out, it's the wrong tool — you'll just owe the tax eventually anyway and you've added complexity.
It also adds cost and paperwork. The QI charges a fee, and you're managing two closings and hard deadlines. On smaller holdings, the hassle can exceed the tax you save. Run the math before you commit.
This is not tax or legal advice. A 1031 exchange has more moving parts than almost anything else in a farm sale, and the penalties for a misstep are real. Work with a qualified intermediary and your CPA before you sign anything.
When you're ready to figure out what your property is worth in today's market, I can pull a valuation and talk through your options.
Curious what your farm would bring in today's market?
Free Farm ValuationCommon questions
Can I use a 1031 exchange on a farm I actively farm myself?
Generally yes, if the farmland is held for business or investment. The catch is personal-use parts of the property, like the farmhouse you live in, which may not count as like-kind. Get advice on splitting the property before you structure the sale.
What are the 45-day and 180-day deadlines?
Within 45 days of the sale closing you must identify the replacement property in writing to your qualified intermediary. Within 180 days of closing you must complete the purchase. Both are federal, firm, and there is no extension.
Does Pennsylvania now allow a 1031 exchange for state tax?
Yes, as of July 8, 2022 Pennsylvania conformed to the federal 1031 rules, so state capital gains tax can now be deferred too. Tax law can change again, so confirm the current status with your CPA before you rely on it.
Do I need a qualified intermediary to do a 1031 exchange?
Yes. You cannot take the sale proceeds yourself and reinvest them later — that makes it a taxable sale. A qualified intermediary must hold the funds from the sale until you buy the replacement property.
What kind of property can I buy to fully defer the tax?
It has to be like-kind real estate held for business or investment — farmland, commercial property, even certain residential rentals. To fully defer, reinvest all of the net proceeds and buy a replacement of equal or greater value.