Technical & Financial Calculation Engines
Home Sale Calculator with Capital Gains
The Home Sale Calculator with Capital Gains determines whether your home sale profit is subject to federal capital gains tax under IRS Section 121. By computing your adjusted cost basis (purchase price + documented capital improvements) and factoring in your 2-out-of-5-year primary residence status, you discover exactly how much profit is shielded tax-free.
- Section 121 shields $250,000 of gain for single filers and $500,000 for married couples.
- You must have owned and lived in the home 2 of the last 5 years.
- The worked example shields the full $246,000 gain — $0 tax.
- Repairs do not add to cost basis; capital improvements do.
Loading calculator…
Amounts in your selected currency (USD). Enter values in USD — no exchange-rate conversion is applied.
Calculation Formula & Mathematical Engine
Theoretical equation governing this computation.
Taxable Gain = \max\left(0, (P_{sale} - C_{sale}) - (P_{purchase} + C_{improvements}) - E_{sec121}\right)Variable Definitions
Step-by-Step Calculation Example
Tax Calculation on a Married Couple Selling a $650,000 Home
- 1Calculate adjusted cost basis: $320,000 + $45,000 = $365,000
- 2Calculate net realized price: $650,000 - $39,000 = $611,000
- 3Determine total capital gain: $611,000 - $365,000 = $246,000
- 4Apply Section 121 exclusion: $246,000 gain is below the $500,000 married exclusion threshold
- 5Taxable capital gain: $0.00 federal tax owed
Comprehensive Practical Guide
In-depth analysis, domain guidelines, standard practices, and common pitfalls.
The 2-Out-of-5-Year Primary Residence Rule
To qualify for the Section 121 capital gains exclusion ($250,000 for single taxpayers or $500,000 for married joint filers), you must satisfy both the ownership test and the use test: you must have owned and lived in the residence as your principal home for at least two years (730 days) during the five-year period ending on the date of the sale.
Repairs vs. Capital Improvements: What Counts for Basis
Ordinary repairs (repainting a bedroom, fixing a leaky faucet) do not increase your cost basis. In contrast, capital improvements (installing a new architectural shingle roof, modernizing HVAC, remodeling a kitchen, constructing a composite deck) permanently add property value and increase your adjusted basis, directly reducing future capital gains.
Frequently Asked Questions About Home Sale Calculator with Capital Gains
Direct, verified answers to common calculation and methodology questions.
Related Calculators
Explore complementary tools and related mathematical engines.
Free Home Sale Calculator
Calculate net cash proceeds at closing from selling your home after agent commissions, mortgage payoff, title escrow, and transfer taxes.
Home Renovation Calculator Free
Estimate remodeling budgets for kitchens, bathrooms, decks, and basements with cost-to-value return on investment (ROI).
Investment Calculator With Inflation
Forecast long-term investment growth in today's dollars, using an inflation-adjusted real return and regular monthly contributions.