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.
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
Related Calculators
View allHome Sale Proceeds Calculator
Calculate your net proceeds after all selling costs.
sellersSeller Net Sheet Calculator
Generate a detailed seller net sheet with all line items.
sellersHome Equity Calculator
Calculate your current home equity from value and mortgage balance.
sellersSeller Closing Costs Calculator
Estimate itemized seller-side closing costs.