Capital gains tax on California land sale versus 1031 exchange — which way actually saves more?

Trying to figure out whether to do a capital gains tax on California land sale versus 1031 exchange before I close. I've owned a raw land parcel in the Central Valley for about 11 years, bought it for $80k and have an offer at $310k. No structures, so no depreciation to recapture. My problem is the buyer wants a 45-day close and I don't have a replacement property lined up. I ran the numbers roughly and between federal long-term capital gains and California's rate (which doesn't give a break for long-term — it's just ordinary income tax rate), the hit looks brutal. I've talked to one agent who says just sell it, another who says 1031. Neither explained the actual tax math. What am I missing here?

38 comments

California is the painful part of your equation. The state taxes long-term capital gains at the same rate as ordinary income, so whatever your California bracket is, that's what you owe the state on the full $230k gain. There's no preferential rate like the federal side has. Combined with federal long-term capital gains rate and potentially NIIT if your income is high enough, you could be looking at a meaningful chunk. A 1031 defers all of that — but only if you actually close on a replacement property within 180 days and identify within 45 days.

Diego T.

Author

That California piece is what's killing me. I knew the rates were bad but I didn't realize there was truly zero preference for long-term. So basically 1031 is the only real lever I have on the state side too?

Exactly. A 1031 defers California tax as well as federal. California does require you to file a form if you later do a 1031 out of California into another state — they want to track the deferred gain — but that's a future problem. Right now deferral is deferral.

The 45-day identification window is your real issue, not the tax math. You have to identify replacement property in writing to your qualified intermediary within 45 days of closing. If you miss it, the exchange fails and the whole gain becomes taxable in the year of sale. No extensions, no exceptions for not finding something you like.

Diego T.

Author

So if I close in, say, early August, I need replacement properties identified by mid-September regardless of whether the deal is ready?

Right. And "identified" means a written list delivered to the QI, not just a property you're thinking about. Most people use the three-property rule — you can name up to three properties without restriction. If you go over three you trigger percentage rules that get complicated.

