How Capital Gains Work
Capital gain is the difference between what you sell for and your adjusted basis.Calculating gain
Calculating gain
Sale price
- 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 cost basis plus improvements minus depreciation.Increases to 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
Capital improvements (add to basis):
- Room additions
- New roof
- HVAC replacement
- Kitchen remodel
- New windows
- Finished basement
- Landscaping (permanent)
- Painting
- Fixing leaks
- Patching drywall
- Replacing broken fixtures
- General maintenance
Keep receipts for all improvements. You may sell decades after making improvements, and documentation increases your basis, reducing taxable gain.
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
To qualify for full exclusion, must meet both tests during the 5-year period ending on sale date:Ownership test: Owned the home for at least 2 years (730 days).Use test: Lived in the home as primary residence for at least 2 years (730 days).The 2 years don’t need to be continuous. Total of 24 months within 5-year period qualifies.
Married couples
Married couples
To claim full $500,000 exclusion:
- 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
Can only use exclusion once every 2 years. If you sold another home and claimed exclusion within past 2 years, you cannot claim again.Exception: Partial exclusion may be available if sale due to unforeseen circumstances.
Partial Exclusion
If you don’t meet full ownership and use requirements, you may still qualify for partial exclusion.Qualifying reasons
Qualifying reasons
Partial exclusion available if sale is due to:Work-related move:
- 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
Multiply full exclusion by fraction of 2-year requirement met.Example:
- 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
Long-term (owned more than 1 year):
- 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
Additional 3.8% tax on investment income (including capital gains) for higher earners.Applies when modified adjusted gross income exceeds:
- $200,000 (single)
- $250,000 (married filing jointly)
State taxes
State taxes
Most states also tax capital gains. Rates vary from 0% to over 13%.Combined federal and state rates can exceed 30% in high-tax states.
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
Depreciation recapture taxed at 25%, regardless of your regular capital gains rate.This is higher than the 15% long-term rate most taxpayers pay.Recapture is calculated first, then remaining gain taxed at regular capital gains rates.
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
If close to meeting ownership or use test, waiting to sell can save significant taxes.Example: Owned 22 months, planning to sell. Waiting 2 more months qualifies for $250,000 exclusion.At 15% capital gains rate, waiting could save $37,500 in taxes.
Year-end timing
Year-end timing
Gain is taxed in year sale closes. If income varies year to year, timing closing can affect tax rate.Higher income year: Consider delaying closing to January. Lower income year: Consider closing before December 31.Coordinate with buyer and consider market risks of delay.
Converting rental to primary
Converting rental to primary
Want to use primary residence exclusion on former rental? Must live in property as primary residence for 2 of last 5 years.Limitation: Gain allocated to periods of non-qualified use (after 2008) is not excludable.Plan conversion well in advance of sale.
Installment sales
Installment sales
Spreading payments over multiple years can spread tax liability. Gain recognized as payments received.Useful when large gain would push into higher bracket. Interest must be charged on deferred payments.Complex rules apply. Consult tax professional.
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
Basis “steps up” to fair market value at date of death. Gain is only appreciation after inheritance.
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
Transfers between spouses incident to divorce are not taxable. Receiving spouse takes over original basis.Future sale by receiving spouse may trigger gain based on original purchase price.Consider tax implications when negotiating property division.
Selling at a loss
Selling at a loss
Losses on personal residence are not deductible. You cannot claim capital loss on home you lived in.Losses on investment property (rental, flip) may be deductible, subject to limitations.
Partial rental use
Partial rental use
If part of home was rented, gain must be allocated between residential and rental portions.Primary residence exclusion applies only to residential portion. Rental portion subject to depreciation recapture and capital gains.
Like-kind exchange history
Like-kind exchange history
If you acquired property through 1031 exchange, original basis carries forward. Exclusion doesn’t apply for 5 years after exchange.Gain includes deferred gain from exchanged property.
Reporting Requirements
When reporting isn't required
When reporting isn't required
No Form 1099-S or Schedule D needed if:
- 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
Must report sale on Schedule D if:
- Gain exceeds exclusion
- Exclusion requirements not fully met
- Any portion was rental or business use
- Received Form 1099-S
- Partial exclusion claimed