What’s Your Home’s Cost Basis When You Sell It? (w/Examples) + FAQs

This article reflects federal rules as of June 2026 and covers tax year 2025 (returns filed in 2026), with state notes where they matter. Tax law changes — confirm current figures before you file. This is educational information, not personal tax advice; see a licensed professional for your specific situation.

Quick Answer

Your home’s cost basis is what you paid for it, plus buying costs and capital improvements, minus things like depreciation and casualty payouts. For tax year 2025, this “adjusted basis” is subtracted from your net sale price to find your taxable gain — so a higher basis means a smaller gain and a smaller tax bill.

Most sellers think basis is just the purchase price, but it is much more. Every new roof, room addition, and even the title fees you paid years ago can raise your basis and shrink the gain the IRS can tax. Getting this number wrong is the single most expensive mistake a home seller makes, because you either overpay tax or invite an audit.

This matters right now because home values have soared. The median U.S. home sale price sat near $416,900 in recent quarters, and long-time owners are blowing past the old $250,000/$500,000 exclusion limits — making an accurate basis the difference between a tax-free sale and a five-figure tax bill.

Here is what you will learn:

  • 🧮 The exact formula for adjusted basis, with every item that adds to or subtracts from it.
  • 🏚️ How basis changes when you inherit, receive a gift, divorce, or convert a rental.
  • 💰 Three fully worked examples with real dollar math you can copy.
  • 📋 Which records to keep and how to report the sale on Form 8949 and Schedule D.
  • ⚠️ Seven costly basis mistakes that trigger overpayment or an IRS notice.

What “Cost Basis” Actually Means

Cost basis is the dollar amount the IRS treats as your investment in your home. It is the starting point for measuring profit. When you sell, the law does not tax your whole sale price — it taxes only your gain, which is the sale price minus selling costs minus your adjusted basis.

The word adjusted is the key. Your basis does not freeze on closing day. It rises with money you sink into lasting improvements and falls with tax benefits you have already received, like depreciation. The IRS explains in Publication 523 that you must track these changes for as long as you own the home, sometimes for decades.

Why does this matter so much? Because the consequence of a wrong basis is direct cash. If you understate your basis, you report a bigger gain and hand the government tax you never owed. If you overstate it, you underpay — and if the IRS catches it, you face back taxes, interest, and a possible 20% accuracy penalty under Internal Revenue Code Section 6662.

A common misconception is that basis only matters for landlords or investors. Not true. Any homeowner whose gain might top the exclusion limit — or who ever rented part of the home or took a home-office deduction — needs an accurate basis. The next step is simple: start a basis file the day you buy and never throw away an improvement receipt.

The Adjusted Basis Formula

Here is the core math every seller should memorize. Start with your original cost, add the things that increase basis, then subtract the things that decrease it.

Adjusted basis = (purchase price + buying costs + capital improvements) − (depreciation + casualty losses + seller credits + certain rebates)

Each piece changes your final tax. Below, each gets its own plain-English breakdown so you know what counts, what it costs you if you miss it, and what to do.

Your Original Cost

Your starting basis is usually what you paid for the home, including the part covered by your mortgage. If you bought a house for $300,000 with $60,000 down and a $240,000 loan, your starting basis is the full $300,000 — not just the cash you put in. The loan still counts because you are obligated to repay it.

The consequence of misunderstanding this is huge: people wrongly use only their down payment as basis, which inflates their gain by hundreds of thousands of dollars. If you built the home instead of buying it, your basis is the cost of the land plus the cost of construction, including labor and materials you paid for. Keep every builder invoice, because the IRS in Publication 551 treats those construction costs as part of your basis.

Buying Costs That Add to Basis

Certain settlement fees you paid at closing increase your basis. These include title insurance, recording fees, survey costs, transfer taxes you paid, attorney fees, and owner’s title search charges. A reader who paid $6,000 in such fees raises basis by $6,000 and cuts the eventual gain by the same amount.

