Many sellers who qualify can exclude some or all of the gain on a primary residence from federal tax. The result comes down to ownership, use, basis, and how the sale is reported. Understanding the tax implications of selling your home before you list helps you plan with fewer surprises. Pasquesi Sheppard LLC is a Lake Forest CPA firm providing tax, audit, advisory, and family office services. If you want to talk through your situation, contact us today.
This article is general education, not personalized tax advice, and reading it does not create a client relationship with Pasquesi Sheppard. It reflects federal rules as of publication. Your result depends on facts this article cannot address, so confirm your circumstances with us or another qualified CPA before you list or close.
Tax Implications of Selling Your Home: What Sellers Should Know
Tax is based on the gain, not the sale price or the cash you receive at closing. Paying off a mortgage affects your cash proceeds but generally does not reduce the taxable gain.
Many sellers owe no federal tax because they qualify for the primary residence exclusion. The result depends on how you used the home, how long you owned it, your adjusted basis, selling costs, filing status, and whether any gain falls outside the exclusion. A loss on a home held for personal use generally is not deductible. The rules below are federal; state treatment can differ.
For many of our clients in the North Shore area, high property values and long ownership periods make gains above the exclusion more likely.
How to Calculate Your Gain on a Home Sale
Capital gains tax on a home sale starts with a simple formula. The sale price minus selling expenses equals the amount realized, which is the net figure from the sale. Subtract your adjusted basis from that amount and you have your gain or loss. Adjusted basis is your cost in the home, adjusted for improvements and other items. After that, you determine whether any gain qualifies for exclusion.
Sale price generally includes money received, the fair market value of other property or services received, debt the buyer assumes, and real estate taxes the buyer pays for you. Personal property sold with the home and employer job-transfer reimbursements are not included. Selling expenses include commissions, advertising, legal fees, certain mortgage points or loan charges, and other sale costs. Certain seller-paid transfer taxes and fees may also qualify.
Worked Example: Sale Price, Selling Costs, and Adjusted Basis
Illustration only, not a real client. These hypothetical numbers are round for simplicity.
- Sale price: $1,400,000
- Selling costs (commissions and fees): $80,000
- Amount realized: $1,400,000 − $80,000 = $1,320,000
- Purchase price: $500,000
- Closing costs at purchase: $10,000
- Improvements still part of the home: $190,000
- Adjusted basis: $500,000 + $10,000 + $190,000 = $700,000
- Gain: $1,320,000 − $700,000 = $620,000
If a married couple filing jointly qualified for the full $500,000 exclusion, $120,000 of gain could remain taxable. A single eligible seller with the same numbers, limited to $250,000, could have $370,000 remaining. Actual results depend on the specific facts.
The Section 121 Home Sale Tax Exclusion
The Section 121 exclusion can exclude up to $250,000 of qualifying gain, or $500,000 for eligible married couples filing jointly. It applies to gain, not gross proceeds. Buying another home is not required, and reinvesting proceeds does not by itself defer tax on a personal residence sale.
Primary Residences and the Ownership and Use Tests
The exclusion applies only to a principal residence, and a person has only one main home at a time. With multiple homes, the facts and circumstances decide, and time spent in each home is the most important factor.
To qualify, you generally must meet these tests:
- You owned the home at least 24 months during the five years ending on the sale date.
- You lived in it as a residence at least 24 months during that same five-year period.
- You did not exclude gain on another home sale in the two years before this sale.
The ownership and use periods need not be the same 24 months. For the full $500,000 on a joint return, both spouses must meet the use and look-back requirements, and one or both must meet the ownership requirement. A surviving spouse may qualify for $500,000 if the sale occurs within two years of the spouse's death, the survivor has not remarried, neither spouse used the exclusion in the prior two years, and the deceased spouse met the ownership and use tests before death.
Partial Exclusions for Job Changes, Health, and Unforeseen Events
If you miss the tests, a partial exclusion may be available when the main reason for the sale was a work-related move, a health issue, or an unforeseeable event. Events can involve you, a spouse, a co-owner, or another person using the home as a residence. A death or a divorce would count, as would a change in employment.
In general terms, the worksheet takes the shortest applicable period, divides it by 730 days (24 months), and multiplies by $250,000. On a joint return, the calculation is repeated for each spouse and the amounts are added.
If you are approaching a deadline or think a partial exclusion could apply, we can help you sort through it. Contact us before you sign a purchase agreement.
Adjusted Basis of a Home: Improvements vs. Repairs
Adjusted basis generally starts with the purchase price plus eligible settlement costs, plus improvements still part of the home at sale, qualifying damage-repair costs, and special assessments for local improvements. It is then reduced by items such as depreciation taken or allowed, certain casualty-loss deductions and insurance payments, and certain energy credits or subsidies. Don't assume your original purchase price stays your basis.
Improvements (may add to basis) | Repairs (generally do not) |
Additions such as a bedroom, bathroom, deck, garage, porch, or patio | Painting |
New roof or new siding | Fixing leaks |
Heating and air conditioning systems, wiring, plumbing | Filling holes or cracks |
Kitchen modernization and built-in appliances | Replacing broken hardware |
Landscaping, driveway, fence, pool | Maintenance that keeps the home in good condition |
Records Homeowners Should Keep: A Checklist
Good records matter most for long-held homes. As good practice for documenting basis and the sale, consider keeping:
- Closing statements from the purchase and the sale
- Improvement invoices and permits
- Records of selling expenses
- Depreciation schedules, if any part of the home was rented or used for business
- Records of casualty losses or energy credits
- Any Form 1099-S you receive
Tax Forms and Home Sale Reporting Requirements
A tax-free sale is not always a report-free sale. Home sale reporting requirements depend on whether you receive Form 1099-S and whether any gain cannot be excluded.
When Form 1099-S, Form 8949, and Schedule D May Apply
A sale must be reported if you receive Form 1099-S or cannot exclude all the gain. Form 1099-S reports a sale or exchange of real estate. Receiving one does not mean any amount is taxable, so reconcile it with your closing documents and gain calculation.
If you receive Form 1099-S, report the sale on Form 8949 even with no taxable gain. Form 8949 reconciles the amounts, and its subtotals carry to Schedule D (Form 1040). Gain that cannot be excluded is reported on both. Your records should show the amount realized, adjusted basis, selling expenses, and any exclusion claimed. A CPA can help confirm the inputs are right.
Situations That Create Additional Tax Exposure
Not every property sale looks like a simple primary residence sale. This comparison shows where issues tend to arise.
Property type | Exclusion availability | Basis considerations | Key forms or rules | Issues to review with a CPA |
Primary residence | May apply, up to $250,000 or $500,000 | Purchase price, improvements, adjustments | Section 121, Form 8949 | Ownership and use tests |
Second home | Not available for a non-main home | Standard basis rules | Nonqualified use | Moving in before sale |
Rental or business use | Not for depreciation gain | Reduced by depreciation | Depreciation after May 6, 1997 | Allocation, recapture |
Inherited property | Depends on use by the heir | Generally value at date of death | Form 706 value, if filed | Documentation |
Divorce transfers | Special ownership and use rules | Different basis rules | Publication 523 guidance | Timing, instruments |
If your family manages several properties, our family office accounting services may help keep the records organized. We can also review your plans through our tax planning & compliance services.
Second Homes and Vacation Properties
The exclusion covers only a principal residence. Owning a primary home does not make a second home qualify. Periods after 2008 when the property was not used as a main home may be nonqualified use, subject to exceptions, and gain allocable to it may not be excluded. Moving in before a sale may not make all prior gain excludable.
Rental or Business Use and Depreciation Recapture
Depreciation recapture means part of your gain, tied to depreciation you claimed, is taxed rather than excluded. If a separate nonresidential portion exists, only gain allocated to the residential portion is eligible. Gain on the business or rental portion cannot be excluded.
For business or rental use within the living area, a separate allocation may not be required. Still, gain equal to depreciation allowed or allowable after May 6, 1997 cannot be excluded, and it may need to be reported. Section 1250 governs certain real property depreciation, so this deserves a careful review.
Inherited Property and Divorce
These situations can be sensitive, and each family's facts differ. For inherited property, basis is generally the fair market value on the date of death, or the alternate valuation date if the personal representative chose it. If a federal estate tax return (Form 706) was filed or required, its value is the basis. If none was required, basis is the appraised value at date of death for state inheritance or transmission tax purposes.
Publication 523 has specific guidance for homes received in a divorce. A divorce or separation instrument can include a decree, a written separation agreement, or a qualifying support or maintenance decree. Legal questions about divorce agreements, deeds, or trusts belong with an attorney, as do estate transfers. We handle the tax and accounting side, including estate and succession planning.
Net Investment Income Tax
A large taxable gain may trigger more than regular capital gains tax. The Net Investment Income Tax (NIIT) is 3.8% of the lesser of net investment income or the amount by which modified adjusted gross income (MAGI) exceeds the threshold. Thresholds are:
- $250,000 for married filing jointly
- $125,000 for married filing separately
- $200,000 for single or head of household
- $250,000 for a qualifying widow(er) with a child
These thresholds are not adjusted for inflation, so a gain that would have stayed below them a decade ago may not now. Excluded gain on a personal residence is not net investment income, which means only the portion above your Section 121 exclusion counts. If NIIT is owed, Form 8960 is required.
State Tax Treatment Can Differ From Federal Rules
A federal exclusion does not settle every state tax question. State treatment can affect your estimate and filing obligations even after you calculate the federal gain. We can help with federal and state planning, including state residency planning.
Talk to Pasquesi Sheppard Before You List or Close
The tax implications of selling your home are easiest to manage before you sign a purchase agreement. Timing can affect ownership periods, the two-year rule, and estimated tax payments on large gains. A pre-sale review brings together your expected price, selling expenses, basis records, occupancy dates, filing status, and any rental or business history.
Start the Conversation
With more than 50 years of experience, partner-led personalized service, and a Lake Forest presence, we're glad to discuss your situation and planning opportunities before you list or close. Contact us to get started.
Photo Close-up of a person writing in a notebook with documents and a calculator, managing finances by Leeloo The First is licensed with Pexels License.