The First File The First File
  • News & Cases
  • Federal Law
    • Taxes
    • Federal Courts & Procedure
      • Appeals
      • Civil Procedure
      • Criminal Procedure
      • Evidence
    • Constitution & Rights
    • Consumer Protection
    • Bankruptcy
    • Agencies & Administrative Law
    • Federal Employment Law
    • Health & Federal Benefits
  • State Law
    • Criminal Law & Procedure
    • Employment & Work
      • Unemployment Insurance
      • Wages & Pay
        • Minimum Wage & Local Rules
      • Workers’ Compensation
      • Workplace Rights
    • Family & Relationships
      • Divorce
      • Guardianship
      • Probate & Estates
    • Housing & Real Estate
      • Landlord–Tenant
      • Foreclosure
      • HOAs & Condominiums
      • Deeds & Property Records
    • Personal Injury & Torts
      • Auto Accidents
      • Negligence
    • Business & Contracts
      • Business Entities
      • Contracts
    • Money, Debt & Consumer
      • Consumer Protection
      • Debt Collection & Judgments
Reading: Taxes on the Sale of a Primary Residence
Share
FIRST FILEFIRST FILE
Font ResizerAa
Search
  • Federal Law
    • Constitution & Rights
    • Consumer Protection
    • Practice Areas
  • State Law
    • Criminal Law & Procedure
    • Employment & Work
    • Family & Relationships
    • Housing & Real Estate
    • Personal Injury & Torts
    • Money, Debt & Consumer
    • Business & Contracts
  • Legal Terms Glossary
Follow US
Copyright © 2014-2025 Ruby Theme Ltd. All Rights Reserved.
Home » Blog » Taxes on the Sale of a Primary Residence
Federal LawTaxes

Taxes on the Sale of a Primary Residence

By Lucas S.
Last updated: August 9, 2026
7 Min Read
SHARE

This article is provided for educational and informational purposes only. It does not constitute legal, financial, or tax advice, and no attorney-client relationship is formed by reading it. Laws, regulations, official guidance, and related information vary by jurisdiction, change frequently, and may have changed or become outdated since the publication date. Always verify current information with authoritative sources and consult a qualified professional about your specific circumstances. The author and publisher assume no liability for actions taken based on this information.

Contents
  • Tax applies to gain, not the sale price
  • Section 121 supplies the principal-residence exclusion
  • Ownership and use have a two-of-five-year test
  • The exclusion is generally limited to once every two years
  • An early sale may receive a reduced exclusion
  • Rental, business, and nonqualified use require separate calculations
  • Reporting depends on the result and information documents
  • Planning is mainly a records exercise
  • Sources
Key Facts
  1. Federal level: Section 121 can exclude up to $250,000 of qualifying gain, or up to $500,000 on a qualifying joint return, from the sale of a principal residence.
  2. Federal level: The basic rule requires ownership and use as a principal residence for at least two years during the five-year period ending on the sale date.
  3. Federal level: A taxpayer generally cannot use the exclusion if another home sale received the exclusion during the preceding two years.
  4. Federal level: A reduced exclusion may apply when an early sale is primarily caused by employment, health, or qualifying unforeseen circumstances.
  5. Federal level: Gain attributable to depreciation allowed or allowable for business or rental use after May 6, 1997 cannot be excluded under section 121.
  6. Federal level: A loss on the sale of a home used only as a personal residence is generally not deductible.

Tax applies to gain, not the sale price

Federal tax starts with the amount realized from the sale and the home’s adjusted basis. Selling expenses reduce the amount realized, while purchase costs and qualifying capital improvements can increase basis.

Routine repairs generally do not increase basis unless they are part of a larger qualifying improvement. Accurate purchase, improvement, casualty, depreciation, and closing records can therefore change the taxable-gain calculation substantially.

Section 121 supplies the principal-residence exclusion

Section 121 generally excludes up to $250,000 of gain when the taxpayer meets its requirements. A qualifying married couple filing jointly can exclude up to $500,000 if either spouse meets the ownership test, both meet the use test, and neither is barred by the prior-sale rule.

The exclusion applies to gain rather than sale proceeds. Gain above the available exclusion remains potentially taxable, and the exclusion cannot turn a nondeductible personal loss into a deduction.

Ownership and use have a two-of-five-year test

The taxpayer generally must own and use the property as a principal residence for periods totaling at least two years during the five years ending on the sale date. The ownership and use periods need not be continuous or occur at the same time, but both tests must be satisfied within that window.

Facts such as the address used on tax returns, voter registration, licensing, mailing, employment, and family residence can help identify the principal home when a taxpayer owns or occupies more than one property. A vacation home or second home does not become a principal residence merely because it was personally used.

The exclusion is generally limited to once every two years

Section 121 generally denies the full exclusion when the taxpayer used it for another sale during the two-year period ending on the current sale date. Couples must consider each spouse’s prior use of the exclusion when testing the $500,000 joint-return limit.

