Selling a home can trigger capital gains taxes on the profit. However, significant exclusions exist for primary residences that allow many sellers to pay little or no tax on their gains. Understanding the rules before listing helps sellers make timing decisions and maximize tax benefits.Documentation Index
Fetch the complete documentation index at: https://learn.hometrics.ai/llms.txt
Use this file to discover all available pages before exploring further.
How Capital Gains Work
Capital gain is the difference between what you sell for and your adjusted basis.Calculating gain
Calculating gain
- Minus selling costs (commissions, closing costs) = Net sale proceeds
- Minus adjusted basis = Capital gain (or loss)
Example:
- Sale price: $500,000
- Selling costs: $35,000
- Net proceeds: $465,000
- Adjusted basis: $320,000
- Capital gain: $145,000
Adjusted basis
Adjusted basis
- Original purchase price
- Qualifying closing costs from purchase
- Capital improvements (additions, renovations, major systems)
- Depreciation taken (rental or home office)
- Casualty loss deductions
- Insurance proceeds for damage not used for repairs
- Energy credits received
Capital improvements vs repairs
Capital improvements vs repairs
- Room additions
- New roof
- HVAC replacement
- Kitchen remodel
- New windows
- Finished basement
- Landscaping (permanent)
- Painting
- Fixing leaks
- Patching drywall
- Replacing broken fixtures
- General maintenance
Primary Residence Exclusion
The most valuable tax benefit for homeowners. Allows excluding significant gains from taxation.Exclusion amounts
Exclusion amounts
- Single filers: Up to $250,000 excluded
- Married filing jointly: Up to $500,000 excluded
Ownership and use tests
Ownership and use tests
Married couples
Married couples
- File joint return
- At least one spouse meets ownership test
- Both spouses meet use test
- Neither spouse used exclusion in prior 2 years
Frequency limitation
Frequency limitation
Partial Exclusion
If you don’t meet full ownership and use requirements, you may still qualify for partial exclusion.Qualifying reasons
Qualifying reasons
- New job location at least 50 miles farther from home
- Employer transfer
- New employment
- Doctor-recommended move
- Caring for family member
- Illness requiring move
- Death
- Divorce
- Job loss
- Multiple births from same pregnancy
- Disaster damage
- Other events determined by IRS
Calculating partial exclusion
Calculating partial exclusion
- Lived in home 18 months (1.5 years)
- Relocated for job
- Single filer
- Partial exclusion: $250,000 x (1.5/2) = $187,500
Capital Gains Tax Rates
Gains exceeding exclusion are taxed based on how long you owned the property.Long-term vs short-term
Long-term vs short-term
- 0% if taxable income under $47,025 (single) or $94,050 (married)
- 15% for most taxpayers
- 20% for highest earners
- Taxed as ordinary income
- Rates from 10% to 37% depending on bracket
Net Investment Income Tax
Net Investment Income Tax
- $200,000 (single)
- $250,000 (married filing jointly)
State taxes
State taxes
Depreciation Recapture
If you claimed depreciation on the property, some gain is taxed at higher rates.When it applies
When it applies
- Rental property (depreciation required)
- Home office deduction (depreciation claimed)
- Portion of home used for business
Recapture rate
Recapture rate
Example
Example
- Sold rental property with $100,000 total gain
- Claimed $40,000 in depreciation over ownership
- Depreciation recapture: $40,000 taxed at 25% = $10,000
- Remaining gain: $60,000 taxed at 15% = $9,000
- Total tax: $19,000
Timing Strategies
Meeting the 2-year requirement
Meeting the 2-year requirement
Year-end timing
Year-end timing
Converting rental to primary
Converting rental to primary
Installment sales
Installment sales
Selling Costs That Reduce Gain
Deductible from sale price
Deductible from sale price
- Real estate agent commissions
- Advertising costs
- Legal fees
- Title insurance (seller’s share)
- Transfer taxes
- Recording fees
- Escrow fees
- Home warranty (if seller pays)
- Staging costs
- Repairs required by contract
Not deductible
Not deductible
- Moving expenses
- Mortgage payoff (doesn’t affect gain calculation)
- Prepayment penalties (may be deductible elsewhere)
- Property taxes (deductible separately if itemizing)
Special Situations
Inherited property
Inherited property
Example: Parent bought for $100,000. Worth $400,000 at death. Your basis is $400,000. Sell for $420,000. Gain is only $20,000.Primary residence exclusion doesn’t apply unless you live there for 2 years.
Divorce
Divorce
Selling at a loss
Selling at a loss
Partial rental use
Partial rental use
Like-kind exchange history
Like-kind exchange history
Reporting Requirements
When reporting isn't required
When reporting isn't required
- Gain is within exclusion limits
- Ownership and use tests fully met
- Exclusion wasn’t used in prior 2 years
- Property was primary residence only
When reporting is required
When reporting is required
- Gain exceeds exclusion
- Exclusion requirements not fully met
- Any portion was rental or business use
- Received Form 1099-S
- Partial exclusion claimed