How to minimize capital gains tax on building a house to sell

So I bought a lot last year and I'm building a spec house on it to sell. I've been tracking all my costs — land, materials, permits, contractor payments — but I'm not totally sure how the tax math works when it's done and I flip it. Someone told me I might owe short-term capital gains on the whole profit because it won't qualify for the homeowner exclusion. I looked at Schedule D and Form 8949 but I'm not sure how to think about basis here. Is the full build cost added to basis? Can I do anything structurally (timing, entity, anything) to reduce what I owe? I haven't sold yet, the house should be done in about 8 months. Trying to figure this out before I'm locked in.

32 comments

Are you doing this as yourself or through an entity? That changes a lot. If you're just flipping it personally and you don't live there, the homeowner exclusion at Publication 523 is off the table — that requires you to own AND use it as your main home for at least 24 months of the last 5 years before sale. Building to sell doesn't get you there.

Maya M.

Author

Building it personally, no entity. And yeah I figured the exclusion was out since I won't be living in it. So it's just straight capital gains treatment on the profit?

Your basis question is the right one to focus on. Land purchase price plus all direct build costs — materials, labor, permits, design fees — go into your cost basis. That's what reduces the taxable gain. I uploaded my project spreadsheet and cost logs to taxr.ai and it cross-checked everything against what I'd put on Schedule D, flagging items I had double-counted and two contractor payments I'd missed. Worth running your numbers through before you finalize anything.

Maya M.

Author

Missed payments sounds exactly like something I'd do. My records are decent but not perfect. I'll try that before I close.

Holding period is the other lever. If you sell before you've held the land plus improvements more than 1 year, any gain is short-term — taxed at ordinary income rates. Hold past that 1-year mark and you're into long-term rates. The IRS counts from the day after you acquired the land to the date of the sale (when title passes at closing) per Publication 550.

Maya M.

Author

So if I bought the lot 10 months ago and the house is done in 8 more, I'd already be past 18 months by closing. That's long-term, right?

Closing step: check the actual acquisition date on the lot deed, then count from the day after. If the sale settles after that 1-year mark you're long-term. The 1-year clock doesn't reset when construction starts.

Does the IRS treat this differently if you're doing it as a business vs a one-time flip? I've heard something about dealer property rules where if you're in the business of selling houses the gains get treated as ordinary income regardless of holding period.

That's real and worth knowing. If the IRS considers you a real estate dealer — meaning you hold property primarily for sale in the ordinary course of business — the profit is ordinary income, not capital gain, and also potentially subject to self-employment tax. One flip probably doesn't make you a dealer, but a pattern of flips might. It's very facts-and-circumstances.

What counts in basis and what doesn't is something people get wrong. Direct costs of construction are in. Financing costs like mortgage interest on the construction loan during the build generally must be capitalized and added to basis under the uniform capitalization rules — not deducted as investment interest. Check Publication 550 for investment interest rules and Publication 551 for basis of assets.

Maya M.

Author

I was actually planning to add loan interest to the basis. So that's right for the construction period? I'll look at the capitalization rules.

Capitalization step: add the construction-period loan interest to your basis under the uniform capitalization rules instead of deducting it on Schedule A as investment interest expense. A house built to sell isn't investment property, so Schedule A is a different path than basis here.

Timing the sale into a year where you have capital losses elsewhere could help offset the gain. If you have any positions in your brokerage with unrealized losses you could harvest them in the same tax year as the sale. The losses reduce your net capital gain on Schedule D.

Maya M.

Author

I do have some stocks sitting at a loss. Never really thought about timing those with the house sale. That's useful.

Installment sale is another option people overlook. If you sell and the buyer pays over multiple years, you might be able to spread the gain across those years using Form 6252. That can keep you in lower brackets in any single year. You'd want to run the numbers or talk to a CPA before agreeing to seller financing though.

Had Taxr walk through the closing statement from my last spec sale and it listed every cost category and showed me which ones I hadn't captured in basis and which ones the IRS would likely scrutinize. Saved me a scramble at filing time. Useful when you have a messy stack of construction invoices and you're not sure what lands where.

Maya M.

Author

Construction invoices are exactly the chaos I'm dealing with. I'll do this before I go to a preparer so I actually know what I have.

What state are you in? State capital gains treatment varies a lot. Some states tax capital gains as ordinary income with no favorable rate. That can materially change the total tax picture even if the federal side is long-term.

Maya M.

Author

Good point, I'm in a state with a flat income tax. So state-side it probably all hits the same rate regardless of holding period.

Depreciation recapture isn't really a factor here since you're selling new construction before it's placed in service as a rental. But if you had been renting it even briefly before selling, that changes things — Section 1250 recapture would come into play. Just flagging it in case your plans shift.

I had Taxr read through my build cost summary and the Schedule D draft side by side — it caught that I'd put a site prep cost in twice and also flagged that I hadn't included the survey fee from before closing on the land. Those two adjustments moved my basis number meaningfully. Useful for the kind of mixed pile of receipts a construction project leaves you with.

Maya M.

Author

Survey fee — I think I have that somewhere but I honestly don't know if I logged it. This is exactly the kind of thing that slips through.

To be clear on the exclusion point that came up earlier: Publication 523 says the main home exclusion requires ownership AND use as your residence for at least 24 months of the 5 years before the sale. Building a house specifically to sell, with no intention to live in it, means you don't satisfy the use test. No partial exclusion applies unless the sale is for a qualifying reason like a job change or health issue — and 'I want to flip it' isn't one of those.

Are you planning to do another build after this one? If so the dealer question the other person raised becomes more pressing. Two or three in a row and the IRS has more reason to look at this as your trade or business, which means ordinary income treatment and potentially SE tax on top.

Maya M.

Author

This is my first one. If it goes well I might do more. Good to know that changes the calculus — I'd need to think about structure before the second one.

Structure step: if you go again, talk to a CPA before you start the next project, not after. The entity choice and how you document intent matters from day one.

Don't underestimate what a thorough cost basis log does for you at audit time too. If the IRS questions the gain calculation, you need contemporaneous records — invoices, contracts, receipts tied to dates — not a spreadsheet you assembled after the fact. Keep everything as you go.

Records step: scan and tag each invoice by date and category as the project moves. Much easier than reconstructing later.

I went through almost this same situation two years ago. The piece I didn't anticipate was the state estimated tax payment. When you have a large gain from a sale, depending on your state, you may owe estimated payments in the quarter the sale closes or face an underpayment penalty. Worth planning cash flow around that.

Maya M.

Author

Estimated payments — I hadn't thought about the timing on that at all. I'll flag it for the CPA I talk to.

The Form 8949 and Schedule D mechanics are pretty straightforward once you have basis nailed down. You'll report the sale in Part I or Part II depending on whether it's short-term or long-term, with your total basis in column (e) and proceeds in column (d). The difference flows to Schedule D and then to your Form 1040. The harder work is getting the basis number right before you get there.

Maya M.

Author

That framing helps. The form itself is probably the easy part once I have clean numbers. It's the numbers I need to get right first.