Capital Gains Tax on Home Sale is one of the biggest worries when you’re thinking about selling the home you live in.
Even if you make hundreds of thousands (or millions) in profit, you may be able to pay zero in federal capital gains tax.
The secret is the Primary Residence Exclusion (Section 121). Single filers can exclude up to $250,000, and married couples filing jointly can exclude up to $500,000 of the gain.

※ Loaning.ai provides this information for general educational purposes only. This is not tax, legal, or financial advice. Please consult a qualified tax professional or CPA before making any decisions.
.
Capital Gains Tax on Home Sale: What Is the Primary Residence Exclusion?
Capital Gains Tax on Home Sale is one of the most powerful IRS rules available to homeowners. It lets you exclude a large portion of the profit (capital gain) when you sell your main home. It is one of the biggest tax benefits in U.S. real estate law.
Exclusion Limits
- Single: up to $250,000
- Married filing jointly: up to $500,000
To qualify, you generally need to meet the Ownership & Use Test: You (or your spouse) must have owned the home and used it as your primary residence for at least 2 of the 5 years before the sale.
.
Capital Gains Tax on Home Sale: Ownership & Use Test for Married Couples
- Ownership Test: The requirement is met if at least one spouse has owned the home for at least 2 years.
- Use Test (Residency): Both spouses must have lived in the home as their main residence for at least 2 out of the last 5 years.
If only one spouse meets the use test, that spouse can still claim the $250,000 exclusion individually.
.
Capital Gains Tax on Home Sale: The Flexible 2-out-of-5 Rule
You don’t have to live in the home for 24 consecutive months. The 2 years can be any combination of time within the 5 years before the sale (730 days total).
Example: You live in the house for 1 year, rent it out for 2 years while on assignment, then move back for 1 more year — you still qualify for the full exclusion.
.
Capital Gains Tax on Home Sale: Partial Exclusion for Unforeseen Circumstances
If you can’t meet the full 2-year requirement due to a qualifying event, you may still get a pro-rated exclusion based on the time you actually lived there.
- Work-Related Move: You may qualify for a partial exclusion if your new place of work is at least 50 miles farther from your home than your old workplace was.
- Health-Related Move: This includes moving to obtain, provide, or facilitate diagnosis, cure, mitigation, or treatment of a disease or illness for yourself or a family member.
.
Capital Gains Tax on Home Sale: Proof of Residency (Checklist)
The IRS looks closely at whether you truly lived in the home. Keep these records for at least 5 years:
Pro tip: Take photos of repairs and improvements (roof, kitchen, etc.). These increase your “adjusted basis” and reduce your taxable gain. Keep receipts and before/after pictures.
(※ Source : IRS Publication 523 (2025) 및 실제 IRS 감사 기준 (facts and circumstances test))
.
Capital Gains Tax on Home Sale: How to Report the Sale on Your Tax Return
You don’t need a separate application. Simply report the sale correctly on your annual tax return.
Sale price – selling costs – adjusted basis (purchase price + improvements).
Report the sale details. Use code “EH” if claiming the exclusion.
Transfer totals to your main Form 1040.
Home office depreciation recapture (Form 4797) if applicable.
Submit with your tax return (or extension).
(※ Source 1: IRS Publication 523 (2025) – Selling Your Home)
(※ Source 2: Form 8949 Instructions (2025) and Schedule D Instructions)
.
Capital Gains Tax on Home Sale: Maximize Your Benefits with Loaning.ai
Capital Gains Tax on Home Sale is one of the most important factors when selling your primary residence.
Selling a home with hundreds of thousands (or millions) at stake is a big decision. Don’t leave money on the table because of complicated rules.

Loaning.ai provides general information to help you understand your options. 😎
※ Loaning.ai provides this information for general educational purposes only. This is not tax, legal, or financial advice. Please consult a qualified tax professional or CPA before making any decisions.
.



