Selling a HomePart of: How to Sell a House: The Complete Step-by-Step Guide

Selling a House for a Job Relocation: Tax Rules, Timing, and Whether to Rent Instead

Selling your home because of a job relocation can still qualify you for a prorated home-sale tax exclusion, even if you haven't owned it two years. Here's how the IRS's work-related-move rule works, plus the timing, rental, and financing decisions that come with an out-of-town move.

A homeowner with a packed suitcase standing in the doorway of an emptied bedroom

If you're selling your home because of a job relocation, you may still qualify for the federal home-sale tax exclusion even if you haven't owned or lived in the home for the full two years the rule normally requires. When the main reason for the sale is a change in workplace location, the IRS allows a partial, prorated exclusion instead of the full amount.

This guide covers that tax rule first, since it's the most time-sensitive piece, then works through the rest of a relocation sale: selling before or after your move, employer relocation packages, renting the home out instead, and bridging two mortgages while you wait for it to close. It assumes the home you're leaving is your main residence; a second home or vacation property you're giving up for the same move follows a different set of rules, covered in the federal tax mechanics for a second or vacation home sale.

The Short Answer

  • The standard rule: you generally need to have owned and used the home as your main residence for at least 24 months (2 years) of the 5 years before the sale, and not have taken this exclusion on another home in the 2 years before the sale, to exclude up to $250,000 of gain (single filer) or $500,000 (married filing jointly, which carries its own per-spouse conditions covered below).
  • The relocation exception: if you don't meet that test and the main reason for the sale is a change in workplace location, you may still qualify for a partial exclusion, prorated to the time you actually owned and used the home.
  • It's not automatic: eligibility depends on specific facts you have to confirm against IRS Publication 523's own worksheet, not a blanket rule that applies to every move.

Qualifying for the Tax Exclusion

The standard 2-of-5-year test

The baseline rule requires two things: you owned the home, and you used it as your main residence, for at least 24 months (2 years) out of the 5 years before the sale.

There is a third condition that's easy to overlook. IRS Publication 523 also sets a look-back requirement: you meet it if you didn't sell another home during the 2-year period before the date of sale, or you did sell one but didn't take an exclusion on the gain from it. You may take the exclusion only once during a 2-year period.

Meeting those tests lets a single filer exclude up to $250,000 of gain. The $500,000 figure for a married couple filing jointly carries its own conditions rather than doubling automatically: Publication 523 grants it when both spouses meet the residence and look-back requirements and one or both spouses meet the ownership requirement.

The partial exclusion for a job move

If you sell before you've owned and used the home for the full 24 months, you aren't automatically shut out. Publication 523 allows a partial (reduced) exclusion when the main reason for the sale was a change in workplace location, a health issue, or an unforeseeable event. This article focuses on the work-related-move path.

The reduced exclusion is prorated to the time you actually met the ownership-and-use test. It is not a flat dollar amount, and it is not automatic: you have to establish that the job change, not some other reason, was the main cause of the sale.

The 50-mile safe-harbor test

Publication 523 sets a distance-based safe harbor. You meet it if any of the following is true:

  • You started a new job farther away: you took or were transferred to a new job at least 50 miles farther from the home than your old work location was.
  • You started your first job nearby: you had no previous work location and began a new job at least 50 miles from the home.
  • Someone else in the household did: either of the above is true for your spouse, a co-owner of the home, or anyone else for whom the home was their residence.

Publication 523 illustrates the math with its own example: an old work location 15 miles from the home and a new one 65 miles away, a 50-mile increase, satisfies the test.

If you don't meet the 50-mile test

You may still qualify under a facts-and-circumstances test. The IRS weighs several factors:

  • Whether the situation arose during your ownership or use of the home.
  • Whether the sale happened not long after the situation arose.
  • Whether the situation could not have been reasonably anticipated when you bought or moved into the home.
  • Whether you had significant financial difficulty maintaining the home.
  • Whether the home became significantly less suitable for your family's needs.

This test is judgment-based rather than a bright line, so it's the scenario where a tax professional's review matters most.

A worked reduced-exclusion example

The reduced exclusion is calculated on Worksheet 1 of Publication 523. Take the shortest of three periods: how long you resided in the home, how long you owned it, and how long it's been since you last used the exclusion on another home. Divide that number by 730 if counting days, or by 24 if counting months, then multiply the result by $250,000.

For example: say a single filer owned and lived in a home for 18 of the 24 months before selling it, sold because of a qualifying work-related move, and hadn't used the exclusion on another home during that period. The shortest of the three periods is 18 months. Divide 18 by 24 to get 0.75, then multiply by $250,000: the result is $187,500, the amount this hypothetical filer could exclude.