A surviving spouse may qualify for a $500,000 limit on a sale within two years after the spouse’s death if the statutory joint-return conditions were satisfied immediately before death. Special rules can also count certain ownership or use by a deceased spouse or a spouse or former spouse.

An early sale may receive a reduced exclusion

A taxpayer who misses the two-year tests or prior-sale interval may still qualify for a reduced maximum exclusion when the sale is primarily because of a change in employment, health, or unforeseen circumstances. Treasury regulations contain safe harbors and a facts-and-circumstances standard for that determination.

The reduced ceiling is generally the normal $250,000 or $500,000 limit multiplied by a fraction based on the shortest qualifying ownership, use, or no-prior-exclusion period over two years. The actual excludable amount cannot exceed the qualifying gain.

Rental, business, and nonqualified use require separate calculations

Section 121 does not exclude gain attributable to depreciation allowed or allowable for business or rental use after May 6, 1997. A home-office deduction or rental period can therefore leave taxable depreciation-related gain even when the remaining gain qualifies.

Periods of nonqualified use after 2008 may also allocate part of the gain outside the exclusion, subject to statutory exceptions. Moving out and renting the home after the last date it served as the principal residence is treated differently from some earlier rental periods, so the timeline matters.

Reporting depends on the result and information documents

A seller who receives Form 1099-S generally must report the sale even if the gain is fully excludable. Reporting is also required when any gain is taxable or when the taxpayer elects not to claim the exclusion.

Form 8949 supplies transaction detail when required, and Schedule D summarizes capital gains and losses. Publication 523 includes worksheets for adjusted basis, gain, eligibility, and the amount reportable on the federal return.

Planning is mainly a records exercise

Before closing, assemble the original closing statement, invoices for capital improvements, prior casualty or energy-credit adjustments, depreciation records, and the expected selling expenses. Then map every period of ownership, principal-residence use, rental use, and absence on a single calendar.

The related guide to a 1031 exchange involving a primary residence explains why section 1031 and the home-sale exclusion require separate analysis. State income-tax treatment and property-tax programs are separate questions and may not follow the federal result.

Sources

  • 26 U.S.C. § 121, principal-residence exclusion
  • 26 C.F.R. § 1.121-3, reduced exclusion
  • 26 U.S.C. § 1222, capital-gain terms
  • IRS Topic 701, Sale of Your Home
  • IRS Publication 523, Selling Your Home
  • IRS Form 8949 overview
  • IRS Schedule D overview

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
ByLucas S.
Follow:
I am an independent writer and researcher with a deep interest in law, public affairs, and how the U.S. legal system operates in the real world. Regarding the key facts about my work, my role consists of providing plain-English legal explanations and covering various lawsuits and legal disputes. My approach involves preparing articles using the primary sources listed on each page. I am not an attorney or a lawyer and I do not provide legal advice. The primary areas where I focus my research include explaining complex legal topics in plain English, translating official legal materials into accessible explanations, and following current lawsuits and court cases. You should consult a qualified professional for advice regarding your own situation.
Previous Article Fraud Definition: What Fraud Means in U.S. Law
Next Article Civilian employee adjusting an ergonomic worktable while a workplace safety coordinator observes Federal Workers’ Compensation: FECA Benefits and Claims
Most Popular
An empty book-lined classroom with student tables, chairs, and an erased chalkboard
AES Student Loan Forgiveness: What Depends on Your Loan Type
September 14, 2026
Traveler holding a closed burgundy passport beside an airport window with an aircraft outside
Advance Parole Letter of Explanation: Guide and Sample
September 14, 2026
An adult walks down a sunlit outpatient clinic corridor toward an open care area.
California Medi-Cal Application: How the Process Works
September 14, 2026
A wheelchair user stirs a pot while preparing a meal in an accessible home kitchen.
Minnesota Disability Benefits: SSDI, SSI, and State Programs
September 14, 2026
Editorial illustration of an adult cooking an ordinary meal in a lived-in home kitchen.
Marriage Fraud: Federal Immigration Rules and Consequences
September 14, 2026

You Might Also Like

Federal case files arranged beside a map showing interstate connections in a legal office
Criminal Procedure

Federal Crime: Meaning, Jurisdiction, and Process

8 Min Read
Diverse coworkers collaborating around a conference table in a bright office
Federal Employment Law

Title VII: Workplace Discrimination, EEOC Charges, and Remedies

9 Min Read

501(c) Organizations: Types, Tax Exemption, and Federal Rules

11 Min Read
Two adult students compare two stacks of blank paperwork in a college resource room.
Consumer Protection (Federal)

Forbearance vs. Deferment: The Federal Student Loan Difference

8 Min Read

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!
The First File The First File

Our goal is to provide simple explanations of federal and state laws without the confusing jargon

Latest News

  • Federal Law
  • State Law
  • Legal Terms Glossary

Resouce

  • Business Contact Page
  • Corrections Policy
  • Editoral Policy
  • About
  • Sitemap

Legal Notice

The information on this website is for educational purposes only and does not constitute legal advice.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?