Capital Gains Tax Calculator on Sale of Property

Estimate your potential federal capital gains tax when selling property. This calculator provides a quick estimate based on current 2026 tax rates.

Original purchase price of the property
Final sale price of the property
Date you acquired the property
Date the property was sold
Title insurance, legal fees, surveys, etc.
Major renovations, additions, upgrades
Commissions, advertising, legal fees
Total depreciation claimed (rental properties)
How the property was used
For determining exclusion and tax rates
Special assessments, casualty losses, legal fees, etc.

How to Use This Calculator

This tool helps you estimate the capital gains tax on the sale of property. Simply enter your purchase and sale details, and the calculator will provide an estimated federal tax liability. You'll need:

Capital gains on property sales can be complex due to exclusions, depreciation, and varying tax rates. This calculator provides a helpful estimate, but actual tax liability depends on your specific circumstances.

How Capital Gains on a Property Sale Are Calculated

The basic formula for capital gains on property is:

Estimated Gain = Net Sale Proceeds − Adjusted Basis

For primary residences, you may qualify for the home sale exclusion, which allows single filers to exclude up to $250,000 of gain, and married joint filers up to $500,000.

Rental and investment properties have additional considerations, including depreciation recapture.

What Is Adjusted Basis?

Your adjusted basis is essentially what you've invested in the property. It starts with the purchase price and is increased by certain costs and improvements, and decreased by depreciation and other deductions.

Key components include:

What Can Increase Your Cost Basis?

Several items can increase your cost basis, which reduces your taxable gain:

Normal maintenance and repairs (painting, fixing leaks) do not increase basis.

Can Selling Expenses Reduce the Gain?

Yes. Selling expenses are subtracted from the sale price to determine your net proceeds. Common selling expenses include:

Primary Residence Considerations

If the property was your primary residence, you may be eligible for the home sale exclusion. To qualify, you generally must have:

The exclusion allows you to exclude up to:

Partial exclusions may be available for certain situations (e.g., health issues, job relocation, or unforeseen circumstances).

Rental and Investment Property

Rental and investment properties have additional tax considerations:

Short-Term vs Long-Term Capital Gains

The holding period determines whether your gain is short-term or long-term:

This calculator estimates rates based on current federal rules. For 2026, the 0% rate applies for single filers with taxable income up to $44,600, and the 20% rate applies above $492,300 (single) or $553,850 (joint).

Federal vs State Taxes

This calculator focuses on federal capital gains tax. Many states also impose tax on capital gains. State rules vary significantly — some states don't tax capital gains at all, while others treat them as ordinary income. California, for example, taxes capital gains as ordinary income at rates up to 13.3%.

Always check your state's tax rules for a complete picture.

Example Calculation

Hypothetical Scenario:

Purchase price$200,000
Capital improvements$30,000
Purchase closing costs$8,000
Depreciation taken$12,000
Adjusted basis$226,000
Sale price$350,000
Selling expenses$21,000
Net sale proceeds$329,000
Estimated capital gain$103,000

If this is a primary residence with a $250,000 exclusion, the taxable gain would be $0 (since $103,000 is below the exclusion). If it's a rental, the gain would be taxed at applicable rates.

Common Mistakes to Avoid

When to Consult a Tax Professional

While this calculator provides a useful estimate, certain situations require professional tax advice:

Always consult a qualified tax professional for your specific situation.

Frequently Asked Questions

Basic formula: Net Sale Proceeds − Adjusted Basis = Estimated Gain. Net sale proceeds are sale price minus selling expenses. Adjusted basis includes purchase price, closing costs, capital improvements, and adjustments for depreciation. The gain is then taxed at applicable rates based on your filing status and holding period.

Adjusted basis is what you've invested in the property. It's your original purchase price, plus closing costs and capital improvements, minus depreciation taken, plus other basis adjustments. A higher basis means a lower taxable gain.

Yes. Selling expenses such as real estate commissions, legal fees, transfer taxes, and advertising costs reduce your net sale proceeds, which in turn reduces your taxable gain. These costs are subtracted directly from the sale price.

Yes. Qualifying capital improvements that add value, extend the property's life, or adapt it to new uses increase your cost basis. Examples include room additions, new roofs, HVAC systems, and major renovations. Routine repairs do not increase basis.

Not necessarily. If it was your primary residence and you meet the 2-out-of-5-year ownership and use test, you may exclude up to $250,000 ($500,000 for married joint filers) of gain. Gains above the exclusion may be taxable.

The home sale exclusion allows primary residence sellers to exclude a portion of their capital gain from federal tax. For 2026, the exclusion is $250,000 for single filers and $500,000 for married joint filers, subject to eligibility requirements.

Rental properties are subject to capital gains tax on the sale, but with additional considerations. Depreciation taken during the rental period must be recaptured and taxed at a maximum rate of 25%. The remaining gain is taxed at long-term capital gains rates. 1031 exchanges may defer the gain.

Yes. Depreciation reduces your cost basis, which increases your taxable gain. It also triggers depreciation recapture, which is taxed at a 25% maximum rate for residential rental property.

No. Capital gains tax is based on the capital gain (sale price minus selling expenses minus adjusted basis), not the entire sale price. Only the profit portion is taxed. The home sale exclusion can also eliminate tax on the gain for primary residences.

No. This calculator estimates federal capital gains tax only. State capital gains taxes vary widely and are not included. Some states have no capital gains tax, while others tax it as ordinary income. Consult your state's tax authority for state tax information.

SB
Written by Shabnam Bano
Last updated: August 13, 2026
Tax Year: 2026
Disclaimer: This calculator provides an estimate for informational purposes only. Actual tax liability may depend on individual circumstances, federal and state rules, property use, depreciation, deductions, exclusions and other factors. Consult a qualified tax professional for advice about your specific situation.

Read full disclaimer →

Related Tax Calculators