Do You Pay Tax When You Sell Your House?
The fear that a house sale will produce a tax bill stops people selling houses they would be better off without. For most sellers it is misplaced: federal law excludes a large slice of the gain on a principal residence, and an inherited house is usually valued afresh at the date of death, which often leaves almost nothing to tax. This article walks the federal rule as written — including three provisions aimed squarely at people in exactly the situations we see most.
Two plain cardboard moving boxes stacked on bare hardwood floor in an empty sunlit room with a shaft of afternoon light across them
Most people selling a home they have lived in owe nothing on the gain. Federal law excludes up to $250,000, or $500,000 for many married couples filing jointly, where you owned and used the place as your principal residence for two years out of the last five. Inherited houses are handled differently and usually better: the value resets to the fair market value at the date of death, so a house sold soon after often shows barely any gain. This article covers the federal rule only — see the note on state tax below.
The basic test, in the words of the statute
Gross income shall not include gain from the sale or exchange of property if, during the 5-year period ending on the date of the sale or exchange, such property has been owned and used by the taxpayer as the taxpayer's principal residence for periods aggregating 2 years or more.
Three words in there do a lot of work, and each one helps sellers more than people expect.
- "5-year period ending on the date of the sale" — the window looks backwards from the sale, so a house you moved out of a while ago can still qualify.
- "owned and used" — both, but not necessarily at the same time in every case, and the joint-return rule below splits them apart deliberately.
- "periods aggregating 2 years" — aggregating. The two years do not have to be continuous. Twelve months, a gap, and another twelve months counts.
The ceiling is $250,000 of excluded gain. And note that this is gain, not sale price — the thing being measured is what you sold it for, less what the law treats as your basis in it, not the cheque at closing.
Trying to work out what you would actually walk away with?
Tax is only one line in that sum. We will give you a straight cash figure for the house so you have a real number to work from, with no obligation and no pressure.
When the number is $500,000
For a married couple filing jointly, the limit doubles — but only on a specific combination, and the statute deliberately treats ownership and use differently.
The $500,000 conditions under § 121(b)(2)(A)
| Requirement | Who has to satisfy it |
|---|---|
| Ownership — owned for the 2-of-5 period | Either spouse |
| Use — used it as principal residence for the 2-of-5 period | Both spouses |
| Not disqualified by a prior sale in the last 2 years | Neither spouse may be disqualified |
If a couple does not meet that combination, the limit is not simply lost. Under (b)(2)(B) it becomes the sum of the limits each spouse would have had if unmarried — and for that calculation, each spouse is treated as owning the property during the period that either spouse owned it.
The asymmetry is the useful part. Only one of you needs to have owned it. Both of you need to have lived in it. That covers the common case where a house was in one spouse's name before the marriage.
Three provisions written for situations we see constantly
Most articles on this subject stop at the two-year test. The provisions below are the ones that actually decide the answer for the people who call us, and they are rarely mentioned anywhere.
If your spouse has died
The $500,000 limit does not vanish with the marriage. An unmarried individual whose spouse is deceased may still apply it, provided the sale occurs not later than two years after the date of death and the joint-return conditions were satisfied immediately before that death.
Separately — and this is a different provision doing a different job — a surviving unmarried individual counts the period the deceased spouse owned and used the property before death as their own. So a widow or widower who moved in relatively recently may still clear the two-year test on their late spouse's history.
We are careful on this site never to manufacture urgency, so please read this as the statute rather than as a sales line: the doubled limit for a surviving spouse is expressly tied to a sale occurring not later than two years after the date of death. It is one of the very few real clocks in this area. If it might apply to you, it is worth raising with a tax professional early rather than discovering the window closed.
If you moved into care
This is the provision we most wish more families knew about, because the situation is so common and the fear of losing the exclusion is so often what delays a decision.
…then the taxpayer shall be treated as using such property as the taxpayer's principal residence during any time during such 5-year period in which the taxpayer owns the property and resides in any facility (including a nursing home) licensed by a State or political subdivision to care for an individual in the taxpayer's condition.
The conditions are that the taxpayer becomes physically or mentally incapable of self-care, and owned and used the home as a principal residence for periods aggregating at least one year within the five-year period. Meet those, and time spent in a licensed facility counts as time living in the house. The statute names nursing homes explicitly.
The practical effect is that a move into care does not quietly run down your clock while the house sits empty. We have written separately about the wider question of selling a house after a move into nursing care, including the Medicaid side of it.

