Capital Gains Tax Calculator

Estimate the capital gains tax you may owe when selling your home. This calculator factors in your purchase price, improvements, ownership period, filing status, and the primary residence exclusion to project your tax liability.

The Capital Gains Tax Calculator estimates the federal tax you may owe on profit from selling your home. It walks through each step of the IRS calculation to give you a clear picture of your potential liability. First, the calculator determines your cost basis. Your cost basis starts with the original purchase price and adds the cost of qualifying capital improvements you have made over the years. Improvements include renovations, additions, and major system replacements that add value or extend the home's useful life. Routine maintenance and repairs do not count. In this example, a $350,000 purchase price plus $50,000 in improvements yields a cost basis of $400,000. Next, the calculator computes your capital gain by subtracting the cost basis from the sale price. Selling at $550,000 with a $400,000 basis produces a gain of $150,000. The calculator then applies the primary residence exclusion. If you have owned and lived in the home for at least two of the past five years, you can exclude up to $250,000 of gain if filing as single, or up to $500,000 if married filing jointly. In the example above, a married couple with $150,000 in gain would owe zero capital gains tax because the gain falls within the $500,000 exclusion. For gains that exceed the exclusion, the calculator applies the appropriate long-term capital gains tax rate based on your filing status and annual income. Long-term rates are 0%, 15%, or 20% depending on your income bracket. Some high earners may also owe the 3.8% Net Investment Income Tax. The calculator displays your total estimated tax, the effective tax rate on your gain, and how much of your profit you keep after taxes. This helps you plan your finances and set realistic expectations for your net proceeds from the sale.

Keep meticulous records of every capital improvement you make to your home. Save receipts, contractor invoices, and permits for projects like kitchen remodels, roof replacements, bathroom additions, and landscaping overhauls. Each dollar of qualifying improvement increases your cost basis and reduces your taxable gain. Over a decade of homeownership, these improvements can add up to tens of thousands of dollars in tax savings.

Understand the ownership and use tests for the primary residence exclusion. You must have owned the home for at least two years and used it as your primary residence for at least two of the five years before the sale. These two-year periods do not need to be consecutive. If you converted a rental property to your primary residence, special rules may limit the exclusion amount based on the ratio of personal use to rental use.

Consider the timing of your sale carefully if you are close to meeting the two-year residency requirement. Selling even one month before reaching the two-year mark could cost you hundreds of thousands of dollars in lost exclusion. If possible, delay your sale until you fully qualify. Partial exclusions may be available if you must sell early due to a job change, health issues, or other unforeseen circumstances.

Factor in state capital gains taxes in addition to federal taxes. Many states tax capital gains as ordinary income, which can add 3% to 13% or more to your total tax bill. Some states offer their own exclusions or reduced rates for home sales, but others do not. Check your state's tax rules to get a complete picture of your liability.

Consult a tax professional if your situation involves complexities such as inherited property, divorce settlements, partial rental use, or multiple home sales within five years. The capital gains rules have many nuances and exceptions that a calculator cannot fully capture. A qualified CPA or tax attorney can help you maximize your exclusion and identify additional deductions specific to your circumstances.

If you have owned and used your home as a primary residence for at least two of the past five years, you can exclude up to $250,000 of capital gains from taxes as a single filer, or up to $500,000 as a married couple filing jointly. This exclusion can be used once every two years.

Capital improvements add value, extend useful life, or adapt your home to new uses. Examples include kitchen remodels, room additions, new roofing, and HVAC replacement. Repairs maintain existing condition without adding value, such as fixing a leaky faucet or patching drywall. Only improvements increase your cost basis for tax purposes.

Long-term capital gains tax rates for assets held over one year are 0%, 15%, or 20%, depending on your taxable income and filing status. Most home sellers fall into the 15% bracket. High earners may also owe an additional 3.8% Net Investment Income Tax. Short-term gains on property held less than one year are taxed as ordinary income.

If your gain is fully covered by the exclusion, you generally do not need to report the sale on your tax return. However, if you receive a Form 1099-S from the closing agent reporting the proceeds, it is advisable to report the sale and claim the exclusion to avoid IRS inquiries. Always keep documentation supporting your eligibility.

In a divorce, the spouse who receives the home in the settlement can count the other spouse's ownership and use time toward the two-year requirement. If you sell the home as part of the divorce, each spouse can claim up to $250,000 in exclusion if both meet the residency test. Consult a tax advisor for your specific situation.

This calculator provides estimates for informational purposes only. Results are based on the inputs you provide and standard financial formulas. Actual amounts may vary based on your specific situation, location, lender requirements, and market conditions. This is not financial, tax, or legal advice. Always consult with qualified professionals before making real estate or financial decisions.

$
$
$
$

Estimated Tax

$0.00

Total Gain$150,000.00
Exclusion Amount$150,000.00
Taxable Gain$0.00
Effective Tax Rate0.00%