Many homeowners wonder how capital gains tax works when selling a property, especially if it was once their primary residence and then rented out. Let’s break it down using a real example to make it clear.
The Scenario
An Anil and family purchased a home in 2012 for $285,000. They lived in the property as their primary residence until December 2024—a total of 12+ years. After moving out, they rented the property from December 2024 until February 2026, and now plan to sell it in March 2026 for $750,000.
Step 1: Federal Capital Gains Exclusion
The IRS allows homeowners to exclude up to $500,000 of capital gains on a primary residence if:
You owned the property for at least 2 years, and You lived in it as your primary residence for at least 2 of the last 5 years before the sale.
In this case:
Ownership: 2012 → 2026 → ✅ more than 2 years Use: 2012 → 2024 → ✅ more than 2 years in last 5
Result: The family qualifies for the $500,000 federal exclusion.
Step 2: Calculating the Gain
Sale price: $750,000
Purchase price: $285,000
Gross gain: 750,000 − 285,000 = $465,000
Since $465,000 < $500,000, the federal capital gains tax is $0.
Step 3: Depreciation Recapture from Rental
Because the property was rented for ~14 months, any depreciation claimed during that rental period is taxable as depreciation recapture at a maximum rate of 25%.
If minimal depreciation was claimed, this could be a small amount, e.g., $3,000–$5,000.
Step 4: State Taxes (New Jersey Example)
New Jersey treats capital gains as ordinary income, so the federal exclusion does not fully apply. Homeowners may owe state tax on the gain related to the rental period, which is generally smaller than the total gain.
Key Takeaways
Primary residence exclusion is powerful: Even with over a year of rental, most of the gain may still be excluded. Depreciation recapture applies only to rental period: Keep records to calculate accurately. State taxes differ: Always check your state’s rules, as they may not match federal exclusions. Planning matters: If selling soon after renting, the timing and length of rental can impact taxes slightly but generally leaves a big benefit from the federal exclusion.
Conclusion:
Using this real example, homeowners can see that careful planning and understanding of primary residence rules can save tens of thousands in taxes. Even when a property is rented for a short time, the federal exclusion can still cover most or all of the gain, while depreciation and state taxes require attention.
Educational Tip
When thinking about selling a home:
Track purchase price, improvements, and depreciation. Know your residency period and rental timeline. Consult a CPA for precise state tax implications.
#CapitalGainsTax
#RealEstateEducation
#PrimaryResidenceRule
#NJRealEstate
#SmartHomeSelling
