Taxes, Rules & OwnershipPart of: How to Sell a House: The Complete Step-by-Step Guide
Home Improvements That Reduce Capital Gains Tax
Not every renovation lowers your tax bill when you sell. Here is exactly which home improvements the IRS lets you add to your cost basis, and how to run the agency's own worksheet to find your gain.

Improvements that raise your home's cost basis reduce the taxable gain you report when you sell, because your gain is your amount realized minus your adjusted basis, not simply your sale price minus what you paid. Not every project qualifies. A new kitchen counts under IRS Publication 523; a paint job on its own does not.
This guide walks through exactly which improvements the IRS lets you add to basis, which costs are repairs that don't count, and how to run the agency's own worksheet to find your number. For every other step in a sale, start with the complete step-by-step guide to selling a house.
The Basis Formula
Your taxable gain is not your sale price. IRS Publication 523's Worksheet 2 builds it in two separate tracks that meet at the end: sale price minus selling expenses equals your amount realized, and your original cost plus qualifying improvements minus basis decreases equals your adjusted basis. Gain or loss is the difference between those two totals.
Tax Topic 703 states the same idea more generally: basis is usually what you paid for the property, and you increase it for items like improvement costs while decreasing it for items like depreciation and casualty-loss insurance reimbursements.
Capital Improvements vs. Repairs
The IRS draws a specific line here. An improvement adds to the home's value, extends its useful life, or adapts it to new uses, and it belongs on your basis. A repair or maintenance item keeps the home in good condition without doing any of that, and it does not.
Painting a room, fixing a leak, and filling a hole or crack are the IRS's own examples of repairs that don't qualify on their own.
There is one exception worth knowing. If that same repair work is done as part of an extensive remodeling or restoration project, the whole job counts as an improvement, painting included.
Improvements That Increase Basis
Publication 523 organizes qualifying improvements into a few categories, plus a handful of purchase-side closing costs that also raise basis.
Additions
- Bedroom or bathroom addition
- Deck, garage, porch, or patio
Systems and equipment
- Heating system or furnace
- Central air conditioning
- Wiring
- Security system
Exterior improvements
- Storm windows or storm doors
- New roof
- New siding
Interior improvements
- Built-in appliances
- Kitchen modernization
- Fireplace
Landscaping, a new driveway, a walkway, and a fence also count, per the same chart. For which of these projects tend to pay for themselves at resale rather than just at tax time, see the renovation projects with the strongest resale returns; the two lists overlap but answer different questions. A kitchen project is a good example of that overlap: see how a minor kitchen refresh compares with a full renovation at resale for the resale side of that same improvement.
A handful of costs from when you bought the home also increase basis:
| Purchase-side cost | What it covers |
|---|---|
| Abstract fees | Title search on the property |
| Legal fees | Title search, sales contract, deed preparation |
| Recording fees | Filing the deed with the county |
| Survey fees | Confirming boundaries |
| Transfer or stamp taxes | Government fee on the transfer |
| Owner's title insurance | Protects your ownership claim |
| Utility installation charges | Bringing utility service to the property |
Source: IRS Publication 523.
Selling Costs That Reduce Gain
Some costs never touch your basis at all. They instead reduce your amount realized, the other half of the gain formula.
- Sales commissions paid to list and sell the home.
- Advertising fees for marketing the listing.
- Legal fees tied to the sale itself.
- Mortgage points or loan charges you pay on the buyer's behalf.
These come off your sale price before your basis ever enters the calculation, per Publication 523.
Depreciation Lowers Basis Too
Basis moves in both directions. A handful of items reduce it, and depreciation is the one long-term owners most often miss.
- Depreciation you took, or were entitled to take, for business or rental use of the home.
- Casualty losses you claimed as a deduction.
- Insurance reimbursements for casualty or theft losses.
- Easement or right-of-way payments you received.
- Energy credits or subsidies that effectively repaid you for an improvement.
The depreciation rule is stricter than it sounds. The basis-adjustment line in Publication 523's own worksheet covers any depreciation you took or were allowed to take for business or rental use of the home, and Tax Topic 703 describes the same decrease as allowable depreciation. A home office or rental period you never depreciated can still lower your basis today.
The Full Basis Worksheet
Publication 523's Worksheet 2 runs in a fixed sequence. Following it in order is the fastest way to avoid missing a step.
| Step | What you do |
|---|---|
| 1 | Start with your sale price |
| 2 | Subtract selling expenses to get your amount realized |
| 3 | Add up your total basis: purchase price plus qualifying improvements and eligible closing costs |
| 4 | Subtract basis decreases (depreciation, insurance reimbursements, and similar items) to get your adjusted basis |
| 5 | Subtract adjusted basis from amount realized for your gain or loss |
Worked Example: Basis to Gain
The numbers below are round, hypothetical figures chosen only to show how the worksheet flows. They are not IRS data, a national average, or a typical sale. Use your own purchase price, improvement costs, and sale price.
| Line item | Hypothetical amount |
|---|---|
| Original purchase price | $300,000 |
| Kitchen remodel (improvement) | $40,000 |
| New roof (improvement) | $15,000 |
| Adjusted basis | $355,000 |
| Hypothetical sale price | $500,000 |
| Selling expenses (commission and legal fees) | $30,000 |
| Amount realized | $470,000 |
| Gain | $115,000 |
In this made-up example, the $55,000 spent on the remodel and roof raised the basis from $300,000 to $355,000, which lowered the gain by that same $55,000. A single owner reporting $115,000 of gain would still fall under the $250,000 Section 121 exclusion described below, but a higher basis is what keeps a gain that size, or a larger one, under that ceiling in the first place.
Records You Need to Keep
Publication 523 carries its own section on what records to keep, for exactly this reason: none of the math above works without documentation. Every line in the worksheet has a paper trail behind it. Your purchase price and eligible closing costs sit on the settlement statement from when you bought. Each qualifying improvement needs its own contract, invoice, or receipt. Your selling expenses come off the closing statement from the sale.
How long to hold those records after the sale depends on your own filing situation, so check the IRS recordkeeping guidance or ask a tax professional rather than guessing. Records you turn out not to need cost nothing to keep. Records you threw out cannot be recreated years later.
Why This Matters Above the Exclusion
None of this matters until your gain is large enough to need it. Under Section 121, an owner who meets the ownership and use test, generally living in the home at least two of the last five years, can exclude up to $250,000 of gain if single or up to $500,000 if married filing jointly, per Tax Topic 701. The joint $500,000 cap applies once both spouses meet the use test and either spouse meets the ownership test.
You cannot claim the exclusion again if you already excluded gain on a different home sale within the prior two years, per the statute itself (26 U.S. Code Section 121).
Basis only changes the outcome for whatever gain isn't covered by that exclusion. For the exclusion's own mechanics and edge cases, see how the $250,000/$500,000 home-sale exclusion works. For the tax rates that apply to gain that isn't excluded, see the full capital gains calculation and tax rates.
If you inherited the home instead of buying it, this basis-building process does not apply the same way. See how an inherited home gets a stepped-up basis instead.
State Income Tax Still Varies
The basis rules above come from the Internal Revenue Code as the IRS applies them in Publication 523, and the exclusion comes from Internal Revenue Code Section 121. Both are federal, and both work the same way no matter which state your home sits in. What varies is whether your state also taxes any gain left over after the federal exclusion, and at what rate.
State treatment is a separate question with a separate answer in each state, and this article does not cover state-by-state figures. Check your state's revenue agency or a local tax professional before assuming any particular treatment.
Once you have a working adjusted-basis number, you can calculate your net proceeds after a home sale to see what you would actually walk away with.
Frequently asked questions
- Which home improvements can I add to my cost basis?
- Improvements that add value, extend useful life, or adapt the home to new uses qualify, including additions like a bedroom or bathroom, new systems like heating or central air, exterior work like a new roof or siding, and interior upgrades like a kitchen remodel or built-in appliances. Landscaping, a new driveway, a walkway, and a fence count too, per IRS Publication 523.
- Does painting or fixing a leak count toward my basis?
- Not on its own. Routine repairs and maintenance that keep the home in good condition without adding value or extending its life do not increase basis, and Publication 523 names painting and fixing a leak as its own examples of repairs. The one exception is when that same work is done as part of an extensive remodeling or restoration project, in which case the whole job counts as an improvement.
- What selling costs lower my taxable gain?
- Sales commissions, advertising fees, legal fees tied to the sale, and any loan charges or points you pay on the buyer's behalf all reduce your amount realized. That is a separate line from basis, but it lowers your reported gain the same way.
- If I had a home office, does that change my basis?
- Yes. Depreciation you took, or were entitled to take, for business or rental use of the home reduces your basis, even if you never actually claimed it on a return. If your rental or business use was significant, a tax professional can help you work through the depreciation side of the sale.
- Do I still need to track basis if my gain is under the exclusion?
- You still should. If your entire gain is covered by the $250,000 or $500,000 exclusion, precise basis records may not change this sale's outcome, but they protect a future sale of this or another home, and they are the only way to confirm the gain is actually covered in the first place.
Sources
- Publication 523, Selling Your Home (For use in preparing 2025 Returns), Internal Revenue Service Official source
- Tax Topic 703, Basis of Assets, Internal Revenue Service Official source
- Tax Topic 701, Sale of Your Home, Internal Revenue Service Official source
- 26 U.S. Code Section 121, Exclusion of gain from sale of principal residence, Cornell Law School, Legal Information Institute Reporting






