October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
The Finance Base
The Money Desk · Blog
Re:

Capital Gains Tax on the Sale of Your Primary Residence: Federal Rules

The federal home-sale exclusion can shelter qualifying gain, but eligibility depends on ownership, residence, prior sales, and how you used the property.
From TheFinanceBase Team4 min to read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You may be able to exclude some or all of the gain from selling your main home from U.S. federal income tax. The exclusion applies to gain—not the home’s sale price—and its size depends on your filing status, ownership and residence history, prior home sales, and how you used the property.

This guide summarizes the IRS’s Publication 523 (2025), Selling Your Home, and its real-estate tax tips. Tax-year instructions and individual facts matter; state and local rules depend on where the property is located.

As an Amazon Associate I earn from qualifying purchases.

How the home-sale exclusion works

Start with the gain, not the gross proceeds from the sale. The IRS’s Publication 523 worksheets help determine the amount realized and the home’s adjusted basis; the difference is the gain to evaluate. If you qualify, you may exclude gain up to the applicable limit. Any gain that remains after the allowable exclusion may be taxable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The limits are ceilings, not automatic exemptions. A seller’s eligibility and the amount of gain—not simply the sale price—determine whether federal tax is due.

What are the federal exclusion limits?

The IRS’s Publication 523 (2025) gives these general maximum exclusions. Each is subject to the applicable eligibility tests and the facts of the sale.

Filing situation General maximum gain exclusion Key qualification
Eligible individual $250,000 (IRS Publication 523, 2025) Must meet the applicable ownership, residence, and prior-sale rules.
Many married couples filing jointly Up to $500,000 (IRS Publication 523, 2025) Both spouses generally must meet the residence and prior-sale tests; at least one must meet the ownership test.

Special rules can apply, including for some surviving spouses. Do not assume that filing jointly by itself qualifies a couple for the higher ceiling.

How long must you own and live in the home?

For the full exclusion, the general IRS tests look at the five-year period ending on the sale date. You generally must have owned the home for at least two years and used it as your main home for at least two years during that period. The ownership and residence periods do not have to be continuous.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You generally also must not have used the home-sale exclusion for another home during the two-year period ending on the current sale date. If you have more than one home, the IRS considers the facts to determine which was your main home, including where you spent the most time and the addresses used on tax returns, voter registration, and driver’s licenses.

Rank #3
J. J. Keller 2024 Emergency Response Guidebook (ERG), Spiral
  • The 2024 ERG guide helps satisfy 49 CFR 172.602 DOT requirement. This requirement states that hazmat shipments be accompanied by emergency response info.
  • Pocketbook aids in emergency preparedness, planning, and training with ERGs numerically indexed and color-coded to help emergency responders find vital information fast.
  • 2024 Updates: The Pipeline and Hazardous Materials Safety Administration (PHMSA) released a comprehensive summary of updates. Most significantly a QR code on the back cover that provides access to critical incident reporting information.
  • Other changes for 2024 have been made to continue to provide the most accurate emergency response information to help all front-line persons and all first responders stay safe during transportation emergencies.
  • Specifications: 4" x 5 1/2" Pocketbook Size, English, Spiralbound. Copyright 2024.

How to work out whether any gain is taxable

  1. Establish the sale date and main home. Use the IRS rules to identify the relevant sale date and assess which property was your principal residence if you had more than one home.
  2. Calculate the gain. Use Publication 523’s worksheets and your records to determine the amount realized and adjusted basis. The sale price alone is not the gain.
  3. Test your eligibility. Check the ownership and residence requirements, whether you used the exclusion on another sale within the look-back period, and whether any disqualification or special rule applies.
  4. Apply the exclusion that is available. Compare your gain with the limit you qualify for, accounting for partial eligibility and any rental, business, or depreciation issues.
  5. Check reporting requirements. Follow Publication 523’s reporting guidance for your transaction. Whether you receive Form 1099-S and the details of the sale can matter.

What if you do not meet the full tests?

You may qualify for a reduced, or partial, exclusion in certain circumstances even if you do not meet the full requirements. The IRS describes qualifying work-related, health-related, and unforeseeable events. Whether an event qualifies depends on the circumstances and the IRS criteria; a move or change in plans does not automatically establish eligibility. Use Publication 523 to evaluate the facts.

What if the home was rented or used for business?

Rental or business use can affect the calculation. The IRS may require an allocation between personal and business or rental use, and periods when the home was not your principal residence can affect how much gain is excludable.

Depreciation

Gain attributable to depreciation claimed or allowable for business or rental use generally cannot be excluded under the home-sale exclusion. Keep the depreciation records and include them when working through the IRS worksheets.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Nonqualified use and other special cases

Certain periods after 2008 when the property was not used as your principal residence can affect the excludable gain, subject to exceptions in the IRS rules. Publication 523 also addresses situations such as recent like-kind exchanges, expatriate tax, qualified official extended duty, vacant adjacent land, and separate business or rental areas.

For a sale involving rental or business use, depreciation, unusual ownership, or possible partial eligibility, work through the relevant Publication 523 rules and consider consulting a qualified tax professional for a home sale.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can you deduct a loss on the sale?

No. The IRS says, “You cannot deduct a loss from the sale of your main home.” That rule concerns a personal main home; do not treat a personal-home loss as a deductible tax loss.

Do state or local taxes follow the federal rule?

This guide covers U.S. federal treatment only. State and local tax treatment depends on the property’s location and is not established by the federal IRS guidance summarized here. Check the current rules for the state and locality where the home is located.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Which IRS guidance should you use?

Use the IRS’s Publication 523 (2025), Selling Your Home for the worksheets, eligibility rules, exceptions, and reporting guidance. The IRS forms and publications index listed the 2025 edition on February 27, 2026. The IRS’s “Sale of residence – Real estate tax tips” page also summarizes the general exclusion and personal-home loss rule. The applicable instructions and your own records should guide a specific return.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More post from the Money Desk

  1. The Money DeskBlogTheFinanceBase09 OCT 267 minMortgage Escrow FAQs: Taxes, Insurance, Shortages, and Refunds
  2. The Money DeskBlogTheFinanceBase09 OCT 265 minHow Mortgage Escrow Accounts Work and What Homeowners Pay For
  3. The Money DeskBlogTheFinanceBase09 OCT 265 minHow to Read a Stock Chart, Volume and Market-Cap Data
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.