What Is Considered a Home? IRS Tests and Legal Protections

For federal tax purposes, a home is any property that has sleeping, cooking, and toilet facilities and that you use as a residence. That functional test is what the IRS applies, and it is broader than most people expect: a traditional house qualifies, but so does a condominium, a cooperative apartment, a mobile home, and a houseboat.1Internal Revenue Service. Publication 936 (2025), Home Mortgage Interest Deduction Whether something counts as a home matters because the classification controls access to the capital gains exclusion when you sell, the mortgage interest deduction, homestead protections in bankruptcy, and the Fourth Amendment’s warrant requirement.

The Three-Part Test

The IRS looks at function, not architecture. A structure is a home if it contains all three of the following: a place to sleep, a place to cook, and a toilet.1Internal Revenue Service. Publication 936 (2025), Home Mortgage Interest Deduction Miss any one of them and the property fails the test, regardless of size, cost, or how it looks.

A storage unit you occasionally sleep in isn’t a home because it lacks cooking and toilet facilities. A workshop with a bathroom and a hot plate but no bed doesn’t qualify either. A fully equipped RV that a family lives in year-round does qualify. So does a houseboat with a galley and a head.

The second half of the definition is the “use as a residence” piece. A structure that meets the facilities test but sits empty isn’t functioning as your home. You have to actually live in it, at least some of the time, for the tax code to treat it as yours.

Structures That Qualify Beyond a Traditional House

Publication 523 confirms that single-family homes, condominiums, cooperative apartments, mobile homes, and houseboats can all serve as a main home for purposes of the capital gains exclusion.2Internal Revenue Service. Publication 523 (2025), Selling Your Home The tax benefits available to a suburban colonial are the same ones available to a houseboat with the same three facilities.

Condominiums

A condominium owner holds title to the interior of their unit and shares ownership of the common areas like hallways, roofs, and parking. A master deed defines the boundaries of each unit and establishes it as its own piece of real estate. Each unit is separately assessed for property tax and can carry its own mortgage.

Cooperative Apartments

Co-ops work through a different legal structure. A corporation owns the whole building and you buy shares in the corporation, which come with a proprietary lease for a specific apartment. You are technically a shareholder-tenant rather than a real property owner. Even so, the IRS lets you deduct your share of the co-op’s mortgage interest and property taxes on your personal return, as though you owned the unit outright.

Mobile and Manufactured Homes

A mobile home qualifies as a home under the same three-part test. Manufactured homes built for long-term occupancy must comply with federal construction standards under 24 CFR Part 3280, administered by HUD, and a red certification label on the exterior confirms the unit was built to those standards.3eCFR. 24 CFR Part 3280 – Manufactured Home Construction and Safety Standards Units without that label may face restrictions on placement, financing, and insurance.

Houseboats and RVs

A houseboat is a home if it has the three required facilities and you use it as a residence. The IRS doesn’t require a foundation, land, or a fixed address. The same logic covers an RV lived in full time.

Tiny Homes

Tiny homes sit in a gray area. The International Residential Code has an Appendix Q covering tiny houses of 400 square feet or less, but local jurisdictions decide whether to adopt it, and many haven’t. Where adopted, a tiny home on a permanent foundation with sleeping, cooking, and bathroom facilities generally qualifies as a dwelling. Tiny homes on wheels are usually classified as RVs, which limits where you can park them full time and often disqualifies them from traditional mortgages. Local zoning ordinances vary on whether a tiny home can serve as a primary residence at all.

Main Home, Second Home, and Tax Home

Owning more than one qualifying property raises a separate question: which one is your home for a given tax rule? The IRS uses three overlapping concepts, and they can point to different addresses.

Main Home

Your main home, also called your principal residence, is the one you live in most of the time. When more than one property qualifies, the IRS applies a facts-and-circumstances test.2Internal Revenue Service. Publication 523 (2025), Selling Your Home Time spent at each property is the biggest factor, but the analysis also considers the address on your driver’s license, voter registration, and tax returns, along with where you work, bank, worship, and have family. No one factor is decisive; the more of them that point to one property, the stronger the claim.

Documentation is what defends the claim in an audit. Utility bills, bank statements, and a log of nights spent at each address all help, especially if your time is split closely between two places.

Second Home

