Situations

Selling a house when you relocate

Applies to United States and Canada

By Sell My House Fast Editorial Team

Published Updated Last reviewed

Checked by our editorial process. How we write and check our guides.

The short answer

A house can be sold before or after a move in the United States or Canada. A US seller who sells because of a job move may still exclude part of the gain from federal tax, and only some military and intelligence moves allow a moving deduction. In Canada, moving expenses can include the costs of selling the old home.

Key takeaways

  • In the United States, a seller who misses the 2-year tests because of a new job at least 50 miles farther from the home than the old one may still exclude a reduced, prorated amount of gain.
  • In the United States for 2026, only Armed Forces members on active duty moving under military orders, and intelligence community members moving for a change in assignment, can deduct moving expenses.
  • In Canada, for the 2025 tax year, a work move that brings the new home at least 40 kilometres closer to the new work location can make the commission, legal fees and mortgage penalty on the old home deductible.
  • Under the Servicemembers Civil Relief Act, a foreclosure sale on a mortgage taken out before service is not valid during service or for one year after it, unless a court ordered it first or a waiver agreement allows it.
  • A house left empty after the move keeps costing money and needs its own insurance and security arrangements.

What are the ways to sell a house when you have to move?

A seller who is moving can sell before the move, list the house and sell it after moving, or keep it and rent it out. Each choice trades time against price and effort, and none is right for every seller.

  • Sell before the move. A buyer who pays without a mortgage loan has no lender steps, so the closing date depends on the contract. The guide to cash home buyers explains the usual cost, which is price. In the United States, Opendoor, an iBuyer, says the seller can pick a closing date within the range it makes available. 13
  • List and sell after moving. A real estate agent can market and show the house while the owner is away. The guide to selling with a real estate agent covers the listing agreement and the time a listed sale takes.
  • Rent it out. Keeping the house as a rental changes the tax picture when it is sold later and adds a landlord’s duties.

We found no official source that reports how long any of these routes takes. The guide to how long each way of selling takes sets out what each step depends on.

Can you sell a house from another city?

Yes. A seller does not have to live in the house or be in the same city to sell it. The work an owner would do in person is done by others, or by mail and electronic signature where the closing allows.

  • Showings and offers. A listing agent, or a buyer who does not need showings, takes the place of an owner on site.
  • The closing. The professional who handles the closing prepares the documents and moves the money, and who that is depends on the state or province. The guides to closing day and closing a home sale in Canada explain who signs what.
  • An empty house. Insurance, security and upkeep need arranging. The Texas Real Estate Commission names vacation homes, second homes, rental properties and any property whose tax mailing address differs from the owner’s among the prime targets of seller impersonation fraud. 10 The guides to selling a vacant house and deed fraud cover both.

How does a job move affect capital gains tax in the United States?

A seller who sells because of a job move may exclude part of the gain even without meeting the usual tests. Federal law normally requires the seller to have owned and lived in the home as a main home for at least 2 years in the 5 years before the sale. 2

When the sale is “by reason of a change in place of employment, health, or, to the extent provided in regulations, unforeseen circumstances”, those tests and the once-in-2-years rule do not apply, but the limit is reduced. 2 IRS Publication 523 treats a move as work-related when the seller took or was transferred to a new job at a work location at least 50 miles farther from the home than the old one. Under that test the event must happen while the seller owns and lives in the home, and it can be the seller’s, a spouse’s, a co-owner’s or that of anyone else whose residence the home was. Where the test is not met, Publication 523 also allows a partial exclusion when the facts and circumstances show that the main reason for the sale was work, health or an unforeseeable event. 1

The reduced limit is prorated. Publication 523’s worksheet takes the shortest of three periods: the time the seller owned the home in the 5 years before the sale, the time the seller lived in it as a main home in those 5 years, and the time since the last sale that used the exclusion. It divides that period by 730 when it is counted in days, or by 24 when it is counted in months, and multiplies the full limit by the result. 1 The guide to capital gains tax on a home sale gives the full limits and a worked example.

What changes for military and Foreign Service moves?

Federal law lets a seller whose own or spouse’s service is qualified official extended duty, as a member of the uniformed services or the Foreign Service or as an employee of the intelligence community, choose to suspend the 5-year period while that duty lasts, for up to 10 years. The duty must be at a duty station at least 50 miles from the home, or under government orders in government quarters, and must last more than 90 days or for an indefinite period. 2

Can moving expenses be deducted when you sell and move?

In the United States, only for some government moves, and not the costs of selling the home. In Canada, eligible moving expenses for a work move can include the costs of selling the old home.

In the United States

Moving expenses in the United States

The IRS’s instructions for Form 3903 (2026) say a moving expense deduction is available “only if you are a member of the Armed Forces on active duty” moving because of a permanent change of station under a military order, or a member of the intelligence community who moves because of a change in assignment that requires relocation; the intelligence community rule applies for tax years beginning after 2025. The same instructions list the expenses of buying or selling a home, home improvements to help sell it, a loss on the sale and mortgage penalties among the costs that cannot be deducted as moving expenses. 3 The IRS lists the eligible costs as household goods, personal effects, storage and travel, including lodging but not meals. 4 IRS Publication 523 treats the costs of selling a home as selling expenses, which reduce the amount realized and so the gain. 1