For a married couple filing jointly, the worksheet doesn't simply prorate the combined $500,000 figure. Each spouse repeats the same three steps separately using $250,000, and the two results are added together.

Selling Before vs. After You Move

Selling before you move is the cleanest path for the exclusion: your ownership and use of the home as a main residence hasn't lapsed by the time you sell, and you avoid carrying two homes at once, discussed below.

Selling after you leave happens when a job start date arrives before an offer does, or the local market is slow. It's also where the clock starts running on your exclusion.

Because the ownership-and-use test looks at the 5 years before the sale, waiting too long after you move out can cost you the exclusion entirely. Roughly 3 years after you leave, your prior period of living there falls outside that 5-year window, and you stop meeting the 24-of-the-last-60-months requirement.

How Relocation Packages Work

Employer relocation benefits vary by company and industry, and there's no reliable public data on how common any structure is or what it's typically worth. In general terms, a package can include:

  • A lump-sum payment: a flat amount toward moving costs, with few strings attached.
  • Temporary housing: short-term lodging near the new job while you sell the old home or find a permanent place.
  • Direct reimbursement: the employer pays or reimburses specific costs, such as movers, closing costs, or storage, against receipts.
  • A guaranteed-buyout arrangement: a relocation company or the employer commits to purchasing the home at an appraised value if it hasn't sold by a deadline.

In a guaranteed-buyout structure, the relocation company, not you, typically markets and eventually sells the home. That can simplify a sale on a tight deadline, but it comes with its own appraisal process and terms set by the employer's policy.

Before you list, ask:

  • Is my payout based on an appraisal, a listing price, or an accepted offer?
  • Who chooses the listing agent: the relocation company, or me?
  • What happens to my equity if the home sells for more than the guaranteed price?
  • Is any part of this benefit taxable income? This article doesn't cover the tax treatment of relocation benefits; ask a tax professional.
  • What's the deadline, and what happens if I miss it?

Renting It Out Instead of Selling

If you can't sell before you have to relocate, or the local market is soft, renting the home out is a live alternative to a rushed sale. It buys time without accepting a lowball offer just to close before you leave.

Once you move out and rent the home to someone else, it stops being your primary residence to a mortgage lender. Fannie Mae's Selling Guide defines a principal residence as a property the borrower occupies, and an investment property as one owned but not occupied by the borrower. New financing on the home is then underwritten as investment-property financing, not primary-residence financing.

Rental income and expenses are reported on Schedule E of Form 1040, according to IRS Topic No. 415. Deductible expense categories include:

  • Mortgage interest
  • Real estate taxes
  • Casualty losses
  • Maintenance, utilities, and insurance
  • Depreciation

Rental losses can also be limited by the at-risk rules and the passive-activity-loss rules.

Renting the home out doesn't automatically forfeit the home-sale exclusion. The same ownership-and-use test still applies to a later sale, so as long as you sell within the window that keeps at least 24 of the last 60 months counted as residence time, you can still qualify. Wait too long after you move out and start renting, and you risk the same forfeiture described above.

One carve-out matters if you go this route. Publication 523 states that you can't exclude the portion of the gain equal to any depreciation adjustments allowed or allowable on the property after May 6, 1997, and that this depreciation must be recaptured and reported. In plain terms, the depreciation you deduct as a landlord is gain the exclusion won't shelter when you eventually sell. For the deeper mechanics, see a full breakdown of renting your house out instead of selling it.

Bridge Financing Between Homes

If you need to buy in your new location before your old home sells, you're financing two homes at once, at least temporarily. A home equity loan lets you borrow a lump sum against your equity (your home's current value minus what you owe), usually at a fixed rate, according to the Consumer Financial Protection Bureau. The CFPB is direct about the risk: if you can't repay it, the lender could foreclose on your home.

A home equity line of credit works differently: instead of one lump sum, you draw money as needed up to a maximum limit. Both become second mortgages if you already have a first mortgage. A purpose-built bridge loan is a separate product; see how a bridge loan works and comparing a bridge loan, a HELOC, and a cash offer side by side for the full mechanics.

Whichever route you use, get an official Loan Estimate from each lender you're considering and compare terms side by side rather than relying on an advertised rate, per the CFPB's homebuying guidance.

The real cost of bridge financing isn't just the loan itself. It's a second mortgage payment, insurance, utilities, and upkeep on a home that's sitting empty, or that you're renting out, while you wait for it to close. Build that carrying cost into your relocation budget before you commit to buying ahead of your sale.

Selling Fast on a Deadline

A relocation deadline changes how you price and prepare a listing. Pricing at or near market value from day one, and finishing disclosures and paperwork early, both shrink the number of days your sale depends on. See more tactics for selling a house fast for the full playbook.