The misconception here is that these fees are “lost money.” They are not — they are basis. What you should do is pull out your old HUD-1 or Closing Disclosure and list every non-loan-related charge. Note that loan costs like points, appraisal fees, and credit report fees do not add to basis; they belong to your mortgage, not your home’s value.

Capital Improvements That Raise Basis

Capital improvements are the biggest lever most homeowners have. An improvement adds value, extends the home’s life, or adapts it to a new use — think a room addition, new roof, central air, a finished basement, a pool, new plumbing, or a kitchen remodel. Each dollar spent adds a dollar to basis.

The consequence of failing to track these is paying tax on money that was never profit. Say you added $120,000 of improvements over 20 years but kept no records — you could owe tax on an extra $120,000 of “gain” you never actually made. The misconception is that repairs count. They do not. Fixing a leak, repainting, or replacing a broken window is routine maintenance and does not add to basis, as Publication 523 spells out. Your move: keep receipts, photos, and contracts for every improvement in one folder for the life of the home.

What Decreases Your Basis

Some events pull your basis down. The most common is depreciation you claimed (or could have claimed) when you used the home for business or rented it out. Insurance reimbursements for casualty losses, energy credits that lower the cost of an item, and seller-paid points or credits can also reduce basis.

The big one is depreciation. If you took $40,000 of depreciation on a home office or rental over the years, your basis drops by $40,000 — and that $40,000 comes back as “unrecaptured Section 1250 gain,” taxed at up to 25% under IRC Section 1(h). The misconception is that skipping depreciation avoids this. It does not: the IRS reduces your basis by depreciation “allowed or allowable,” so you lose the basis even if you never claimed the deduction. The lesson — if you depreciated, plan for recapture before you sell.

Which Situation Applies to You?

Basis is not one-size-fits-all. How you got the home decides how you calculate it. Find your situation below and read the matching section.

  • You bought it and lived in it — use the standard formula above. This is most sellers.
  • You inherited it — your basis usually “steps up” to the value on the date of death. Jump to the inherited-home section.
  • You received it as a gift — you generally take the giver’s old basis (carryover). See the gift section.
  • You got it in a divorce — basis transfers from your ex with no immediate tax. See the divorce section.
  • You converted a rental or home office to or from a residence — depreciation recapture applies. See the rental section.

This branching matters because using the wrong rule can swing your tax by tens of thousands of dollars. An heir who wrongly uses the deceased’s old purchase price instead of the stepped-up value, for example, could pay a giant tax on gain that legally vanished at death.

Inherited Homes: The Step-Up in Basis

When you inherit a home, your basis is generally its fair market value on the owner’s date of death — not what they originally paid. This “step-up” can erase decades of gain in one stroke. The rule comes from IRC Section 1014.

Here is why it is so powerful. Suppose your mother bought a house in 1985 for $50,000, and it was worth $500,000 the day she died. Your basis becomes $500,000. If you sell it soon after for $510,000, your gain is only $10,000 — the $450,000 of growth during her life is wiped out tax-free.

The misconception is that the step-up uses the date you sell or the date you receive the deed. It does not — it locks to the date of death, unless the executor elects the alternate valuation date six months later. The consequence of guessing the value is an audit risk, so what you should do is get a written appraisal of the home as of the date of death and keep it forever. In community-property states like California and Texas, a surviving spouse may get a “double step-up” on the entire home, not just half.

Gifted Homes: Carryover Basis

A gifted home is the opposite of an inheritance. You generally take the giver’s adjusted basis — called carryover basis — under IRC Section 1015. There is no step-up while the giver is alive.

So if your father gives you a house he bought for $80,000 and improved by $20,000, your basis is $100,000, even if the home is now worth $400,000. Sell it for $400,000 and you face a $300,000 gain. This is why receiving a home as a gift often costs far more in tax than inheriting it.

The misconception is that a gift is “free.” The tax bill simply waits until you sell. There is also a special trap: if you sell at a loss, your basis for the loss is the lower of the giver’s basis or the fair market value at the time of the gift. What you should do before accepting a high-value home as a gift is ask whether inheriting it later would save tax — and talk to an estate attorney, since this is exactly the kind of decision worth professional help.