If you inherited it
Here the principal residence exclusion usually does not help, because you never lived there. People hear that and assume the worst. The rule that actually governs their situation is a different and much kinder one.
…the basis of property in the hands of a person acquiring the property from a decedent … shall … be the fair market value of the property at the date of the decedent's death.
Your starting point is not what your parents paid for the house in 1974. It is what it was worth on the day they died. Gain is measured from that figure. A house sold within a reasonable period of the death has usually not moved far from that value, so there is often very little gain to tax at all.
If the basis is the value at the date of death, then establishing that value properly is worth doing rather than guessing at later. That is a question for the estate's professional advisers, but it is a reason to get a defensible figure early — while the evidence of what the house was worth on that date is still easy to assemble.
Where it can still go wrong: the former rental
If the house was ever a rental, two provisions pull in the other direction, and they are the most likely source of a real bill.
- Nonqualified use. Gain allocated to periods of nonqualified use is not excluded. Broadly that means time after 1 January 2009 during which the property was not the principal residence of you or your spouse. The allocation is a ratio of nonqualified periods to the whole period you owned it.
- Depreciation. The exclusion does not apply to gain up to the amount of depreciation adjustments attributable to periods after 6 May 1997. Depreciation you claimed as a landlord comes back into the calculation.
There are carve-outs inside the nonqualified use rule that help: any part of the five-year period after the last date you used it as your principal residence does not count as nonqualified use, and nor do temporary absences of up to two years for employment, health or unforeseen circumstances. But if you were a landlord for years before selling, this is the section to take to a professional rather than work out from an article.
Sitting on a former rental you are tired of?
The tax position is worth checking, and so is the number. We buy tenanted and formerly tenanted properties in Greater Cleveland, and we can close as fast as 7 days when the timing matters.
Everything above is federal law, read from the United States Code. We could not verify Ohio's current state income tax treatment while writing this — the Ohio Revised Code site was unreachable — so rather than repeat what other sites say about it, we have left the state question out entirely. That is a real gap and we would rather name it than paper over it. Ask a tax professional about the Ohio side before you rely on any figure.
Where this leaves your options
Tax rarely decides what to do with a house, but it does change the arithmetic. The six routes, stated plainly:
- Keep it. No sale, no gain, no question. If it is empty, weigh the carrying costs — and if a two-year clock applies to you, note where it runs to.
- Repair, then list. Money spent improving a property generally affects the gain calculation, which is a reason to keep the receipts whatever you decide.
- Rent it out. Understand first what it does to the exclusion. This is the route most likely to convert a tax-free sale into a taxable one.
- List it with an agent. Expect 5.5%–6% commission plus closing costs and a market timeline. Selling costs generally affect the gain figure too.
- Sell it yourself. Saves the listing-side commission; the tax position is identical either way.
- Sell direct to a cash buyer. No repairs, no cleanout, and a close as fast as 7 days — typically around 21 days. Useful where a date matters, which for once it genuinely might.
We are not going to tell you a cash sale nets more, because on a clean house with time to spare it usually does not. Work out the net for each route — price, minus selling costs, minus repairs, minus any tax, minus every month of carrying the house — and compare those four numbers. For most people reading this, the tax line turns out to be zero, and the decision comes down to the same things it always does: time, condition and certainty.
The exact wording of the two provisions most likely to apply to you
In the case of a sale or exchange of property by an unmarried individual whose spouse is deceased on the date of such sale, paragraph (1) shall be applied by substituting "$500,000" for "$250,000" if such sale occurs not later than 2 years after the date of death of such spouse and the requirements of paragraph (2)(A) were met immediately before such date of death.
This subsection shall apply to any sale or exchange if— (A) subsection (a) would not (but for this subsection) apply to such sale or exchange by reason of— (i) a failure to meet the ownership and use requirements of subsection (a) … and (B) such sale or exchange is by reason of a change in place of employment, health, or, to the extent provided in regulations, unforeseen circumstances.
This article summarises 26 U.S.C. §§ 121 and 1014 as we read them and is provided for general information. It is not tax advice, it does not cover Ohio state tax at all, and it does not address rates, reporting or the regulations that sit underneath these sections. Tax outcomes turn on facts a summary cannot know. Talk to a CPA or tax attorney about your own situation before making a decision that depends on any of this.
Want the property number to go with the tax question?
We can tell you what the house is worth to us today, so your accountant has something real to work with. Call or text 216-899-CASH — and if the honest answer is that you should list it, we will say so.
Frequently asked questions
Up to $250,000. Federal law excludes gain from the sale of property that, during the five-year period ending on the date of sale, you owned and used as your principal residence for periods aggregating two years or more. The two years do not have to be continuous — the statute says "aggregating".
On a joint return, where either spouse meets the ownership requirement, both spouses meet the use requirement, and neither is disqualified by having used the exclusion on another sale in the previous two years. If a couple does not meet that combination, the limit becomes the sum of what each would have been entitled to separately.
Often yes, if you act within a window. An unmarried individual whose spouse has died may still apply the $500,000 limit if the sale occurs not later than two years after the date of death, and the joint-return conditions were met immediately before that death. Separately, you also count the period your deceased spouse owned and used the home.
There is a specific provision for this. A taxpayer who becomes physically or mentally incapable of self-care, and who owned and used the home as a principal residence for periods aggregating at least one year within the five-year period, is treated as still using it as a principal residence for any time in that period spent in a facility — the statute expressly says "including a nursing home" — licensed by a state or political subdivision to care for someone in that condition.
Almost certainly not. You will not qualify for the principal residence exclusion if you never lived there, but the basis of property acquired from someone who has died is generally its fair market value at the date of death. Gain is measured from that stepped-up figure, so a house sold reasonably soon after a death often shows very little gain.
A partial exclusion may be available. Where the ownership and use tests are not met, and the sale is by reason of a change in place of employment, health, or — to the extent provided in regulations — unforeseen circumstances, the dollar limit is prorated according to the qualifying period you did have, over two years.
It can, in two ways. Gain allocated to periods of "nonqualified use" — broadly, time after 1 January 2009 when it was not your principal residence — is not excluded. And the exclusion does not cover gain up to the amount of depreciation adjustments attributable to periods after 6 May 1997. A former rental is the situation most likely to produce a real bill.
No, and we are not going to guess. Everything here is the federal rule, read from the United States Code. State treatment is a separate question and we could not verify Ohio's current provisions while writing this, so we have deliberately left it out rather than assert something unchecked. Ask a tax professional about the state side.
Find out what we would pay
Free, no obligation, and no pressure. If our number does not work for you, that is a perfectly fine answer.
Keep reading

Divorce & Life Changes
Selling a House After a Family Member Moves Into Assisted Living or a Nursing Home
Putting the house in joint names may not do what your family thinks. Ohio defines "estate" broadly enough to reach it — here is what the statute actually says.

Why Sell As-Is
Inherited a Property in Cleveland? Selling a Probate or Inherited Home
How probate works in Ohio, what you can and cannot do before it completes, and how to handle a house full of a lifetime of belongings when you live somewhere else.

Liens, Taxes & Title
There Is a Judgment Lien on Your Ohio House. Can You Still Sell?
Yes — a lien is a claim on the proceeds, not a padlock on the deed. But the "judgment liens expire after five years" you have read is wrong, and it matters.