Military Home Sale Tax
Do military members pay capital gains tax when they sell a home?
When you sell your main home, federal law lets you keep up to $250,000 of profit tax free, or up to $500,000 for some married couples filing jointly. For the full amount, you must have owned it and lived in it 2 of the 5 years before the sale, and not used this break in the 2 years before. If active duty orders of more than 90 days or with no end date, such as a permanent change of station (PCS), put you or your spouse at a duty station at least 50 miles from the home, or in government quarters under government orders, you can pause those 5 years for up to 10 years.Orders can pause the clock. They do not raise the limit.
This page shows the basic rule, the pause for service members, what happens if you sell early or rent the home out first, and what to report to the Internal Revenue Service (IRS).
Start Here
The home sale tax break, for everyone
The IRS calls it the exclusion of gain. It applies only to your main home, and you can have only one main home at a time.
- Own it 2 of 5 years. You owned the home for at least 24 months of the 5 years before the sale.
- Live in it 2 of 5 years. You lived in it as your main home for at least 24 months of those 5 years. The months do not have to be in a row.
- Once every 2 years. You did not use the tax break on another home sale in the 2 years before this one.
- For $500,000 on a joint return. One of you meets the ownership test, both of you meet the living test, and neither of you used the tax break on another home in the last 2 years. If only one of you meets the living test, that spouse may still get up to $250,000.
Your profit, or gain, is the sale price, less your selling costs, less your adjusted basis. If you bought the home, your adjusted basis starts with what you paid for it and goes up with the improvements you added. It goes down for some things, such as depreciation if you rented it out. If the sale price, less your selling costs, is below your adjusted basis, you cannot deduct the loss, and you owe no tax on the money from the sale.
Sources: IRS Publication 523, Selling Your Home. 26 U.S.C. 121(a) and (b). Retrieved 17 November 2026.
The Military Rule
The pause for service members
Federal law lets you choose to pause the 5 year window while you or your spouse are on qualified official extended duty. Your 2 years of living there can then count even if orders kept you away longer.
Who is on that duty
- You or your spouse is a member of the uniformed services, which include the armed forces.
- That person is called or ordered to active duty for more than 90 days, or with no end date.
- That person serves at a duty station at least 50 miles from the home, or lives in government quarters under government orders.
The same pause covers the Foreign Service, the intelligence community and the Peace Corps, for Peace Corps service outside the United States. This page covers the uniformed services.
How the pause works
- Up to 10 years. The pause cannot stretch the 5 years by more than 10. With the pause, the window can reach back as far as 15 years.
- Only time on that duty. The pause covers the time you or your spouse are on qualified official extended duty, not other time away.
- One home at a time. You cannot pause the window for two homes at once. You can undo your choice at any time.
- You still need the 2 years. The pause does not count time away as time living there. It can keep your earlier 2 years inside the window.
- Time away on that duty does not cut your tax free share. Up to 10 years of it is not counted as time the home was not your main home.
- How you choose it. You file your tax return for the year of the sale and leave the tax free profit off it.
Sources: 26 U.S.C. 121(b)(5) and (d)(9), Office of the Law Revision Counsel. 26 CFR 1.121-5. IRS Publication 523. IRS Publication 3, Armed Forces' Tax Guide. Retrieved 17 November 2026.
Your Situation
Four ways a PCS sale can go
Find the one that fits. Each starts from the same tests and changes one thing.
You lived there 2 years and sell soon after you move
If your 2 years of owning and living there still fall inside the 5 years before the sale, the basic rule covers you. You do not need the pause.
You also must not have used the tax break on another home in the last 2 years.
The basic rule covers itYou lived there 2 years, but orders kept you away longer
If the time away was qualified official extended duty, you can pause the 5 years for that time, up to 10 years. Your 2 years of living there can then fall back inside the window.
The IRS's own example: a soldier lived in a home for 3½ years, spent the next 6 on that duty, then sold. Pausing those 6 years meets both tests.
Pause up to 10 yearsYou lived there less than 2 years when orders came
You may still keep part of the profit tax free. A PCS counts as a change in where you work. The IRS counts the sale as made for that reason if your new duty station is at least 50 miles farther from the home than your old one, and the move came while you owned and lived in the home.
Moved out before the orders came? That 50 mile test does not apply, but you can still qualify if the move to your new duty station was the main reason you sold.
Part of the limit can be tax freeYou rented it out while you were away
The same tests apply, and so does the pause for time on that duty. A rental can take a yearly tax deduction for wear on the home, called depreciation. The part of your profit equal to the depreciation from rental years after May 6, 1997, is not tax free. The IRS counts the depreciation you were allowed to take, even if you did not take it.
Time it was a rental after you last lived there, inside the 5 years before the sale, does not cut your tax free share. Time on qualified official extended duty does not either, up to 10 years. Other time after 2008 when it was not your main home, such as rental time before you moved in, can.
Same tests, plus a depreciation ruleSources: IRS Publication 523. IRS Publication 3. 26 CFR 1.121-3(b) and (c). 26 U.S.C. 121(b)(5), (c), (d)(6) and (d)(9). IRS Publication 946, on depreciation. Retrieved 17 November 2026.
Selling Early
If you sell before the 2 years
The IRS calls this a partial exclusion. It applies only if the main reason you sold was a move for work, such as a PCS, a health reason or an event nobody could plan for. Your tax free limit then shrinks to your share of the 2 years.
- The share. The IRS takes the shortest of three times: how long you lived there in the 5 years before the sale, how long you owned it, and how long since you last used the tax break. It divides that by 24 months, and your limit is that share of the full amount.
- An example of the math. 12 of the 24 months gives you half the limit: up to $125,000 of profit tax free on a single return.
- Married, filing jointly. The IRS works out each spouse's share and adds the two.
- Whose move counts. The 50 mile test can be met by you, your spouse, a co-owner or anyone else whose residence the home was.
- The health reasons and events that count. Publication 523 lists them.
Sources: 26 U.S.C. 121(c). 26 CFR 1.121-3. IRS Publication 523, Worksheet 1. Retrieved 17 November 2026.
At Tax Time
What to report, and what else to check
The IRS says you do not need to report the sale if all your profit is tax free and you did not get a Form 1099-S, the form that reports a real estate sale.
- You got a Form 1099-S. Report the sale on Form 8949, even if you owe no tax.
- Profit that is not tax free. That includes profit above your limit, the part equal to depreciation after May 6, 1997, if you rented it out, and profit tied to some time after 2008 when the home was not your main home, such as rental time before you moved in. Report it on Form 8949 and Schedule D. The depreciation part goes on Form 4797. You may need to raise your withholding or make estimated tax payments.
- Using the pause. Your return for the year of the sale is how you choose it.
- Keep your records. Keep the records that show your adjusted basis until 3 years after the due date of the return for the year you sell.
- A federally subsidized loan. If, in the 9 years before the sale, your loan came from tax-exempt mortgage bonds or came with a mortgage credit certificate, you may have to pay back some or all of that benefit, even if your profit is tax free. You must file IRS Form 8828 with your return, even if you sold at a loss.
- Your VA home loan benefit. Selling the home and paying the old VA loan in full can bring back the part of your benefit it used. That is a VA question, not a tax one: see our guide to using a VA loan again. If you rent the home out, our guide to VA loan occupancy rules covers what VA asks.
This page is not legal or tax advice. The IRS decides how your return is treated. Ask a tax professional about your own dates and orders.
Sources: IRS Publication 523, Reporting Your Home Sale. IRS Topic 701, Sale of your home. IRS, About Form 8828. Retrieved 17 November 2026.
A page can explain what the home sale tax rules say.An agent who knows how military benefits work can help when orders mean buying or selling.
Mission Ready Operators know how military life, rank and benefits work, and how orders and moving dates work. Questions about your taxes belong with the IRS or a tax professional.
Last reviewed November 2026 · Maintained by My Military HQ
Common Questions
Questions people ask about military home sale taxes
Do military members pay capital gains tax when they sell a home?
Not on profit the federal home sale tax break covers. Under IRS rules, if you owned the home and lived in it as your main home for 2 of the 5 years before the sale, and did not use the break on another home in the 2 years before, you can generally keep up to $250,000 of profit tax free, or up to $500,000 for some married couples filing jointly. Profit above the limit is taxed, and so is the part equal to any depreciation after May 6, 1997, if you rented it out. Service members on qualified official extended duty (the IRS term for active duty orders of more than 90 days or with no end date, at a duty station at least 50 miles from the home, or in government quarters under government orders) can pause the 5 years, up to 10 years.
Is there a military capital gains exemption?
Not a separate one. Federal law gives service members the same home sale tax break as everyone else, with the same dollar limits. It adds two things while you or your spouse are on qualified official extended duty (the IRS term for active duty orders of more than 90 days or with no end date, at a duty station at least 50 miles from the home, or in government quarters under government orders): a choice to pause the 5 year window for up to 10 years, and, if you rented the home out, up to 10 years of that time does not cut your tax free share.
What is qualified official extended duty?
The IRS says you are on it when, as a member of the uniformed services, you are called or ordered to active duty for more than 90 days, or with no end date, and you serve at a duty station at least 50 miles from the home, or live in government quarters under government orders.
What if I sell before living there 2 years because of a PCS?
IRS rules may still let you keep part of the profit tax free. A PCS counts as a change in where you work. The IRS counts the sale as made for that reason if your new duty station is at least 50 miles farther from the home than your old one, and the move came while you owned and lived in the home. The tax free limit shrinks to your share of the 2 years.
Can I still sell tax free if I rent out my house after a PCS?
Possibly. Under IRS rules you still need 2 years of living there inside the 5 years before the sale, and time on qualified official extended duty (the IRS term for active duty orders of more than 90 days or with no end date, at a duty station at least 50 miles from the home, or in government quarters under government orders) can pause those 5 years, up to 10 years. But the part of your profit equal to the depreciation (a yearly tax deduction for wear on a rental) from the rental years after May 6, 1997, is not tax free. The IRS counts the depreciation you were allowed to take, even if you did not take it.
Does my spouse's military service count?
Yes. Federal law lets you pause the 5 year window while you or your spouse are on qualified official extended duty (the IRS term for active duty orders of more than 90 days or with no end date, at a duty station at least 50 miles from the home, or in government quarters under government orders). For the $500,000 limit on a joint return, IRS rules say both spouses must meet the 2 year living test.
Do I have to report the sale if it is tax free?
The IRS says you do not need to report the sale if all your profit is tax free and you did not get a Form 1099-S, the form that reports a real estate sale. If you got one, you report the sale on Form 8949 even if you owe nothing. Profit that is not tax free, such as profit above your limit or the depreciation part from a rental after May 6, 1997, must be reported.
Do disabled veterans pay capital gains tax on a home sale?
The federal home sale tax break has no separate rule for veterans or for a VA disability rating. Veterans use the same tests. One IRS rule helps anyone who becomes physically or mentally unable to care for themselves: if you owned and lived in the home at least 12 months of the 5 years, time you still owned the home and lived in a care facility licensed for your condition, such as a nursing home, can count as time living there.
Does a VA loan change capital gains tax?
No. The IRS tests for the home sale tax break are about owning and living in the home, not the loan. Selling can change your VA home loan benefit, which is a separate VA question.
Can I deduct a loss when I sell my home?
No. The IRS says you cannot deduct a loss on the sale of your main home. You also owe no tax on the money from the sale.
Sources
Where every fact came from
Every tax rule on this page comes from the IRS or federal law. Where they do not say something, we left it out.
- The tax break, the 2 of 5 years, the joint limit, the pause, the partial exclusion, rentals and depreciation, losses, reporting, the depreciation forms, records and paying back a mortgage subsidy. IRS Publication 523 (2025), Selling Your Home. Retrieved 17 November 2026.
- The pause for the armed forces, a PCS before 2 years, and time on duty that does not cut the tax free share. IRS Publication 3 (2025), Armed Forces' Tax Guide. Retrieved 17 November 2026.
- The tests and reporting a Form 1099-S. IRS Topic 701, Sale of your home, last reviewed November 9, 2026. Retrieved 17 November 2026.
- The law itself: the limits, the joint rules, the partial exclusion, rental time, depreciation, care facilities and the pause. 26 U.S.C. 121, Office of the Law Revision Counsel, current through Public Law 119-142. Retrieved 17 November 2026.
- The 50 mile test, moving out first, and how you choose the pause. 26 CFR 1.121-3 and 26 CFR 1.121-5, Code of Federal Regulations. Retrieved 17 November 2026.
- What depreciation is. IRS Publication 946 (2025), How To Depreciate Property. Retrieved 17 November 2026.
- Paying back a mortgage subsidy. IRS, About Form 8828, Recapture of Federal Mortgage Subsidy. Retrieved 17 November 2026.
- Your VA home loan benefit and renting the home out. Our guide to using a VA loan again and our guide to VA loan occupancy rules, and the VA sources they link.
What we left out on purpose. We give no tax rates, because they depend on your whole return, and one dollar example, worked from the IRS worksheet. We cover only federal income tax: each state sets its own rule on a home sale. We do not cover the tax on rent you collect, a home you got in a trade (a 1031 exchange), divorce, a spouse's death, or a home outside the United States. The IRS's 2026 edition of Publication 523 is not out yet. The law behind it was last changed in 2017.