Finance category
Mortgage, loan, investing, tax, and money calculators.
Home Sale Tax Calculator
Estimate the capital gains tax owed on a home sale: realized gain after basis and selling costs, then Section 121 exclusion (up to $250k single / $500k joint) for a primary residence.
Total tax owed
$0
federal + state on the gain
Realized gain
$277,000
sale − costs − basis
Section 121 exclusion
$500,000
if primary residence
Taxable gain
$0
How home sale tax works
Adjusted basis: original purchase + capital improvements ($355,000). Realized gain = sale − selling costs − basis. Section 121 excludes up to $250k single / $500k joint if you've owned and lived there 2 of the last 5 years.
For investment properties, depreciation recapture (25%) plus capital gains apply, and a 1031 exchange can defer both. Confirm specifics with a CPA — this calculator is an estimate, not tax advice.
EveryCalc calculators are designed for fast, practical estimates with transparent inputs and no required account. We use plain formulas, visible assumptions, and related tools so visitors can check the result from more than one angle.
Results are informational only. For financial, tax, legal, medical, construction, or other high-impact decisions, verify the output against primary sources or a qualified professional.
Learn more about our review process on the EveryCalc methodology page.
How this calculator works
What this page estimates
This Home Sale Tax Calculator is built to give a quick, browser-based estimate for home sale tax. Estimate the capital gains tax owed on a home sale: realized gain after basis and selling costs, then Section 121 exclusion (up to $250k single / $500k joint) for a primary residence. The inputs stay on the page during normal use, and the result should be treated as an estimate for planning, comparison, or education rather than professional advice.
Calculation approach
The calculator applies the standard relationship implied by the inputs, then formats the answer so it can be checked and reused. For finance tools, the most important step is using consistent units, rates, time periods, and assumptions before comparing the result with another calculator or outside quote.
Example workflow
For example, start with a realistic value you already know, change one input at a time, and watch how the answer moves. That makes it easier to tell whether the result is being driven by the main amount, the rate, the time period, or a unit conversion.
Practical checks
- Use current, real-world numbers when the result affects money, health, tax, or legal decisions.
- Run a low, base, and high case when the inputs are estimates.
- Check the related calculators below when the next decision depends on a different assumption.
How to interpret the home sale tax result
Best use
Use the result as a planning number for comparing payments, rates, returns, tax reserves, or cash-flow choices before you request a quote or make a commitment.
Cross-check
Compare the answer with the contract, lender estimate, tax form, brokerage statement, payroll record, or invoice that will control the real-world outcome.
Watch for
Do not rely on a single optimistic rate, return, or fee assumption. Money pages work best when you run low, base, and high cases and keep professional advice separate from the estimate.
This page belongs to the Finance calculator library, so the answer should be read in the context of the decision you are modeling rather than as a universal rule.
Before relying on this home sale tax estimate
Most calculator mistakes come from the inputs, not the arithmetic. Use this short audit before you reuse the answer in a spreadsheet, quote, application, or important conversation.
Confirm source numbers
Match balances, rates, fees, taxes, income, and payment dates against the lender quote, payroll record, tax form, statement, invoice, or contract.
Separate cash flow from total cost
A lower monthly payment can still cost more over time if fees, interest, taxes, or a longer term are hidden in the structure.
Run conservative cases
Test at least one higher-cost or lower-return case before using the output for a purchase, refinance, investment, loan, or tax decision.
Rerun this page when the rate, price, term, fee, tax rule, income, expense, or expected holding period changes.
How to Use
- Enter sale price and original purchase price.
- Enter capital improvements (additions, renovations — not repairs) added during ownership.
- Enter selling costs (commission, transfer tax, title).
- Pick filing status and primary-residence eligibility (owned and lived there 2 of last 5 years).
- Enter your federal long-term capital gains rate (0%, 15%, or 20% based on income) and state rate.
- Read total tax owed on the gain.
Frequently Asked Questions
How does the Section 121 exclusion work?
If you owned and lived in the home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gain from federal tax. State rules vary.
What counts as a capital improvement?
Additions, renovations, new HVAC, new roof, landscaping, energy upgrades — anything that adds to the home's value or extends its useful life. Repairs and maintenance don't add to basis.
What if I rented the home before selling?
If you converted from primary residence to rental, partial Section 121 exclusion may apply. Depreciation taken during the rental period must be recaptured at up to 25%. Get CPA advice — the rules are complex.
What about the Net Investment Income Tax?
High-income sellers (>$200k single / $250k joint MAGI) may owe an additional 3.8% NIIT on the taxable portion. Build it into your federal LTCG rate input or get specific tax advice.
Related Calculators
Capital Gains Tax Calculator
Generic capital gains for non-real-estate assets.
Property Selling Cost Calculator
Build the selling costs that reduce realized gain.
1031 Exchange Calculator
Defer capital gains via a 1031 if it's investment property.
Cost Basis Calculator
Build the adjusted basis with improvements and depreciation.
Depreciation Recapture Tax Calculator
Apply if the home was rental for any period.
Seller Net Sheet Calculator
Combine selling costs and tax estimates into net to seller.
More Finance Calculators
Browse all finance →AI Cost Calculator
Compare token costs across OpenAI, Anthropic, and Google AI models. Calculate monthly API spending for GPT-4o, Claude, Gemini, and more.
Tip Calculator
Calculate the perfect tip and split the bill between friends. Choose preset percentages or enter a custom tip amount.
Bill Splitter Calculator
Split an uneven restaurant bill by item, divide tax and tip proportionally, and see exactly who owes whom.
Discount Calculator
Calculate sale price, discount amount, stacked discounts, sales tax, and total savings for any markdown.
Gas Mileage Calculator
Calculate MPG or km/L, estimate trip fuel cost, and compare annual fuel expenses between two vehicles.
Sales Tax Calculator
Add sales tax to a price, reverse-calculate the pre-tax amount from a total, and estimate tax for multiple items on one receipt.
Keep exploring
Next steps in Finance
Previous calculator
Home Replacement Cost Coverage Gap Calculator
Calculate the remaining home replacement cost coverage gap after current limits, reserves, deductibles, and risk buffer.
Next calculator
Home Warranty Cost Calculator
Estimate annual home warranty cost by coverage tier plus service call fees, and compare to self-insured sinking fund.