Homeownership

How Does the Capital Gains Exclusion Work When I Sell My Home?

Patrick Kevin FaganPatrick Kevin Fagan Texas Real Estate Sales Agent #454749, AXEN Realty LLC · Senior Loan Officer, NMLS ID #877741, NEXA Mortgage, LLCUpdated October 9, 2026

PATRICK'S QUICK ANSWER

The capital gains exclusion lets most sellers keep up to $250,000 of profit tax-free, or $500,000 for married couples, as long as they owned and lived in the home two of the last five years. I weigh three things with sellers: how long you have owned and occupied it, your taxable profit after improvements, and whether you have used the exclusion recently. Track your home improvements. For most owner-occupied sales, the tax bill is zero.

Single homeowners can exclude up to $250,000 of capital gains from the sale of their primary residence. Married couples filing jointly can exclude up to $500,000. To qualify, you must have owned and lived in the home as your primary residence for at least two of the last five years before the sale. Ask Patrick about the capital gains exclusion when you sell.

Eligibility Requirements

The two-in-five rule is the whole gate: own it and live in it as your primary residence for at least 24 months out of the last five years, and the months do not have to be consecutive. The money consequence is enormous, up to $250,000 of gain tax-free, or $500,000 for a married couple filing jointly, and you can claim it once every two years. That is why I tell sellers to know their occupancy timeline before they ever list.

The ownership and use test requires that you owned the home and lived in it as your primary residence for at least 24 months out of the five years before the sale. The 24 months do not have to be consecutive. You can only claim the exclusion once every two years.

Calculating Your Exclusion

The number starts with your basis: purchase price plus improvements, subtracted from the sale price less selling costs, and that gain is what the exclusion measures. A single filer with a $300,000 gain pays tax on $50,000 after the exclusion, while a married couple with the same gain pays zero. That is why I tell every seller to keep receipts for improvements, because every documented dollar of kitchen or roof work raises the basis and lowers the tax.

Calculate your gain by subtracting your adjusted cost basis (purchase price plus improvements) from the sale price (minus selling costs). If your gain is $300,000 as a single filer, you pay capital gains tax on $50,000. Married filers with a $300,000 gain pay zero tax.

Exceptions and Special Circumstances

Life does not always give you two of five years, and the IRS knows it: partial exclusions exist for employment changes, health reasons, and unforeseen circumstances, and certain extended-service situations can suspend the clock while you are away. The practical rule is to keep your paperwork if your situation shifts, because a partial exclusion is still a tax bill smaller than none.

Partial exclusions are available if you sell due to a change in employment, health reasons, or unforeseen circumstances like divorce, multiple births, or death. Members of the military, Foreign Service, and intelligence community may qualify for extended suspension periods during qualifying service.

Ask Patrick about capital gains

Get a straight answer on the exclusion, tracking improvements, and your tax bill when selling.

By submitting, you agree Patrick may contact you by phone, email, or text about your question. Consent is not a condition of purchasing any product or service.

Patrick's Take

"The capital gains exclusion is one of the most valuable tax benefits of homeownership. Most of my clients sell tax-free because their gain falls under the $250,000 or $500,000 limit. Keep good records of improvements to maximize your basis."
PF
Patrick Kevin Fagan

Homeownership Tips?

Patrick helps homeowners protect their investment.

Answered by Patrick Kevin Fagan

Texas Real Estate Sales Agent #454749, AXEN Realty LLC · Senior Loan Officer, NMLS ID #877741, NEXA Mortgage, LLC

Call or text: 210-317-6514

Sources

  1. https://www.irs.gov/taxtopics/tc701
  2. https://comptroller.texas.gov/taxes/property-tax/
  3. https://www.hud.gov/helping-americans/loans

Researched: October 2, 2026

Patrick Kevin Fagan is a Texas licensed real estate sales agent (TREC #454749) with AXEN Realty LLC and a mortgage loan officer (NMLS #877741) with NEXA Lending (NMLS #1660690). Equal Housing Opportunity.