Capital gains tax selling primary home owned less than 2 years — do I owe the full amount?

Bought my house in March 2023, got a job relocation offer I couldn't turn down, and now I'm under contract to sell it this coming August. So I'll have owned it about 28 months — wait, actually closer to 17 months when we close. I know the standard exclusion requires 2 years of ownership AND use as your main home in the last 5 years, and I'm short on both. The gain is going to be significant. I looked at Publication 523 and saw something about a "partial exclusion" for workplace relocation but I'm not sure how to calculate what I'd actually qualify for or where on Form 8949 and Schedule D the numbers land. Has anyone dealt with capital gains tax selling a primary home owned less than 2 years under the relocation exception? Not sure if I report on Form 8949 even if the whole gain ends up excluded.

42 comments

Did you receive a Form 1099-S from the closing? That changes whether you have to report the sale at all, even if the gain turns out fully excluded under the partial exception.

Kevin F.

Author

I haven't closed yet so I don't know, but good point. The title company mentioned they might issue one. I'll find out at closing.

Before my own relocation sale a couple years back I uploaded my closing disclosure and the worksheet I'd started to taxr.ai and it flagged that I'd miscalculated the partial exclusion fraction — I had the numerator and denominator both wrong. Saved me from overstating the exclusion on Schedule D. Worth running your numbers through it before you file. On the substance: the partial exclusion for a job relocation is a fraction of the full exclusion amount. The numerator is the shorter of (a) your qualified use period or (b) the period you owned the home, expressed in days or months. The denominator is 730 days (or 24 months). Publication 523 has the exact worksheet.

Kevin F.

Author

So if I owned it 17 months, the fraction would be 17/24 of the full exclusion for my filing status? That's a meaningful chunk. And if that covers my whole gain I still have to report it on Form 8949 if a 1099-S was issued?

Exactly right on both. If a Form 1099-S was issued, you report the sale on Form 8949 regardless of whether any gain remains taxable. Part II, box F, code H in column (f), and the excluded portion as a negative number in column (g). The taxable gain, if any, flows through 8949 to Schedule D line 10.

What's your filing status? The full exclusion ceiling differs for single vs. married filing jointly, so the partial amount you can shield differs too. Publication 523 has the eligibility test broken out by step.

Kevin F.

Author

Married filing jointly. So my fraction applies to the higher ceiling. I need to run the actual numbers still.

Are you certain relocation qualifies here? The rule in Publication 523 says the partial exclusion applies if the MAIN reason for the sale was a change in workplace location. Worth documenting that — an offer letter, the new employer address, something showing the new job is farther from the old home than a certain distance. The IRS can ask.

Distance safe harbor is in the Publication 523 instructions — essentially the new workplace has to be at least 50 miles farther from the home sold than the old workplace was. Keep that offer letter.

Kevin F.

Author

New job is about 400 miles away so I should be fine, but I'll keep the offer letter in my records regardless.

The holding period matters for whatever gain you can't exclude. You said roughly 17 months — that's short-term, right? Under 1 year is short-term, over 1 year is long-term. 17 months would be long-term.

Correct. The cutoff is more than 1 year for long-term. 17 months clears that easily. The holding period for securities starts the day after the trade date but for real property generally starts the day after closing on purchase and ends on the sale date. So double-check the exact dates.

Right, so whatever portion of the gain isn't sheltered by the partial exclusion gets reported as long-term on Schedule D and taxed at long-term capital gains rates, not ordinary income rates. That's at least favorable.

Does the basis calculation trip anyone else up in these situations? You need to add any capital improvements to your original purchase price before figuring the gain. Things like a new roof or HVAC added to basis reduce what's taxable.

Kevin F.

Author

We did do some work — replaced the water heater and finished part of the basement. I need to track down those receipts. Good reminder.

Publication 551 covers basis adjustments. Finishing a basement would likely qualify; a water heater replacement might too depending on how it was done. Keep the contractor invoices.

I sold my place after 19 months a few years ago under a health exception, similar situation. I uploaded the Form 1099-S and my draft Form 8949 to Taxr and it walked me through where the excluded amount goes in column (g) and confirmed I had code H right. Really helped me feel confident the return was right before I sent it. One thing I'd add: if any gain remains after the partial exclusion, it goes into Part II of Form 8949 as a separate line from the excluded portion — or rather, the excluded amount reduces what appears on Schedule D. Make sure your software or preparer handles that correctly.

Kevin F.

Author