An employer’s payments follow the same lines. IRS Publication 15-B (2026) says the One Big Beautiful Bill Act permanently eliminates the exclusion for qualified moving expense reimbursements from an employee’s income. The exceptions are a member of the Armed Forces on active duty who moves under a military order, and an employee or new appointee of the intelligence community who moves because of a change in assignment that requires relocation. 5

In Canada

Moving expenses in Canada

For the 2025 tax year, the Canada Revenue Agency (CRA) lets a person who moves to work or run a business at a new location deduct eligible moving expenses from the income earned there. The new home must be at least 40 kilometres closer to the new work location, by the shortest public route, and the move must generally be from one place in Canada to another. 6

The CRA lists these costs of selling the old home as eligible: advertising, notary or legal fees, real estate commission, and a mortgage penalty when the mortgage is paid off before maturity. It also allows up to $5,000 for interest, property taxes, insurance and heating and utilities on the old home while it is vacant after the move and reasonable efforts are being made to sell it. That amount is not allowed for any period when the home was rented. 6

The CRA does not allow work done to make the old home more saleable, a loss on the sale, or selling costs where the sale was delayed for investment purposes or until the market improved. Costs paid in a later year, because the old home sold late, are claimed on the return for the year they were paid, and cannot be carried back. An employer’s reimbursement must be included in income or taken off the expenses claimed. 6

What is an employer relocation program?

It is help an employer offers to an employee who moves for the job, under the employer’s own policy. What it covers is set by that policy and the employee’s agreement with the employer. Some programs pay moving or selling costs. Some arrange for a relocation company to buy the house if it has not sold by a set date.

A seller weighing such an offer is weighing a contract. The price a buyout pays, how it is worked out, which costs the program pays and when the seller must accept are all in its terms. In the United States, IRS Publication 15-B (2026) treats moving expense reimbursements as an employee’s income, except for the military and intelligence community moves it names. 5 A tax professional can say how a particular program’s payments are taxed.

What protections apply when a military move forces a sale?

Several federal rules apply to servicemembers in the United States, and each has limits.

  • Foreclosure on a mortgage taken out before service. The Servicemembers Civil Relief Act covers a sale, foreclosure or seizure of a servicemember’s property for a breach of a mortgage obligation that began before military service and that the servicemember still owes. Such a sale is not valid if made during, or within one year after, the period of service. The exceptions are a sale made under a court order granted before it, with a return made and approved by the court, and a sale made under an agreement as the Act’s section 3918 provides. In a court action to enforce such a mortgage filed during service or within one year after it, the court may stay the proceedings or adjust the obligation, and must do so on the servicemember’s application when military service materially affects the ability to pay. 7
  • A lease the servicemember signed as a tenant. A servicemember who signs a residential lease while in military service and then receives orders for a permanent change of station, or to deploy for not less than 90 days, may end the lease by written notice with a copy of the orders. For a lease with monthly rent, the end takes effect 30 days after the next rent payment is due. 8

Military OneSource, a Department of Defense service, offers free tax help through its MilTax service, and notes that renting out a home after a move can bring special tax challenges. 9 A home loan guaranteed by the Department of Veterans Affairs has its own rules for a buyer who wants to assume it, described in the guide to selling with a mortgage or HELOC.

What happens if the house has not sold by the time you move?

The house keeps costing money each month, and the seller decides whether to keep it listed, change the price or route, or rent it out. The guide to what to do when a house will not sell covers those choices, and the guide to comparing a cash offer with a listing shows how carrying costs affect what a sale leaves.

Renting the house out changes the tax rules on the later sale. In the United States, gain allocated to periods after 2008 when the home was not a main home generally cannot be excluded, though time after the seller moved out within the 5 years before the sale is not counted against the seller. Gain equal to depreciation claimed for periods after May 6, 1997 cannot be excluded either. 2 In Canada, the rules on a change in use are covered in the guide to the principal residence exemption.

In Canada

Taking the mortgage to the next home

A seller in Canada who is buying another home can ask the lender whether the mortgage is portable. The Financial Consumer Agency of Canada says porting transfers the balance, rate and terms to the new home and avoids breaking the contract, though a penalty may still apply if the new home costs less than the amount owed. 11 12

Frequently asked questions

Does my spouse's job transfer count for the partial home sale exclusion?

It can. IRS Publication 523 says the work-related move that qualifies a US seller for a partial exclusion can be the seller's, a spouse's, a co-owner's or another resident's. Under that rule, the new work location must be at least 50 miles farther from the home than the old one, and the move must happen while the seller owns and lives in the home. Publication 523 also allows a partial exclusion when the facts and circumstances show that the main reason for the sale was work related.

