How does the IRS define 'primary residence' for tax purposes?

The IRS usually calls your primary residence your “main home.” Simply put, it is the home where you live most of the time. You can own several properties, but the IRS says you can have only one main home at a time.

This matters because some of the biggest tax breaks for homeowners depend on whether a property is your main home. The most important one is the ability to leave a large amount of profit untaxed when you sell your house. Below, we explain how the IRS decides which home is your main home, why it matters, and how it differs from the way mortgage lenders define a primary residence.

What Counts as a “Home” to the IRS?

The IRS defines a home broadly. Your main home can be a:

  • Single-family house
  • Condominium or townhouse
  • Cooperative (co-op) apartment
  • Mobile home or manufactured home
  • Houseboat

A boat or RV can even count if it has sleeping, cooking, and toilet facilities. The type of structure matters less than whether you actually live there as your regular home.

The “Facts and Circumstances” Test

If you live in only one place, the answer is easy. But many people split time between two or more homes. In that case, the IRS looks at all the facts and circumstances to decide which one is your main home.

The most important factor is where you spend the most time during the year. Federal tax rules also list other clues the IRS may consider:

  1. Where you work
  2. Where your family lives
  3. The address on your federal and state tax returns
  4. The address on your driver’s license
  5. Where your car is registered
  6. Where you are registered to vote
  7. Your mailing address for bills and letters
  8. Where you do your banking
  9. Where your religious groups or clubs are located

No single item decides the question. However, the more of these clues point to one property, the stronger your case that it is your main home. For example, if you spend eight months a year in Ohio, work there, vote there, and have an Ohio driver’s license, your Ohio house is likely your main home, even if you also own a beach condo in Florida.

Why the Definition Matters: The Home Sale Exclusion

The biggest reason to understand this definition is the capital gains exclusion under Section 121 of the tax code. When you sell your main home for a profit, you may be able to exclude part or all of that gain from your income.

The exclusion limits are:

  • Up to $250,000 of gain for single filers
  • Up to $500,000 of gain for married couples filing jointly

To qualify for the full exclusion, you generally must pass two tests:

  • Ownership test: You owned the home for at least two years during the five years before the sale.
  • Use test: You lived in the home as your main home for at least two years during that same five-year period.

The two years do not need to be in a row. You could live in the home for one year, move out, and return later, as long as you reach a total of 24 months within the five-year window. You also generally cannot have used this exclusion on another home sale in the two years before the current sale.

For married couples to get the full $500,000 exclusion, either spouse can meet the ownership test, but both spouses must meet the use test.

Partial Exclusions and Special Cases

Life does not always follow a neat two-year schedule. If you must sell early, you may still qualify for a partial exclusion if the main reason for the sale was:

  • A job change that meets the IRS distance rules
  • Health reasons
  • Certain unforeseen events, such as divorce, death, job loss, or multiple births from one pregnancy

There are also special rules for some groups. Members of the military, the Foreign Service, and the intelligence community on qualified official extended duty can choose to suspend the five-year test period for up to 10 years. This helps people who are ordered to move away from a home they own.

Keep in mind that the exclusion does not cover everything. If you rented out the home or used part of it for business, you may owe tax on depreciation you claimed after May 6, 1997. Also, periods when the home was not your main home (called “nonqualified use”) after 2008 can reduce your exclusion in some cases.

Mortgage Interest and Your Main Home

The mortgage interest deduction works a little differently. It applies to a “qualified residence,” which includes your main home and one second home. So a vacation home can qualify for this deduction even though it cannot be your main home for the sale exclusion.

For mortgage debt taken out after December 15, 2017, interest is generally deductible on up to $750,000 of home purchase debt (or $375,000 if married filing separately). Older loans may fall under a higher $1 million limit. These limits came from the Tax Cuts and Jobs Act, starting with tax year 2018, and the One Big Beautiful Bill Act, signed in July 2025, made them permanent. It’s still smart to confirm the limits that apply to your tax year with a tax professional. You only benefit from this deduction if you itemize rather than take the standard deduction.

IRS Rules vs. Lender Rules

Here’s something many buyers don’t realize: the IRS definition and your mortgage lender’s definition of a primary residence are not the same.

When you apply for a mortgage, lenders usually require that you plan to:

  • Move into the home within a set time after closing, often 60 days
  • Live there for at least one year

These rules apply to conventional loans backed by Fannie Mae and Freddie Mac, as well as FHA, VA, and USDA loans. Primary residence loans often come with lower interest rates and smaller down payments than loans for second homes or investment properties. Individual lenders can also add stricter rules, called overlays, on top of program minimums.

Falsely claiming a home as your primary residence to get a better loan is called occupancy fraud. It is a serious federal offense. Always be honest about how you plan to use a property.

This is one area where a mortgage broker can help. A broker works with many lenders, understands their different occupancy rules and overlays, and can match you with a loan that fits your real plans, whether you’re buying a main home, a second home, or a rental property.

State and Local Rules Are Separate

Your state or county may have its own definition of a primary residence for property tax homestead exemptions. These rules vary widely. Some require you to file an application, and many require that the home be your legal residence as of a certain date. Meeting the IRS definition does not automatically qualify you for a local homestead exemption, so check with your county assessor’s office.

Tips to Support Your Main Home Status

If you own more than one home, keep records that show where you truly live:

  • Use your main home address on tax returns, your driver’s license, and voter registration
  • Have bills and bank statements mailed there
  • Keep track of the days you spend at each property
  • Save closing papers and records of improvements

Good records can make a big difference if the IRS ever asks questions.

The Bottom Line

The IRS defines your primary residence, or main home, as the place where you live most of the time, based on all the facts of your life. You can have only one at a time. This definition controls valuable benefits like the home sale exclusion, so it pays to understand it. Because tax rules can change and every situation is different, talk with a qualified tax professional before selling a home or making big decisions. When it’s time to finance your next home, a mortgage broker can help you understand lender occupancy rules and find the right loan.

Related mortgage answers

Helpful guides

Have a question about your situation?

Ask Morty, our free mortgage assistant, and get an answer for your numbers in plain English.

This answer is general information, not financial, tax or legal advice. Any rates shown are illustrative averages or examples, not a quote, and real rates change daily. Talk with a licensed mortgage professional about your situation.

More mortgage answers