Divorce Transfers

A home transferred between spouses as part of a divorce is tax-free at the moment of transfer under IRC Section 1041. The spouse who keeps the home takes the other spouse’s existing basis — the basis simply carries over.

The consequence shows up later. If you keep the house in the divorce, you inherit the whole original basis, but you also inherit the whole built-in gain. When you sell, you may only get the $250,000 single-filer exclusion, not the $500,000 married amount, so a low carryover basis can leave a large taxable gain.

The misconception is that splitting the house is itself a taxable event. It is not — Section 1041 makes it tax-free at transfer. What you should do is document the home’s adjusted basis in the divorce settlement so you are not scrambling for records years later. If big gain is likely, a CPA can help you decide whether to sell before the divorce finalizes to use the $500,000 joint exclusion.

Rental Conversions and Depreciation Recapture

If you ever rented your home or claimed a home-office deduction, you must reduce your basis by the depreciation you took. When you sell, that depreciation is “recaptured” as unrecaptured Section 1250 gain, taxed at a maximum 25% rate, per IRC Section 1(h).

Here is the sting. Even if your overall sale qualifies for the home-sale exclusion, the part of your gain equal to depreciation taken after May 6, 1997, cannot be excluded. So a homeowner who claimed $30,000 of depreciation on a former rental owes tax on that $30,000 no matter how small the rest of the gain is.

The misconception is that the home-sale exclusion shelters everything. It does not shelter depreciation recapture. What you should do is track depreciation precisely and, if you rented the home, run the numbers before selling — a Section 1031 exchange might defer the tax if it is still an investment property. This is complex enough to warrant a tax pro.

Three Worked Examples (With Real Math)

Numbers make this clear. Here are three full calculations you can copy for your own situation, all using tax-year-2025 rules.

Example 1 — Long-Time Married Owners

Maria and David bought their home in 2000 for $250,000, paid $5,000 in title and recording fees, and added $150,000 of improvements (new roof, kitchen, addition) over 25 years. They sell in 2025 for $900,000 and pay $54,000 in agent commissions and closing costs.

  • Adjusted basis = $250,000 + $5,000 + $150,000 = $405,000
  • Amount realized = $900,000 − $54,000 = $846,000
  • Gain = $846,000 − $405,000 = $441,000
  • Section 121 exclusion (married filing jointly) = $500,000
  • Taxable gain = $441,000 − $500,000 = $0

Because their improvements pushed basis up, their entire gain fits under the $500,000 exclusion. Without the $150,000 in tracked improvements, they would have had a $591,000 gain — $91,000 of it taxable.

Example 2 — Single Seller Over the Limit

Priya, single, bought a condo in 2010 for $300,000 with $8,000 in buying costs and made $40,000 of improvements. She sells in 2025 for $720,000 with $43,000 in selling costs.

  • Adjusted basis = $300,000 + $8,000 + $40,000 = $348,000
  • Amount realized = $720,000 − $43,000 = $677,000
  • Gain = $677,000 − $348,000 = $329,000
  • Section 121 exclusion (single) = $250,000
  • Taxable gain = $329,000 − $250,000 = $79,000

Priya owes long-term capital gains tax on $79,000. At a 15% federal rate, that is about $11,850, and she may also owe the 3.8% net investment income tax if her income is high.

Example 3 — Inherited Home With Step-Up

James inherits his grandmother’s home. She paid $60,000 in 1980; its appraised value on her date of death in 2025 was $480,000. James sells it three months later for $495,000 and pays $30,000 in selling costs.

  • Stepped-up basis = $480,000
  • Amount realized = $495,000 − $30,000 = $465,000
  • Gain = $465,000 − $480,000 = −$15,000 (a loss)

Thanks to the step-up, James has no gain at all — in fact a small loss. Had he wrongly used the $60,000 original price, he would have reported a $405,000 gain and possibly paid over $60,000 in needless tax.

Common Basis Scenarios at a Glance

These three scenarios cover how most sellers trip up. Each shows the situation and what it does to your tax.