A 1% listing agent lists, markets, and negotiates your sale as a full-service listing agent does, so a compressed relocation timeline doesn't have to cost you service. Listing commissions are always negotiable and vary by agent and by market, so compare any rate you're quoted against what you'd pay here. You can estimate what you'd net from a 1% listing before you decide how to price it.

Reassuring a buyer on a fast timeline doesn't have to mean cutting price, either. Whether a seller-paid home warranty is worth it on a compressed timeline covers a lower-cost concession some relocating sellers offer instead.

If your relocation is inbound rather than outbound, it's also worth checking whether your new city or state runs its own cash relocation-incentive program.

This Is Not Tax Advice

This article explains general federal rules from IRS Publication 523. It is not a substitute for advice from a tax professional about your specific situation, especially for the facts-and-circumstances path, which is judgment-based rather than a bright-line test.

State income-tax treatment of your gain, and the tax treatment of any employer relocation benefit, are both outside the scope of this article. Confirm both, along with your own numbers on Worksheet 1, with a tax professional before you rely on any figure here. For the full mechanics of the standard exclusion, see how the standard $250,000/$500,000 home-sale exclusion works, and for the broader process, the complete guide to selling a house.

Frequently asked questions

Do I have to own my home for two years to avoid capital gains tax when I relocate for work?
No. If the main reason for your sale is a change in workplace location, you may qualify for a partial exclusion even if you haven't met the standard 24-month ownership-and-use test. The amount is prorated based on how long you actually owned and used the home, using Worksheet 1 in IRS Publication 523.
How far does my new job have to be for the relocation exclusion to apply?
The IRS's safe harbor is met if your new work location is at least 50 miles farther from the home than your old work location was, or, if you had no previous work location, at least 50 miles from the home. This can also be satisfied through a spouse, a co-owner of the home, or another resident of the home, not just you.
What if my move doesn't meet the 50-mile rule? Can I still get a tax break?
Possibly, under a facts-and-circumstances test. The IRS weighs factors like whether the situation arose while you owned and used the home, how soon after it the sale happened, whether it was foreseeable, and whether you had significant financial difficulty or reduced suitability living there. Because this test is judgment-based rather than a bright line, review it with a tax professional before you assume you qualify.
If I rent my house out instead of selling before I relocate, do I keep the home-sale exclusion?
Yes, as long as you sell within the window that still counts at least 24 of the last 60 months as time you used the home as your main residence. Renting it out does change how the property is underwritten for loan purposes, and how the rental income and expenses are taxed.
Is this article tax or legal advice?
No. This article explains general federal rules based on IRS Publication 523 and is not a substitute for advice from a tax professional about your specific situation, particularly for the facts-and-circumstances test and any state tax question.

Sources

  1. Publication 523 (2025), Selling Your Home, Internal Revenue Service Official source
  2. Topic No. 701, Sale of Your Home, Internal Revenue Service Official source
  3. Topic No. 415, Renting Residential and Vacation Property, Internal Revenue Service Official source
  4. Selling Guide: B2-1.1-01, Occupancy Types, Fannie Mae Official source
  5. What is a home equity loan?, Consumer Financial Protection Bureau Official source
  6. What is the difference between a Home Equity Loan and a Home Equity Line of Credit (HELOC)?, Consumer Financial Protection Bureau Official source
  7. Owning a Home (buying-a-house hub: Loan Estimate, comparing offers), Consumer Financial Protection Bureau Official source

About the author

Steve Hawks is a Las Vegas REALTOR® with Platinum Real Estate Professionals, licensed in Nevada since 1998 (license S.0042057), with more than 3,500 homes sold across four full market cycles. A specialist in selling strategy and commissions, he was arguing against one-size-fits-all commission rates in the Las Vegas Review-Journal's "Ask the Expert" column nine years before the NAR settlement made it a national story, and the Review-Journal has quoted him on commissions, Wall Street buyers, and the settlement itself. He has appeared on national outlets including CNBC, Fox Business News, ABC World News, and USA Today covering the Las Vegas market, represented Fannie Mae and Bank of America on distressed sales through the 2008 downturn, and holds a 5.0 rating across 163 Zillow reviews. He earned a B.S. in Finance, Real Estate & Law from Cal State Long Beach and has been voted Best Realtor in the Las Vegas Review-Journal's Best of Las Vegas seven times.

Home Stimulus is a new-construction marketplace and homeowner toolkit; articles may reference its 1% listing service performed by licensed partner agents, its cash-offer option, and agent matching.

Ready to make your move?

Put the guidance to work: get a no-obligation cash offer on the home you're leaving, or list it for 1%.

The Home Stimulus app

Your next home, in your pocket.

Search every new-construction home we track, watch builder incentives move, and get an alert the moment a price drops.