Something people miss on raw land: since there's no depreciation, you don't have Section 1250 recapture to worry about, which is a genuine advantage. Your entire gain is long-term capital gain (assuming you've held over a year, which you have). But California still eats it at ordinary rates. 1031 into another land parcel or into income-producing real estate both qualify as like-kind under current rules.

Worth noting — "like-kind" for real property is pretty broad federally. Land can exchange into an apartment building, a commercial property, whatever. The like-kind requirement is much stricter for personal property but that doesn't apply here.

Before I closed on my exchange last year I uploaded all my QI documents and the draft closing statement to taxr.ai and had Taxr map every number against Form 8824 — boot received, realized gain, recognized gain, the adjusted basis in the replacement property. It caught that my QI had allocated closing costs incorrectly which would have inflated my recognized gain. Worth doing before you sign off on the final settlement statement.

Diego T.

Author

That's actually the kind of check I need. I've been staring at the 8824 instructions and the line for "net debt relief" is confusing me — if the replacement property has a lower mortgage than the relinquished one, that difference is boot?

Yes. If you're relieved of more debt than you take on, the difference counts as boot and you recognize gain to that extent. For raw land with no mortgage it's simpler — you just need to reinvest all the net proceeds into the replacement property to avoid any recognized gain.

The qualified intermediary has to be in place BEFORE you close the sale. You can't take constructive receipt of the funds and then try to do a 1031. If you close and the money hits your account, the exchange is dead. The QI holds the proceeds and you never touch them.

Diego T.

Author

My escrow officer mentioned this but didn't explain why it was such a hard rule. So the QI agreement needs to be signed before the deed transfers?

Before closing, yes. The IRS requires you to have no right to receive, pledge, borrow or otherwise obtain the sale proceeds during the exchange period. The QI agreement creates that restriction. Set it up now — most QIs can turn documents around in a few days.

I just want to push back a little on "just do the 1031" as default advice. If you don't have a good replacement property identified and you rush into something to meet the 180-day deadline, you can end up with a bad investment that loses more than the tax you would have paid. Deferral is not the same as elimination. You carry a lower basis into the replacement property and eventually that gain catches up with you — unless you hold until death and get a step-up.

This is fair. The basis carryover is real. If your $80k basis carries into a $310k replacement property, you're not starting fresh — you're just moving the problem. The only permanent escape (short of dying) is the step-up at death or a charitable remainder trust situation.

Exactly. And California also has its own version of basis tracking. So even if you eventually swap into a property in another state, California remembers the deferred gain.

I ran into the same tension on a California land sale two years ago. What helped me was building an actual side-by-side: pay tax now and deploy the after-tax proceeds into something else, versus 1031 and reinvest the full gross. I uploaded my numbers and the escrow statement to Taxr and it drafted a comparison worksheet showing the deferred gain balance, estimated future recapture if I improved the replacement property, and what the break-even holding period looked like. That concrete view made the decision a lot clearer.

Diego T.

Author

A break-even analysis is exactly what I've been trying to build manually. Did the worksheet account for California's tracking of the deferred gain separately from federal?

It flagged California's requirement to report when you do a subsequent out-of-state exchange and noted the deferred gain stays on California's books. It didn't file anything obviously — I still had my CPA review it — but the framework was solid enough to walk into that meeting knowing the right questions.

One practical point on the 180-day rule: it's 180 days from closing of the relinquished property OR the due date of your return (including extensions) for the tax year of the sale, whichever is earlier. If you close late in the year, that second limit can bite you. File an extension if you need the full 180 days.

Good catch. A lot of people close in December, assume they have until June, and then realize their unextended April return due date is actually the binding limit. Extensions on Form 4868 get you to October, which is later than the 180th day, so filing one gives you back the full 180 days if you close in late December.

If you decide to just pay the tax and not exchange, make sure you understand how the California nonresident withholding works at close. If the buyer's title company follows standard procedure they'll withhold a portion of the proceeds at closing and send it to the FTB. It doesn't change your ultimate tax, but your cash flow looks different on closing day than you might expect.

Diego T.

Author

Wait, I am a California resident though. Does withholding still apply?

For California residents the real estate withholding rules are different — your situation may qualify for a reduced or waived withholding if you file the right form with escrow. Check the FTB's real estate withholding pages. The title company should have the forms, but confirm it with them before close.

The NIIT angle is worth calculating explicitly. If your modified adjusted gross income clears the threshold, the net investment income tax applies on top of the federal long-term capital gains rate on this gain. That's another layer that makes the 1031 more attractive. The IRS instructions for Form 8960 walk through what counts as net investment income.

Don't forget: even inside a 1031 you'll have closing costs, QI fees, and possibly loan fees on the replacement property. Those transaction costs reduce your net proceeds but they don't create taxable boot in most cases if structured correctly. Your QI should walk you through what's "exchange expenses" versus what's not.

Diego T.

Author

My QI quoted me around $1,500 for their fee. I assume that comes out of the exchange account and counts as a transaction cost?

Typically yes, QI fees and standard closing costs on both sides are treated as exchange expenses and reduce the amount you need to reinvest. Loan fees for new financing on the replacement property get a little more complicated — ask your QI to confirm in writing what they'll treat as exchange expenses before closing.

Publication 544 at irs.gov and Form 8824 instructions are worth reading together if you want to understand the basis calculation in a 1031. Specifically the adjusted basis of the replacement property is your old basis plus gain recognized plus any additional cash paid, minus any boot received. If you get that wrong you'll have a basis problem when you eventually sell.

The Form 8824 itself walks you through it line by line. Lines 12 through 25 build the realized gain, recognized gain, and new basis step by step. It's actually one of the cleaner IRS forms once you have all the numbers.

Have you confirmed the replacement property qualifies? Land held for investment clearly qualifies for 1031. If you're thinking of swapping into a property you plan to build on and sell quickly, the IRS could argue that's inventory held for sale rather than investment property, and 1031 doesn't apply to dealer property.

Diego T.

Author

No, I'd be holding whatever I buy for the long term. I'm not a developer. So that shouldn't be an issue?

Should be fine then. The intent at the time of the exchange matters. Long-term passive holding reads as investment property. Where it gets risky is when someone buys replacement property and lists it six months later — that raises intent questions.

If you ultimately decide to just sell and pay the tax, you report the gain on Schedule D and Form 8949. The California gain goes on Schedule D (CA) on your 540. There's no special California exclusion for land, and the full gain hits at your ordinary income rate as others have said. At least the federal long-term rate will be the preferential rate if you've held over a year, which you clearly have.

Coming back to the original question — the actual decision hinges on what you'd do with the full proceeds versus the after-tax proceeds. If you have a strong replacement property in mind, 1031 is almost always the right math. If you're planning to put the money into stocks or just sit on it, paying the tax and moving on might make more sense because 1031 locks you into real estate.

Diego T.

Author

That framing actually helps a lot. I do have one property I've been watching in Arizona. If I can get the QI agreement signed before close and confirm the Arizona property is available, the exchange actually makes sense. I'll loop in a CPA who does 1031s before I commit.

A CPA or enrolled agent who specializes in exchanges is worth the fee here given the California angle. The state's basis tracking and the FTB's deferred gain reporting requirements when you eventually exchange out of California add complexity that a generalist might miss.