Basis Situation Tax Result When You Sell
You tracked all improvements and buying costs Higher basis, smaller gain, more of it covered by the $250k/$500k exclusion
You lost your improvement records IRS may treat basis as purchase price only, inflating your gain and your tax
You took depreciation for a rental or home office Basis is reduced by depreciation; that amount is recaptured at up to 25%

Here are three more, focused on how you acquired the home.

How You Got the Home Your Starting Basis
Inherited from someone who died Fair market value on the date of death (Section 1014)
Received as a lifetime gift The giver’s adjusted basis carries over to you
Received in a divorce Your ex-spouse’s adjusted basis transfers tax-free

How to Report the Sale on Your Return

If your gain is fully excluded and you did not get a Form 1099-S, you usually do not have to report the sale at all. But if you have taxable gain, received a Form 1099-S, or want to report a loss on inherited property, you must file.

You report the sale on Form 8949, then carry the totals to Schedule D. On Form 8949, you enter the sale price in column (d), your adjusted basis in column (e), and use column (f) and (g) for any exclusion — entering code H and the excluded amount as a negative number in column (g).

The deadline is your normal tax-filing deadline, generally April 15, 2026, for a 2025 sale. The consequence of skipping a required Form 8949 is an IRS matching notice (a CP2000) because the title company already reported your sale price. The fix is to file accurately the first time and keep your basis worksheet — the Publication 523 worksheet — with your tax records. New to these forms? A step-by-step How to Fill Out Form 8949 and Schedule D guide walks through each line.

Does Your State Follow These Rules?

Start with the federal rule, then check your state, because conformity varies. Most states that have an income tax follow the federal basis rules and the federal home-sale exclusion, so your taxable gain is the same number on both returns.

But the rate you pay differs sharply. Nine states — including Florida, Texas, Washington, and Nevada — have no state income tax, so your home-sale gain faces no state tax at all. High-tax states are the opposite: California taxes capital gains as ordinary income at rates up to 13.3%, on top of the federal bill.

The misconception is that the federal exclusion automatically wipes out state tax. Usually it does, since most states start from federal taxable income — but always confirm your own state’s treatment. What you should do is check your state tax agency’s guidance for home sales before you file, especially if you moved between states during ownership.

Mistakes to Avoid

Each of these errors costs real money or invites an IRS notice.

  • Using only your down payment as basis — this inflates your gain by the entire mortgage amount and causes massive overpayment.
  • Throwing away improvement receipts — without proof, the IRS can limit your basis to the purchase price, taxing money that was never profit.
  • Counting repairs as improvements — deducting routine fixes as basis can trigger an adjustment and a 20% accuracy penalty.
  • Forgetting depreciation recapture — skipping the 25% recapture on a former rental leads to an underpayment notice and interest.
  • Using the deceased’s old cost on inherited property — ignoring the step-up makes you pay tax on gain that legally disappeared at death.
  • Assuming a gifted home gets a step-up — it does not; using fair market value instead of carryover basis understates your gain and underpays tax.
  • Not reporting a sale with a 1099-S — the IRS already has the sale price and will send a CP2000 demanding tax plus interest.

Do’s and Don’ts

Do:

  • Keep a lifetime basis folder — receipts, contracts, and photos prove your improvements years later when memory fails.
  • Get a date-of-death appraisal for inherited homes — it locks in your stepped-up basis and defends it in an audit.
  • Separate improvements from repairs as you spend — sorting later is far harder and you will lose deductions.
  • Track depreciation precisely if you rent or use a home office — you must recapture it whether or not you claimed it.
  • Confirm your state’s treatment before filing — the rate and conformity can change your total bill by thousands.

Don’t:

  • Don’t rely on memory for 20 years of improvements — the IRS wants records, not recollections.
  • Don’t include loan costs like points or appraisal fees in basis — they belong to the mortgage and will be disallowed.
  • Don’t ignore the exclusion’s two-year rules — you must own and use the home as your main home for 2 of the last 5 years.
  • Don’t skip professional help on inherited, gifted, or rental conversions — the dollar stakes justify the fee.
  • Don’t assume the exclusion covers depreciation — recapture is taxed even on an otherwise tax-free sale.

