Home Sale Tax: What You Owe When You Sell Your House
Section 121 exclusion rules for 2026: who owes nothing, who owes tax only on the excess, and how to estimate your number before closing day.
Home Sale Tax Estimator (2026)
FreeDo I Pay Taxes When I Sell My House?
Short answer: many sellers owe nothing. The plain-English version of the question people type, do i pay taxes when i sell my house, has a two-step answer: first compute your gain, then check whether the Section 121 exclusion wipes it out. If your gain fits inside your $250,000 (single) or $500,000 (married filing jointly) exclusion and you meet the ownership and use tests, your federal tax on the sale is zero.
You owe tax only when something falls outside the exclusion. Common triggers include a gain larger than your exclusion amount, failing the 2-of-5-year tests, selling a home that was never your main residence, or gain tied to rental periods after 2008 that the law refuses to exclude. Even then, only the non-excluded portion is taxed, usually at long-term capital gains rates rather than ordinary income rates.
Two questions sellers ask constantly illustrate the point. First, is the $250,000 exclusion really unlimited — can you use it over and over? No. You generally cannot claim the exclusion if you already excluded gain on another home sale in the two years before this sale. Second, if you lived in the home for six years and then rented it out for two before selling, do you still qualify? Often yes: the tests look at 2 years of ownership and use inside the 5-year window ending on the sale date, so earlier years of residence can still carry you. Details on both situations appear below.
State taxes are a separate layer. Some states track the federal exclusion, while others tax the full gain or have their own rules, so your state bill can differ from your federal bill. Keep federal and state calculations separate and verify your own state before closing.
Capital Gains on Sale of Home: How Your Gain Is Calculated
Every capital gains on sale of home analysis starts with the same formula: amount realized minus adjusted basis equals gain. The amount realized is essentially your sale price minus selling costs such as agent commissions, title fees, and transfer taxes. Your adjusted basis starts with what you paid for the home and is increased by capital improvements and decreased by items such as depreciation you claimed (or could have claimed) during rental periods.
A simple illustration makes the mechanics concrete. Suppose you bought a house for $300,000, later added a $40,000 kitchen remodel that counts as a capital improvement, and then sold for $650,000 while paying $30,000 in commissions and closing costs. Your amount realized is $620,000, your adjusted basis is $340,000, and your gain is $280,000. That $280,000 — not the $650,000 sale price — is the number the exclusion applies to.
Three mistakes inflate gains unnecessarily. First, sellers forget selling costs, which directly reduce the amount realized. Second, they forget improvements, which raise basis; digging up receipts for the roof, the addition, the HVAC system, and the kitchen remodel can move the needle by tens of thousands of dollars. Third, former landlords forget depreciation: if you rented the home, depreciation during the rental period reduces your basis and increases the gain, and part of that gain may be taxed at the special 25 percent unrecaptured Section 1250 rate. Our rental property taxes guide covers the landlord side in depth.
Losses work differently from gains. If your computation produces a loss on a personal residence, that loss is not deductible — the tax code does not let you write off a loss on your own home. Gains above the exclusion are taxable; losses on a main home simply disappear for tax purposes.
Capital Gains Home Sale Exclusion: the $250K / $500K Rule
The capital gains home sale exclusion in Section 121 lets qualifying sellers exclude up to $250,000 of gain if single (or married filing separately in most cases) and up to $500,000 if married filing jointly. For a joint return, at least one spouse must meet the ownership test, both spouses must meet the use test, and neither spouse may have excluded gain on another home in the prior two years. These dollar caps are fixed by statute and are verified against IRS Topic 701 and IRS Publication 523.
The exclusion applies per sale, not per lifetime, but the two-year rule paces repeat use: you generally cannot take the exclusion if, during the two-year period ending on this sale date, you excluded gain on another home. So serial flippers cannot stack exclusions sale after sale, while ordinary families who move every few years can use it repeatedly across a lifetime. Each sale stands on its own ownership, use, and timing tests.
Crucially, the exclusion shelters gain, not proceeds. A $650,000 sale with a $300,000 purchase produces a $350,000 gain, which a married couple filing jointly excludes in full because $350,000 is less than $500,000 — even though the sale price far exceeds the exclusion. Conversely, a single seller with the same numbers excludes $250,000 and pays tax on the remaining $100,000. The worked examples later walk through both cases dollar by dollar.
This page focuses on the exclusion itself. For the full menu of capital gains rates, thresholds, and the net investment income tax, see our companion capital gains tax rates guide rather than duplicating its tables here.
Ownership and Use Tests: 2 of 5 Years Explained
To claim the full exclusion you must pass two tests during the 5-year period ending on the sale date: the ownership test (you owned the home for at least 2 years, i.e., 24 months) and the use test (you used it as your main home for at least 2 years). The two years do not need to be continuous, and the ownership and use periods do not need to overlap — you can satisfy them during different 2-year stretches inside the same 5-year window.
For married couples filing jointly, the tests split: either spouse can satisfy the ownership test, but each spouse must individually satisfy the use test for the couple to claim the full $500,000. If only one spouse meets the use test, the couple is generally limited to a $250,000 exclusion. If you are single, both tests apply to you alone, and the cap is $250,000.
Short absences generally do not break the use test. Vacations, business travel, and similar temporary time away still count as use as long as the home remained your main residence. What matters is where you actually lived, not perfect physical presence every single day. The IRS looks at the overall pattern — voter registration, mailing address, and daily life all corroborate the claim.
The classic borderline case: you lived in the home for six years, converted it to a rental, and sold two years later. Because the 5-year window ending on the sale date still contains at least 2 years of qualifying residence, you can pass the use test even though tenants occupied the home at the end. Wait a third rental year, though, and the qualifying residence years slide out of the window — timing the sale matters enormously for converted homes.
Partial Exclusion When You Must Sell Early
Life does not always wait two years. If you fail the ownership or use tests because of a change in employment, health reasons, or other unforeseen circumstances, you may still qualify for a reduced (partial) exclusion rather than losing the benefit entirely. The partial exclusion is prorated: multiply the full $250,000 or $500,000 by the fraction of the 2-year requirement you actually met.
Qualifying reasons cluster into three buckets. Work-related moves include taking a new job, a job transfer, or starting employment at least 50 miles farther from the old home than the old job was. Health reasons include moving to treat or care for a disease, illness, or injury affecting you or a family member. Unforeseen circumstances cover events such as divorce or legal separation, multiple births from one pregnancy, natural disasters, job loss qualifying for unemployment, or a death in the family. IRS Publication 523 lists safe harbors; situations outside them are judged on all the facts.
The math is proportional. A single seller who owned and lived in the home for 12 months before a qualifying job relocation would generally qualify for half the full amount — 12 months out of the required 24 — or roughly $125,000 of exclusion. A married couple in the same position would generally see roughly $250,000. Document everything: offer letters, medical records, separation agreements, and moving logs turn a debatable claim into a well-supported one.
Note the interaction with the two-year repeat rule. A partial exclusion still counts as an exclusion, so claiming one starts the two-year clock that blocks another exclusion on a quick follow-up sale. Plan sequential moves with that cooldown in mind.
Worked Examples: $0 Tax and Tax on the Excess
Concrete numbers beat abstractions. Both examples below use the same house — bought for $300,000, sold for $650,000, no improvements or selling costs for simplicity — so the gain is $350,000 in each case. The only difference is filing status, which changes the exclusion and therefore the tax. Each computation was verified by direct execution (see the proof summary after the table).
| Step | Married Filing Jointly | Single |
|---|---|---|
| Sale price | $650,000 | $650,000 |
| Minus purchase price (basis) | ($300,000) | ($300,000) |
| Equals gain | $350,000 | $350,000 |
| Minus Section 121 exclusion | ($500,000, capped at gain: $350,000) | ($250,000) |
| Taxable gain | $0 | $100,000 |
| Tax at 15% bracket | $0 | $15,000 |
In the joint case, the $350,000 gain sits entirely inside the $500,000 exclusion, so no federal capital gains tax is due on the sale. In the single case, the $250,000 exclusion covers most of the gain but leaves $100,000 taxable; at the 15 percent long-term capital gains rate that is $15,000 of tax. A seller in the 0 percent bracket (lower taxable income) could owe less, while a high-income seller in the 20 percent bracket could owe up to $20,000 on the same excess — see the 2026 thresholds section for where those brackets begin.
Computation proof (executed, not hand-waved): gain = 650000 − 300000 = 350000; joint taxable = max(0, 350000 − 500000) = 0, tax = $0; single taxable = 350000 − 250000 = 100000, tax = 100000 × 0.15 = $15,000. Real closings add wrinkles — improvements raise basis, commissions lower the amount realized, and depreciation recapture can add a 25 percent layer — but the exclusion-first structure never changes.
Home Sale Capital Gains Calculator: How to Estimate Your Tax
A home sale capital gains calculator turns the rules above into a personal number in under a minute. Enter your sale price, your original purchase price plus any capital improvements, and your selling costs; the estimator computes your gain, applies your $250,000 or $500,000 exclusion (if you check the eligibility box), and multiplies any leftover gain by your capital gains bracket. The widget at the top of this page follows exactly that sequence.
Accuracy depends on inputs, so gather three documents before you trust the output. First, your original closing statement (HUD-1 or Closing Disclosure) establishes purchase price plus settlement costs that count toward basis. Second, receipts or contractor invoices for capital improvements — the addition, the roof, the system upgrades — raise your basis and shrink the gain. Third, your listing and closing paperwork for the sale quantifies commissions and transfer costs that reduce the amount realized. Estimates built on guesses are fine for planning; estimates built on paperwork are what you file from.
Know what the estimator does not do. It does not apply depreciation recapture for former rentals, state income tax, the 3.8 percent net investment income tax for high earners, or partial-exclusion proration — those need separate handling or a professional. For full-rate modeling across asset types, use our dedicated capital gains calculator; for timing gains and losses against each other, read our tax-loss harvesting guide.
Treat the result as a planning figure. If the estimate shows zero, confirm eligibility and keep your residence records. If it shows a five-figure bill, you have time before closing to harvest losses, verify improvement receipts, or adjust withholding and estimated payments so April brings no surprises.
Capital Gains on House Sale 2026: What Rate Hits the Excess
The capital gains on house sale 2026 story has two layers: the exclusion first, rates second. Only gain surviving the exclusion faces tax, and because a home held more than a year is a long-term asset, that surviving gain is generally taxed at the preferential long-term rates of 0, 15, or 20 percent — not ordinary income rates. Owned one year or less, and the excess is short-term, taxed like wages.
For 2026, the long-term brackets applied to the taxable excess use these site-verified thresholds: single filers pay 0 percent up to $49,450 of taxable income and 20 percent above $545,500, with 15 percent in between; married couples filing jointly pay 0 percent up to $98,900 and 20 percent above $613,700, with 15 percent in between. Your other income stacks with the home-sale gain to determine which bracket the excess lands in, so a large gain can push part of itself into a higher rate. The complete tables live in our capital gains tax rates guide.
Two surcharges can ride on top. Depreciation recapture on former rental use is taxed up to 25 percent (the unrecaptured Section 1250 portion). High earners may also owe the 3.8 percent net investment income tax on some or all of the taxable gain. Neither surcharge is affected by the exclusion beyond shrinking the base it applies to.
Looking ahead, 2027 thresholds are projected and not yet finalized — the IRS typically announces inflation adjustments late in the preceding year. If your closing could slip into next year, re-check the numbers before filing rather than assuming this page's 2026 figures carry over.
Selling House Capital Gains Exemption and Rentals: Conversions Count
The selling house capital gains exemption most often gets complicated when a home has a rental chapter. Three scenarios cover nearly every case. First, the former residence converted to a rental (the lived-6-rented-2 pattern): you can still claim the full exclusion if 2 years of ownership and use fall inside the final 5-year window, but depreciation claimed during the rental years reduces basis and the unrecaptured portion is taxed up to 25 percent and cannot be excluded.
Second, the rental converted into a residence: moving into a former rental can qualify it over time, but gain attributable to nonqualified use — generally rental or non-residence periods after 2008 — must be allocated and cannot be excluded, even if you later meet the 2-of-5-year tests. Congress added this allocation rule to stop buyers from purchasing rentals, living in them briefly, and excluding decades of appreciation. Pre-2009 rental periods are generally grandfathered out of this allocation.
Third, true second homes and vacation properties never qualify while they remain non-principal residences; only actual use as your main home starts the clock. Mixed-use property (a duplex where you live in one unit) splits the baby: the residential portion can qualify while the rental portion is treated separately. Landlords weighing a sale against a 1031 exchange should compare both paths in our rental property taxes guide.
Record-keeping decides these cases. Keep leases, move-in dates, depreciation schedules, and improvement invoices for every year of ownership. When the IRS tests a conversion claim, contemporaneous records beat reconstructed memories every time.
Basis Adjustments That Shrink Your Taxable Gain
Your basis is not just your purchase price — it is a running total that rewards good records. Start with the purchase price plus buyer settlement costs such as title insurance, recording fees, and transfer taxes you paid as buyer. Add the cost of every capital improvement: additions, new roof, replacement HVAC, rewiring, plumbing overhauls, kitchen and bath remodels, decks, driveways, and landscaping that becomes part of the property. Each dollar added to basis is a dollar subtracted from gain.
Repairs and maintenance generally do not count. Repainting, fixing a leak, servicing the furnace, and patching drywall keep the home in working order but do not add to basis. The dividing line is betterment, restoration, or adaptation: work that makes the property better, bigger, more efficient, or suited to a new use qualifies, while work that merely maintains it does not. When in doubt, keep the invoice and let the rule, not memory, decide at filing time.
Two adjustments move basis downward. Depreciation deducted (or allowable) during rental periods reduces basis, which is why converted homes often show surprisingly large gains. Casualty losses you deducted and insurance reimbursements you received can also reduce basis. Inherited homes get special treatment — usually a stepped-up basis to fair market value at death — and gifted homes generally carry the giver's basis, which can mean a large embedded gain for the recipient.
The payoff is direct: $60,000 of documented improvements on a $300,000 purchase turns a $350,000 headline gain on a $650,000 sale into $290,000, which a single seller's $250,000 exclusion nearly erases. File a folder — physical or digital — with every closing statement, improvement receipt, and depreciation schedule. It is the highest-return paperwork in homeownership.
Reporting the Sale, Records, and State Taxes
Many qualifying sellers never report the sale at all: if the full gain is excluded and you received no Form 1099-S, or the 1099-S proceeds plus your basis math clearly show no taxable gain, no reporting is generally required — though keeping the worksheet is wise. If part of the gain is taxable, if you received a 1099-S and cannot reconcile it away cleanly, or if you claimed depreciation, report the sale on Form 8949 and Schedule D, attaching the Publication 523 worksheet logic for any exclusion or partial exclusion claimed.
Your record file should contain the purchase closing disclosure, all improvement invoices, the sale closing disclosure showing commissions and transfer costs, any depreciation schedules from rental years, and proof of residence (voter registration, licenses, utility records) covering the qualifying years. Keep these at least three years after the return reporting the sale — longer if rental depreciation or large improvements are involved.
State treatment varies and can surprise. Many states conform to the federal exclusion, but some tax the gain differently, impose their own withholding at closing (California is famous for it), or offer no parallel exclusion at all. State withholding at closing is generally a prepayment credited on your state return, not an extra tax — but it affects cash at closing. Check your state's revenue department and our property tax deduction guide for the ownership-tax side of the ledger.
When the numbers are large or the history is tangled — conversions, divorces, inheritances, multi-year rentals — a short consultation with a CPA or enrolled agent typically costs less than the tax on a single misclassified $10,000 of gain. Free estimators plan; professionals file.
This home sale tax guide has been verified against IRS Topic 701 — Sale of Your Home and IRS Publication 523 (Selling Your Home) for the 2026 tax year. Exclusion amounts ($250,000 single / $500,000 married filing jointly), the 24-month ownership and use tests inside the 5-year window, and the two-year repeat-sale limit follow the IRS text. Long-term capital gains thresholds match site-verified 2026 constants. All estimator computations run in your browser — your financial data never leaves your device.
Frequently Asked Questions
Often you owe nothing. If you owned and lived in the home at least two of the last five years, Section 121 lets you exclude up to $250,000 of gain single or $500,000 married filing jointly. Only gain above your exclusion is taxed, usually at long-term rates.
It is the Section 121 rule that shelters gain on a main-home sale: $250,000 for single filers, $500,000 for joint filers. You must pass ownership and use tests, and you cannot have excluded another home's gain within the prior two years in most cases.
Usually yes if you sell promptly. The tests need two years of ownership and residence inside the five-year window before the sale, so earlier living years still count. Depreciation from renting lowers basis though, and that recaptured part is taxed up to 25%.
You can reuse it across a lifetime, but not back-to-back. Generally you must wait two years after excluding one home's gain before excluding another's. Each sale independently needs its own ownership, use, and timing tests under IRS Publication 523 rules today.
Gain held over a year is taxed at 0%, 15%, or 20% depending on total income. For 2026, single filers hit 20% above $545,500 and joint filers above $613,700. Most sellers land at 15%. High earners may also owe 3.8% net investment income tax.
Partly. Moving into a former rental and meeting the two-year tests can unlock the exemption, but gain tied to nonqualified rental use after 2008 is allocated and stays taxable. Depreciation recapture is also taxed separately up to 25%, never excluded under current law.