A second home is a qualifying home that isn’t your main home. For the mortgage interest deduction, you can designate one additional residence each tax year alongside your main home.1Internal Revenue Service. Publication 936 (2025), Home Mortgage Interest Deduction If you rent the second home to others at any point, you also have to meet a personal-use test: use it yourself for more than 14 days during the year or more than 10% of the days it’s rented out, whichever is greater.4Office of the Law Revision Counsel. 26 USC 280A – Disallowance of Certain Expenses in Connection With Business Use of Home If you don’t rent it at all, it automatically qualifies.5Office of the Law Revision Counsel. 26 USC 163 – Interest

Tax Home

Your tax home is a separate concept and applies mainly if you work abroad. It is the general area of your main place of business or employment, not necessarily where your family lives.6Internal Revenue Service. Foreign Earned Income Exclusion – Tax Home in Foreign Country To claim the foreign earned income exclusion, your tax home has to be in a foreign country for the entire qualifying period. An overseas assignment of a year or less is treated as temporary, so your tax home stays in the United States and you don’t qualify.

What the Classification Unlocks

Meeting the definition of a home, and meeting the narrower definition of your main home, opens the door to benefits and protections that aren’t available for other property.

Capital Gains Exclusion When You Sell

Under Section 121, selling your main home at a profit lets you exclude up to $250,000 of gain from taxable income, or up to $500,000 if you file jointly.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For joint filers, both spouses must meet the use requirement, though only one needs to meet the ownership requirement. To qualify for the full exclusion, you must have owned the property and used it as your main home for at least two of the five years before the sale. The two years don’t have to be consecutive.

A partial exclusion is available if you sell early because of a change in employment, a health issue, or an unforeseen circumstance recognized by the IRS, such as destruction or condemnation of the home, a casualty loss, death or divorce of a resident, job loss that triggers unemployment eligibility, or a multiple birth.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The partial amount is prorated based on how much of the two-year period you completed.2Internal Revenue Service. Publication 523 (2025), Selling Your Home

Mortgage Interest Deduction

Interest on a mortgage used to buy, build, or substantially improve a qualified home is deductible.5Office of the Law Revision Counsel. 26 USC 163 – Interest “Qualified home” covers your main home plus one additional residence of your choice per year, and both must meet the three-part facilities test.1Internal Revenue Service. Publication 936 (2025), Home Mortgage Interest Deduction Under the Tax Cuts and Jobs Act, deductible mortgage debt is capped at $750,000 for loans taken out after December 15, 2017 ($375,000 for married taxpayers filing separately). Older loans are grandfathered under the previous $1 million limit.

Property Tax and Bankruptcy Homestead Exemptions

Most states offer a homestead exemption that reduces the property tax on your principal residence. It applies only to the home you actually live in, not to investment or vacation properties. The size of the benefit varies widely by state.

Bankruptcy has its own homestead protection. The federal exemption shields up to $31,575 in home equity from creditors (as adjusted effective April 1, 2025). Most states offer their own version, and many are more generous. A separate cap of $214,000 may apply if you acquired the home within 1,215 days before filing, regardless of which exemption set you use.8Office of the Law Revision Counsel. 11 USC 522 – Exemptions

Fourth Amendment Protection

The Fourth Amendment protects “the right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures.”9Library of Congress. U.S. Constitution – Fourth Amendment In practice, that means law enforcement generally needs a warrant to enter and search your home. The protection extends past your front door to the “curtilage,” the area immediately around the dwelling. Courts assess curtilage by proximity to the home, whether it’s enclosed, what it’s used for, and what steps you’ve taken to keep it private. A fenced backyard with patio furniture is almost certainly curtilage; an open field at the far edge of your land probably isn’t.

How a Property Can Lose Its Home Status

Being a home isn’t a permanent label. If you stop living in the property and convert it entirely to rental use, it stops being your principal residence. The Section 121 clock keeps running: you need two of the last five years of use as your main home, so letting too much time pass after moving out can cost you the exclusion.

The facilities test can also fail retroactively. A houseboat or mobile home that loses its cooking or toilet facilities through disrepair no longer meets the IRS definition of a home. Local code enforcement can revoke occupancy status if a dwelling fails safety inspections. Keeping the property habitable and keeping records of your residency are what protect every benefit tied to calling it your home.