Capital Gains on Property Sales: A Complete Beginner’s Guide
Sell a property for more than it cost and the profit has a name, a set of rates and, for most home sellers, a very large exemption standing in front of it. The tax never falls on the price. It falls on the gain — and the gain is built from two numbers that sellers routinely get wrong: what the property actually brought in after selling costs, and what counts as its cost in the first place. Get those two numbers right and the rest of the system, from holding periods to state taxes, falls into a clear order.
The Gain Itself: Price Minus Basis, Minus the Cost of Selling
The starting formula is simple to state and easy to misapply. Tax falls on the gain: the amount realised from the sale, minus the adjusted basis of the property. Amount realised means the sale price reduced by the costs of selling it — agent commissions, closing costs charged to the seller and similar expenses of the sale itself. Those costs shrink the taxable gain directly, dollar for dollar, which makes them worth gathering as carefully as any receipt in the file.
Put a plain figure on it. On a $500,000 sale with a 6% commission, the commission alone is $30,000, and with other selling costs added the amount realised drops further still. That $30,000-plus never reaches the seller, and the tax system recognises that: it is $30,000-plus of gain that is never taxed. Sellers who estimate their bill from the headline price alone almost always overestimate it, sometimes by enough to change whether they sell at all.
Everything else follows from understanding the capital gain, the number being taxed as a net figure rather than a sticker figure. The price is what the buyer paid. The gain is what is left after the cost of the property and the cost of selling it are both taken away. Only that remainder meets a tax rate.
Basis: The Number That Decides Everything
Basis begins with the purchase price, then grows. Closing costs from the original purchase that were tied to acquiring the property add to it. So do capital improvements — work that adds value, extends the life of the property or adapts it to a new use. A documented $40,000 kitchen remodel counts. A new roof counts. An addition counts. Routine repairs do not: fixing a leak, repainting a room or replacing a like-for-like broken part keeps the property as it was rather than improving it, and the tax rules treat that maintenance as a running cost, not a basis increase.
Records are the whole game here. An improvement only raises basis if it can be shown — the invoice, the contract, the payment trail. A $40,000 remodel with paperwork is $40,000 of gain that will never be taxed. The same remodel paid in cash with nothing kept is an argument waiting to be lost. Sellers routinely hold decades-old files for exactly this reason, and buyers who plan to improve a home should start the file on the day they move in rather than the month they decide to sell.
Now the full worked example, with every figure in the open. A home is bought for $300,000. A documented $40,000 kitchen remodel is added during ownership. Years later the home sells for $520,000, with $32,000 of selling costs. The adjusted basis is $300,000 plus $40,000, which is $340,000. The net sale amount is $520,000 minus $32,000, which is $488,000. The gain is $488,000 minus $340,000 — $148,000. Three subtractions and one addition produce the only number the rates below will ever touch.
The Rate Stack: Holding Period, Federal Bands, the Extra Tax and the State Layer
How long the property was held sets the first fork. A gain on a property held for a year or less is short-term, and it is taxed as ordinary income at the seller’s marginal rate — up to 37% at the federal level for the highest earners. A gain on a property held for more than a year is long-term, and it meets the preferential federal rates of 0%, 15% or 20%, applied by income. The gap between those two treatments is why the calendar matters so much on investment property: crossing the one-year line can change the rate on the same gain by a wide margin.
High earners face one more federal layer. A net investment income tax of 3.8% can apply on top of the long-term rate for sellers above the relevant income thresholds. It does not hit most home sellers, particularly those sheltered by the exclusion covered next, but on a large investment-property gain it is a real addition and belongs in any estimate from the start rather than as a surprise at filing.
Then comes the state layer, and it varies more than any other part of the calculation. Some states take nothing at all on the gain: Texas and Florida are the clean examples, with no state income tax reaching the sale. At the other end sits California, where gains are taxed as ordinary income and the top rate reaches 13.3%. Two identical sales, with identical gains, can therefore produce state bills thousands of miles apart. A warning belongs here too: some states that look tax-free at a glance are not. Washington, often listed casually among no-tax states, has adopted its own capital-gains tax aimed at large gains, so it is not a zero-tax example. For the full federal picture, the reference point is capital gains tax in the United States, the rules in full — worth reading before relying on any summary, including this one.
The Primary-Residence Exclusion: Section 121
For most people selling the home they live in, one rule decides the outcome before any rate is reached. Section 121 of the tax code lets a qualifying seller exclude $250,000 of gain from tax. For a married couple filing jointly, the exclusion doubles to $500,000. The conditions are about ownership and use: the seller must have owned the home, and used it as a main home, for at least 2 of the 5 years before the sale. Those two years do not need to be consecutive, and the ownership and use periods do not need to be the same two years, which gives the rule more flexibility than its short statement suggests.
Two plain illustrations show its reach. A single seller buys at $300,000 and sells at $550,000 after living in the home for three years. The gain is $250,000, and the whole of it fits inside the single exclusion — no federal tax on the sale. A married couple with a $450,000 gain from their main home fits inside their $500,000 exclusion in the same way. This is why most home sales in the United States produce no federal capital gains bill at all: the gain on a typical main home, held for a typical period, rarely clears half a million dollars.
Where a forced move — a job relocation, a health problem or a divorce — cuts the two years short, a partial exclusion prorates to the fraction completed. The exclusion can be used again on a later sale, but not more than once every two years.
When the Exclusion Does Not Apply: Rentals, Second Homes and Flips
Rental property plays by different rules, because no Section 121 exclusion shelters its gain in the ordinary case. The full gain is taxable at long-term or short-term rates by holding period — and one slice of it is carved out for special treatment. During the rental years the owner claimed, or was entitled to claim, depreciation against rental income. On sale, the portion of the gain equal to that depreciation is recaptured, and depreciation recapture is taxed at up to 25% at the federal level. Owners who never claimed depreciation are not let off: recapture generally applies to depreciation that was claimable, not only to what was actually claimed, which is one of the most unpleasant surprises in rental-property sales and a strong reason to model the sale before listing.
Second homes and vacation properties get no exclusion either. Their gains are taxed in full under the rate stack, with the holding period doing the only real work. Flips sit at the harshest end: a property bought, improved and sold within a year produces short-term gain taxed as ordinary income, which is why quick-turnaround margins need to be wide to survive their own tax bill.
One common hope needs a plain answer. Buying another house does not erase or defer the tax on a home you lived in — there is no rollover of that kind for a residence. The deferral tool people are thinking of is the like-kind exchange, and it applies to investment property only, under strict deadlines for identifying and completing the replacement purchase. It is a legitimate and powerful route for landlords changing properties. It does nothing for the sale of a home you occupy.
The Legal Levers That Remain
Within the rules, a few levers genuinely move the bill. Timing is the first: where a sale can sensibly fall either side of a tax-year boundary or a holding-period line, the choice of date can change the rate band or split income between years. Record-keeping is the second, and it is unglamorous — improvement files kept for decades raise basis at exactly the moment it matters, and they cost nothing but a folder. Using the exclusion on schedule is the third: a seller close to completing two years of use will usually gain far more by waiting to qualify than by selling a few months early into a fully taxable gain.
The proceeds themselves point forward as well. For most home sellers the after-tax gain becomes the deposit on the next purchase, which makes the tax estimate part of the buying budget rather than an afterthought. Planning that next step starts with how to save for a house down payment without wasting money, worked from the amount actually kept after tax rather than the headline gain.
None of the above is tax advice for any individual sale, and it is not a substitute for it. Property sales mix federal rates, state rules, depreciation history and personal circumstances in ways no general map can settle. Tax situations are individual, and a CPA is cheap next to a five-figure surprise — an hour of professional review before listing, with your basis file on the table, is the last step of selling well rather than an optional extra.