Pros and Cons of Tracking Basis Carefully

Pros:

  • Lower taxable gain — every tracked dollar of basis directly reduces the gain the IRS can tax.
  • Audit protection — solid records defend your numbers if the IRS questions them.
  • More of your sale stays tax-free — a higher basis keeps gain under the exclusion limits.
  • Better sale-timing decisions — knowing your gain in advance lets you plan around the two-year rule.
  • Smoother estate planning — clear basis records help your heirs and your executor.

Cons:

  • It takes years of discipline — you must save records for the entire time you own the home.
  • Improvement-vs-repair calls are tricky — the line is not always obvious and mistakes cost money.
  • Depreciation adds complexity — recapture math is hard to do by hand and easy to get wrong.
  • Lost records can’t be recreated — missing receipts may mean lost basis and higher tax.
  • State rules add another layer — you may need to confirm treatment in more than one state.

What to Do Next

Take these steps in order to protect your basis and file correctly.

  1. Build your basis worksheet now using the Publication 523 worksheet — list purchase price, buying costs, and every improvement.
  2. Gather your proof — closing statements, improvement receipts, contracts, and any depreciation schedules.
  3. For inherited homes, order a date-of-death appraisal if you do not already have one.
  4. Calculate your gain — amount realized minus selling costs minus adjusted basis — and apply the Section 121 exclusion.
  5. Report on Form 8949 and Schedule D by your April 15, 2026, deadline if you have taxable gain or got a 1099-S.
  6. Call a CPA or tax attorney if your home was inherited, gifted, rented, or part of a divorce — the savings usually beat the fee.

FAQs

Is my home’s cost basis just the price I paid? No. Basis is the purchase price plus buying costs and capital improvements, minus depreciation and certain credits. For 2025, this adjusted basis — not the bare purchase price — is what determines your taxable gain.

Does a new roof increase my cost basis? Yes. A new roof is a capital improvement that adds to basis. Repairs like patching leaks do not count, but a full roof replacement does, lowering your taxable gain when you sell.

What is the home-sale exclusion for 2025? $250,000 for single filers and $500,000 for married filing jointly. Under Section 121, you must own and use the home as your main residence for at least 2 of the 5 years before sale.

How is basis figured on an inherited home? It equals the fair market value on the owner’s date of death. This “step-up” under Section 1014 usually erases all gain that built up during the prior owner’s lifetime, often making a quick resale nearly tax-free.

Do I take a step-up on a gifted home? No. A lifetime gift uses carryover basis — you take the giver’s adjusted basis. There is no step-up unless you inherit the property at the giver’s death instead.

Can I add closing costs to my basis? Yes, some of them. Title insurance, recording fees, transfer taxes, and survey costs add to basis. Loan-related costs like points and appraisal fees do not — they belong to your mortgage.

What happens to depreciation when I sell? It is recaptured and taxed at up to 25%. Depreciation you took for a rental or home office reduces your basis, and that amount is taxed as unrecaptured Section 1250 gain even if the rest qualifies for the exclusion.

Do I have to report my home sale if it’s tax-free? No, usually not — if your gain is fully excluded and you received no Form 1099-S. If you got a 1099-S or have taxable gain, you must report it on Form 8949 and Schedule D.

What records prove my cost basis? Closing statements, improvement receipts, contracts, and appraisals. Keep them for as long as you own the home plus at least three years after you sell, in case the IRS asks for proof.

Does my state tax my home-sale gain? It depends on your state. States with no income tax — like Florida and Texas — do not tax the gain. Most other states follow federal rules but apply their own rate, so confirm before filing.

What if I can’t find my old improvement receipts? Reconstruct what you can — use bank records, credit card statements, contractor invoices, and photos. Without any proof, the IRS may limit your basis to the purchase price, raising your taxable gain.

Does fixing up a home before sale add to basis? Only if the work is a capital improvement. Permanent upgrades add to basis, but cosmetic repairs and staging to sell are not improvements and generally cannot be added.