Can I deduct the real estate commission as a moving expense in the United States?

No. The IRS's instructions for Form 3903 (2026) limit the moving expense deduction to members of the Armed Forces on active duty moving under military orders and members of the intelligence community moving for a change in assignment, and list the expenses of selling a home among the costs that cannot be deducted. IRS Publication 523 treats a commission as a selling expense instead, which reduces the amount realized from the sale and so the taxable gain.

Can I claim the costs of my empty house in Canada while it is for sale?

Some of them, within a limit. For the 2025 tax year, the Canada Revenue Agency allows up to $5,000 of interest, property taxes, insurance premiums and heating and utility costs on the old home while it is vacant after the move and reasonable efforts are being made to sell it. The costs cannot be claimed for any period when the old home was rented, and the move itself must qualify.

What if my old home in Canada sells the year after I move?

The Canada Revenue Agency says moving expenses paid in a year after the move are claimed against income from the new work location on the return for the year they were paid. It names a late sale of the old home as one reason this happens, and says it may ask for Form T1-M with receipts and an explanation of the delay. Expenses cannot be carried back to an earlier year.

If I rent out my house after moving, can I still exclude the gain when I sell?

Possibly, if the tests are still met on the sale date. In the United States, the seller must have owned and lived in the home for 2 of the 5 years before the sale. Gain allocated to periods after 2008 when it was not a main home is generally not excluded, but time after moving out within those 5 years does not count against the seller. Gain equal to depreciation claimed cannot be excluded.

How each selling option fits this situation

Each rating is a general one, with the reason for it. Whether an option suits a particular sale depends on facts this page cannot know.

  • An agent can show the house and handle offers while the owner is away. The sale waits for a buyer and, when the buyer borrows, for the lender.

  • A buyer with no loan removes the lender's steps, so the closing date depends on the contract. One buyer's offer has not been tested against others.

  • Selling to an iBuyer

    Possible fit

    In the United States, where an iBuyer buys. Opendoor, for example, says the seller picks a closing date from its range, and that its service charge and repair deductions come off the price.

  • The day of the sale is set in advance. The bidding sets the price, and no official source we found reports how auction prices compare with market value.

  • The owner prices, shows and negotiates alone, and must be available for showings and calls from buyers, which an owner who has moved away may not be.

  • Seller financing

    Poor fit

    The seller is paid over time, not in one sum at closing, which does not suit a seller who needs the money for the next home.

Sources

The documents this page relies on, in the order they are first used, with the date each was last checked.

  1. Publication 523 (2025), Selling Your Home. Internal Revenue Service. IRS Publication 523. Primary source. Checked .
  2. 26 U.S.C. § 121, Exclusion of gain from sale of principal residence. Office of the Law Revision Counsel, U.S. House of Representatives. 26 U.S.C. § 121. Primary source. Checked .
  3. Instructions for Form 3903 (2026), Moving Expenses. Internal Revenue Service. Primary source. Checked .
  4. Topic no. 455, Moving expenses for members of the Armed Forces and the Intelligence Community. Internal Revenue Service. Primary source. Checked .
  5. Publication 15-B (2026), Employer’s Tax Guide to Fringe Benefits. Internal Revenue Service. Primary source. Checked .
  6. Line 21900 – Moving expenses. Canada Revenue Agency. Primary source. Checked .
  7. 50 U.S.C. § 3953, Mortgages and trust deeds (Servicemembers Civil Relief Act). Office of the Law Revision Counsel, U.S. House of Representatives. 50 U.S.C. § 3953. Primary source. Checked .
  8. 50 U.S.C. § 3955, Termination of residential or motor vehicle leases (Servicemembers Civil Relief Act). Office of the Law Revision Counsel, U.S. House of Representatives. 50 U.S.C. § 3955. Primary source. Checked .
  9. Income Tax and Rental Properties When You’re in the Military. Military OneSource, U.S. Department of Defense. Primary source. Checked .
  10. Ongoing Fraud: There’s Another Scheme License Holders Should Be Aware Of. Texas Real Estate Commission. Primary source. Checked .
  11. Choosing the right mortgage for you. Financial Consumer Agency of Canada. Primary source. Checked .
  12. Reducing or avoiding prepayment penalties. Financial Consumer Agency of Canada. Primary source. Checked .
  13. Can I negotiate my Opendoor offer or the service charge?. Opendoor. Secondary source. Checked .

Please note

General information, not legal, tax or financial advice

This page describes the rules in general terms as they stood on November 16, 2026. It does not apply them to your circumstances, and the rules can change. For a decision about your own sale, speak to a lawyer licensed in the state or province where the property is, a qualified tax professional, or a licensed financial adviser. Read the full disclaimer.

Key facts

Applies to
United States and Canada
Last reviewed
November 16, 2026
Sources cited
13
Listed above, each with the date it was last checked.

Get connected with a local investor

Not sure which route fits?

Choose where the property is and what best describes your situation. On the next page you can ask to be put in touch with a local real estate investor, who may contact you about buying your home.