Start with gain, not the sale price
Capital gain is not the full price of your home or the cash left after paying off the mortgage. Start with the sale proceeds after eligible selling expenses, then subtract your adjusted basis. Basis generally begins with what you paid and can change with qualifying improvements and other adjustments. Keep purchase, improvement and closing records so a tax professional can check the calculation.
The $250,000 and $500,000 exclusions
The IRS says qualifying sellers may exclude up to $250,000 of gain, or up to $500,000 for a married couple filing jointly. These are limits on eligible gain, not automatic payments or exemptions for every sale. Generally you must have owned and used the home as your main residence for at least two of the five years ending on the sale date. The ownership and use periods do not have to be the same two years.
For the joint exclusion, either spouse must meet the ownership test and both must individually meet the use test. Generally, you cannot use the exclusion if you used it for another home sale during the preceding two years. Partial exclusions and exceptions may apply in some circumstances, so a missed test is a reason to seek advice, not to guess.
Check complications before estimating
Rental or business use, depreciation, inherited property and periods when the home was not your main residence can change the outcome. A mortgage balance does not determine taxable gain. Avoid treating every renovation receipt as a qualifying basis adjustment without checking it. The tool below is an estimate and cannot resolve all of these situations.
Keep the reporting step separate
You may still need to report the sale even when all eligible gain is excluded, including when you receive Form 1099-S. Read the IRS guidance and talk to a tax pro before filing. Save the settlement statement and the records supporting your basis and eligibility. Compare your potential tax with net proceeds so you do not confuse your cash at closing with your taxable result.