Military Capital Gains Exclusion When Selling Your Home

By VeteranPCS

When you sell a home for more than you paid, the profit is called a capital gain, and it can be taxed. The military capital gains exclusion is a rule that lets active-duty families avoid tax on far more of that gain than civilians can. If a PCS (Permanent Change of Station, your next set of military move orders) ever forced you to leave a home you owned, this could save you thousands. Here is how it works in plain terms.

The Basic Home-Sale Exclusion

Most homeowners already get a generous tax break when they sell their main home. Under Section 121 of the tax code, you can exclude up to $250,000 of gain if you file taxes as a single person, or up to $500,000 if you are married and file jointly, according to IRS Publication 523. Exclude means that gain is not taxed at all.

To qualify, you normally must have owned the home and lived in it as your main home for at least two of the five years before you sell. That two-of-five-years rule is where military life creates a problem, and where the military rule comes to the rescue.

Infographic showing the Section 121 home-sale exclusion of up to 250,000 dollars for single filers and up to 500,000 dollars for married couples filing jointly The home-sale exclusion shields up to these amounts of gain from tax. Source: IRS Publication 523.

Why the Standard Rule Hurts Military Families

Imagine you buy a home, live in it for a year, then receive orders to a new base across the country. You rent the home out for several years while stationed elsewhere. By the time you sell, you may not have lived there for two of the last five years, so a civilian in your shoes could lose the exclusion entirely and owe tax on the gain.

That is unfair to families who left only because the military sent them. Congress agreed, which is why there is a special suspension for service members.

The Military Suspension: Up to 10 Extra Years

Here is the key benefit. If you are on qualified official extended duty, you can suspend, or pause, the five-year test period for up to 10 years, according to IRS Publication 523 and the IRS Armed Forces' Tax Guide. In practice, that stretches your window from 5 years to as many as 15 years. So you can still claim the exclusion as long as you lived in the home for two of the last 15 years before the sale.

You count as being on qualified official extended duty when you are ordered to active duty either indefinitely or for more than 90 days, and you are either stationed at least 50 miles from that home or living in government quarters under orders, per the IRS.

Timeline graphic showing the standard five-year ownership test extended up to fifteen years for service members on qualified official extended duty Active-duty orders can stretch the five-year test to as long as 15 years. Source: IRS Publication 523.

A Simple Example

Say a married couple buys a home, lives in it for two full years, then PCSes and rents the home out for the next eight years before selling. A civilian landlord would likely owe tax on the gain, because they did not live there for two of the last five years.

The military couple can suspend the clock during those eight years of extended duty. Because they lived in the home for two years inside the longer 15-year window, they can still exclude up to $500,000 of gain. That is the difference between a large tax bill and none at all.

One caution: renting the home may have created depreciation, and the part of your gain tied to depreciation generally cannot be excluded and may be taxed. A tax professional can sort that out. Military OneSource explains the basics of taxes and military rental properties.

Thinking through whether to sell or hold a home at your next PCS? Connect with a VeteranPCS agent who understands military timing.

user 6 image
user 7 image
User 1 image
user 4 image
User 3 image

Buying Or Selling

Find An Agent

VA Loan Expert

Find A Lender

How This Fits Your PCS Decisions

This rule quietly shapes some of the biggest choices military families make about real estate.

It makes buying earlier in a career less risky, because the exclusion protects your gain even if orders move you before you can sell. Our complete guide to buying your first home with a VA loan pairs well with this benefit.

It also gives you flexibility to rent a home out for years and still sell tax-efficiently later, which is part of why some families build wealth across multiple duty stations. If a move has your housing plan in flux, our guide to buying or selling during a PCS lays out a workable timeline, and our explainer on whether you can use the VA loan more than once shows how to finance the next home.

Frequently Asked Questions

How much capital gain can I exclude when I sell my home?

Up to $250,000 if you file as single, or up to $500,000 if you are married filing jointly, as long as you meet the ownership and use tests.

How long can military orders pause the home-sale clock?

Up to 10 years. That can extend the normal five-year test period to as long as 15 years while you are on qualified official extended duty.

What counts as qualified official extended duty?

Being ordered to active duty indefinitely or for more than 90 days, while stationed at least 50 miles from the home or living in government quarters under orders.

Do I still owe tax on depreciation if I rented the home?

Generally yes. The portion of gain tied to depreciation you claimed while renting usually cannot be excluded. Ask a tax professional how it applies to you.

The Bottom Line

The military capital gains exclusion is one of the most valuable and least understood tax benefits in uniform. It can pause the home-sale clock for up to 10 years, letting you exclude a large gain even when orders kept you away for years. Before you sell or rent a home at your next move, connect with a VeteranPCS agent or lender and a tax professional to plan the timing. Know a family weighing what to do with their home? Share this guide with your military network.

This content is for informational purposes only and is not tax or legal advice. Consult a qualified tax professional about your specific situation.

PCS Frequently Asked Questions

Am I disqualified if I have a bankruptcy or foreclosure on record?

How do I know how much I’m qualified for with a VA Loan?

How Many Times Can I Use My VA Home Loan Benefit?

Are There Closing Costs Associated with a VA Loan?

Can I Have Two VA Loans?

How do I apply for a VA guaranteed loan?

    Keep In Touch

    No spam mail, no fees. VeteranPCS is free to use.

    Fields marked with an asterisk (*) are required.

    Find an Agent