GuidesCash offer5 of 6
Taxes when you sell, in plain terms
Most people who sell the house they live in owe no federal tax on the gain, up to a limit. Here is the shape of the rule, what basis means, and how inherited houses differ. The outline, without the advice.
01The exclusion, roughly
Under current federal rules, if the house was your main home for at least 2 of the 5 years before the sale, you can generally exclude up to $250,000 of gain from income, or up to $500,000 if you are married and file jointly. The two years do not need to be continuous. You can use the exclusion more than once in your life, but generally not more than once every two years.
Gain is not the sale price. It is the sale price minus your basis minus selling costs. For most people who have owned a house for a decade or less, the gain sits comfortably under the limit, and the sale does not add to their tax bill. For long-time owners in markets that have run up, it can exceed it, and the amount above the exclusion is taxed as a capital gain.
02Basis and improvements
Basis starts at what you paid for the house, including most closing costs. It goes up with capital improvements: a new roof, an addition, a replaced furnace, a finished basement. Repairs that keep the house in the same condition, like painting or fixing a leak, generally do not count. The higher your basis, the lower your gain, so receipts for the big projects are worth keeping for as long as you own the house.
Money taken out of the house along the way does not change the math. A home equity line or a home equity investment is paid off at closing from the sale price, but neither changes your basis or your gain. The payoff is just where some of the proceeds go.
03Inherited houses
A house you inherit generally gets a stepped-up basis: its value on the date the previous owner died, not what they paid for it decades ago. If you sell soon after at close to that value, there is often little or no gain to tax, even with a cash offer at a discount. The two-of-five-years residence test does not apply to the exclusion in the same way, because the gain itself is usually small. The rules differ for property held in certain trusts and in community property states.
04Where it gets more complicated
- A rental or second home, where the exclusion generally does not apply and depreciation taken while renting comes back into the gain.
- A house used partly for business, or rented for part of the ownership period.
- Selling before two years because of a job change, health, or certain other events, where a partial exclusion may apply.
- State taxes, which follow their own rules and may apply where federal tax does not.
- A short sale or foreclosure, where forgiven mortgage debt can be treated as income in some years and not in others.