Did you end up with any taxable gain after the partial exclusion, or did it cover everything? Just curious how close the math was for you.

Small taxable amount remained for me. It showed up as long-term on Schedule D and I owed some tax but far less than I feared. The partial exclusion did most of the work.

What happens if someone doesn't qualify for ANY exclusion — not even partial — because the reason for selling isn't relocation, health, or an unforeseeable event? Full gain taxable?

Yes, full gain would be taxable. Report it on Form 8949 Part II (long-term if held more than 1 year) with no code H adjustment. The whole amount flows to Schedule D. No partial exclusion is available outside those qualifying reasons listed in Publication 523.

Is there any situation where someone who's short of 2 years still gets the FULL exclusion rather than just the partial?

No. The full exclusion requires meeting the ownership and use tests completely — 24 months each within the 5-year window. If you're short, you're in partial exclusion territory at best, assuming a qualifying reason applies. The fraction is always capped at the full exclusion amount, not exceeding it.

How does this interact with a 1031 exchange if the property was acquired that way? Just asking because I've seen that come up.

Publication 523 specifically excludes homes acquired through a section 1031 like-kind exchange within the past 5 years from the exclusion entirely — not even a partial exclusion applies in that scenario. Different situation from the poster's but worth flagging.

Didn't realize it was that categorical. So 1031 into a primary home and you're locked out of the exclusion for 5 years from the exchange date?

That's how Publication 523 reads it, yes. The 5-year clock on the 1031 restriction runs from the date of the exchange.

You mentioned the gain is "significant" — if you have any taxable amount after the partial exclusion, depending on your income you might owe net investment income tax on top of the capital gains rate. That's figured on Form 8960. Might be worth factoring into your estimate.

Kevin F.

Author

I hadn't thought about that layer. I'll look at Form 8960 when I run the numbers. Good flag.

For the Form 8949 mechanics: if a 1099-S was issued, you report the sale in Part II with box F checked. Enter proceeds in column (d), your adjusted basis in column (e), put code H in column (f), and the excluded gain as a negative number in column (g). The result in column (h) is your taxable gain — zero if the exclusion covers everything, positive if there's remaining tax owed. That flows to Schedule D line 10.

Worth noting: Schedule D line 8b is only for Form 8949 Part II entries with box D checked, so it isn't where this goes. Line 8a under Exception 1 is only for Form 1099-B transactions with basis reported to the IRS and no adjustments, so a home sale reported on a 1099-S can't use it. With box F and code H, it always goes through Form 8949 to line 10.

Also worth confirming: if no Form 1099-S was issued AND the partial exclusion covers the entire gain, do you even need to report it anywhere?

Correct per Publication 523 — if no Form 1099-S was issued and the gain is fully excluded, you're not required to report the sale on your return at all. But the moment a 1099-S exists, you report it on Form 8949 regardless of the taxable amount.

Kevin F.

Author

That's the key question for me then. I'll confirm at closing whether the title company is filing a 1099-S. If they are, I report; if not and the exclusion covers everything, I may not have to.

If your taxable gain after the partial exclusion is large, it might be worth talking to a CPA before you file — not just for the calculation but because the interaction with your overall income affects the actual capital gains rate you'll pay, and potentially the NIIT threshold. An enrolled agent familiar with real estate transactions could also help.

Kevin F.

Author

Agreed. The partial exclusion calculation alone I think I can handle, but I'll get a CPA to review the return before filing given the size of the number involved.

Did anyone address whether the exclusion fraction uses days or months? I've seen both referenced.

Publication 523 allows either days or months for the fraction — numerator is your period of qualifying ownership and use (whichever is shorter), denominator is 730 days or 24 months depending on which you use. You can't mix units. Use whichever gives the more favorable result for your situation.

Days might give a slightly larger fraction in some cases if the month-based count rounds down. Worth doing both calculations.

To make sure I understand the sequence: figure your adjusted basis first (purchase price plus improvements), subtract from net sale proceeds to get the total gain, then apply the partial exclusion fraction to the full exclusion ceiling for your filing status, take the lesser of that or your actual gain as the excluded amount, and whatever's left is taxable on Schedule D. Is that the right order?

That's the right sequence. Net proceeds minus adjusted basis equals total gain. Apply the fraction to the applicable ceiling. The exclusion is the lesser of the fraction amount or the total gain. Remainder, if any, is long-term capital gain on Schedule D — assuming you held more than one year.

Kevin F.

Author

Writing this out as my actual worksheet. This thread has been exactly what I needed to get started before I sit down with a CPA.