How Long Can I Rent My Primary Residence: Mortgage and Tax Rules

No federal law caps how long you can rent your primary residence, but three timelines decide what it costs you. For roughly the first 12 months after closing, your mortgage requires you to live there. After that, you can rent freely, but a tax clock starts: to keep the capital gains exclusion of up to $250,000 (or $500,000 on a joint return) when you sell, you need to have lived in the home for at least two of the five years before the sale.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Rent it out for more than three years without moving back, and the exclusion disappears. A separate rule sits alongside these: if you rent for 14 days or fewer in the year, the income is not taxable at all.

The First 12 Months: Your Mortgage Comes First

Most residential mortgages include an occupancy clause. The specific window depends on the loan.

  • FHA loans require you to move in within 60 days of signing and keep the home as your primary residence for at least one year.2U.S. Department of Housing and Urban Development. HUD Handbook 4000.1
  • Conventional loans follow Fannie Mae’s principal-residence occupancy rules, and lenders typically enforce a 12-month minimum.3Fannie Mae. Selling Guide – Occupancy Types
  • VA loans usually require a signed certification of intent to occupy for at least 12 months, with flexibility for legitimate reasons like a job relocation or permanent change of station.

If you rent before the occupancy period ends without telling your lender, the loan can be classified as in default. Lenders can invoke a due-on-sale or acceleration clause and demand full repayment. Where the borrower never intended to live there, lenders or federal agencies may pursue fraud charges. Call your lender before you list the property. Relocations and family changes come up constantly, and most lenders will work with you if you’ve already lived there for a stretch and have a clear reason.

Renting for 14 Days or Fewer

If you rent the home for fewer than 15 days in a calendar year, you don’t report the income at all. Federal law treats the rental as if it didn’t happen: the income isn’t taxable, and rental expenses for those days aren’t deductible.4Office of the Law Revision Counsel. 26 USC 280A – Disallowance of Certain Expenses in Connection With Business Use of Home, Rental of Vacation Homes, Etc. The home keeps its full primary-residence status for tax purposes.

This works well for big local events or a holiday week. You can collect several thousand dollars over two weeks and owe nothing extra.5Internal Revenue Service. Renting Residential and Vacation Property Stay at or below 14 days of actual rental use per year. Hit day 15 and every day becomes reportable.

The Three-Year Capital Gains Deadline

This is where most homeowners miscalculate. Under Section 121 of the tax code, you can exclude up to $250,000 of gain when you sell your primary residence, or $500,000 on a joint return. To qualify, you must have owned and lived in the home as your principal residence for at least two years during the five-year period ending on the sale date. The two years don’t need to be consecutive.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

The math creates a hard deadline. Once you move out and start renting, you have three years to sell and still meet the two-of-five test. Wait longer, and the five-year window slides past your period of occupancy, disqualifying you entirely.

You can also only use the exclusion once every two years. If you sold another home and claimed the exclusion within the past two years, you’re ineligible on this one regardless of how long you lived there.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

Nonqualified Use Can Shrink the Exclusion

Even if you sell within the three-year window, you may not get the full exclusion. Any period after 2008 when the home wasn’t your primary residence counts as “nonqualified use,” and the portion of gain allocated to that period cannot be excluded.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

The IRS calculates it by dividing your total nonqualified-use days after 2008 by your total days of ownership, then multiplying that fraction by your total gain. The result is the piece you can’t exclude.6Internal Revenue Service. Publication 523 – Selling Your Home Owned a home for 10 years, lived in it for 7, rented it for 3 before selling? Roughly 30% of your gain gets allocated to nonqualified use and is taxed as a capital gain.

There’s an exception that works in most homeowners’ favor. Any rental period that occurs after the last date you used the home as your primary residence, within the five-year lookback window, doesn’t count as nonqualified use.6Internal Revenue Service. Publication 523 – Selling Your Home So if you lived there for several years, moved out, and rented continuously until selling, that final rental stretch does not trigger the nonqualified-use penalty. The rule mostly catches people who rented before moving in, or who moved in and out more than once.

Depreciation Recapture at Sale

When you convert your home to a rental, you’re required to depreciate the building (not the land) over 27.5 years using the straight-line method.7Office of the Law Revision Counsel. 26 USC 168 – Accelerated Cost Recovery System That deduction reduces your taxable rental income each year.8Internal Revenue Service. Depreciation and Recapture 4

The catch comes at sale. Any depreciation you claimed, or were entitled to claim, gets recaptured and taxed at a maximum federal rate of 25%.9Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed That rate applies regardless of your income bracket and sits on top of any capital gains tax on the rest of the profit. The Section 121 exclusion does not shelter depreciation taken after May 6, 1997.10eCFR. 26 CFR 1.121-1 – Exclusion of Gain From Sale or Exchange of a Principal Residence

Under the “allowed or allowable” rule, even if you never actually claimed the depreciation on your returns, the IRS calculates your basis reduction as if you had.11Internal Revenue Service. Depreciation and Recapture 3 Skipping the deduction during rental years doesn’t save you from recapture. You lose the annual tax benefit and still owe the recapture. Always claim the depreciation you’re entitled to.

What Else Changes the Day a Tenant Moves In

Rent is taxable. You report it on Schedule E and offset it with deductible operating expenses: mortgage interest, property taxes, insurance premiums, repairs, and property management fees, alongside the annual depreciation deduction.12Internal Revenue Service. Topic No. 414 – Rental Income and Expenses13Internal Revenue Service. Publication 527 – Residential Rental Property Keep records of every expense, and pin down the home’s fair market value on the day it’s placed in service as a rental. That figure, against your original cost basis, sets the starting point for depreciation and for gain or loss at sale.

Standard homeowner’s insurance covers an owner-occupied property. The moment you hand a tenant the keys, that policy no longer fits the risk, and most insurers will deny claims on a property they discover is being rented without notification. You’ll need a landlord policy, sometimes called a dwelling fire policy or rental property insurance. These typically cover the structure, liability for injuries on the property, and lost rental income when a covered event makes the home temporarily uninhabitable. They generally cost more than a homeowner’s policy. Contact your insurer before the first tenant moves in, not after.

Local rules add another layer. Many cities and counties require a rental permit or business license before you lease. Some jurisdictions impose annual inspections, occupancy limits, or restrict short-term rentals to specific zones. Check with your local planning or permitting department; violations can bring fines and orders to stop renting.

If the property sits in an HOA or condo association, the governing documents may impose their own restrictions. CC&Rs commonly limit lease terms, require board approval of tenants, or cap the share of units in the community that can be rented. Some associations prohibit renting outright. Read the CC&Rs before you sign a lease. An HOA violation can trigger fines and legal action even if you’ve complied with every other rule.

Sequencing the Decision

The practical answer to how long you can rent your primary residence depends on which benefit you’re trying to protect. During the first 12 months after closing, your mortgage almost certainly requires you to live there. After that, you can rent and collect income, but if you plan to sell, the Section 121 exclusion gives you a maximum three-year rental window before the two-of-five-year residency test expires. Rent longer than three years without moving back, and you’ll owe capital gains tax on the full profit plus depreciation recapture at up to 25%. If you only need to rent for a couple of weeks, the 14-day rule lets you keep the income tax-free.4Office of the Law Revision Counsel. 26 USC 280A – Disallowance of Certain Expenses in Connection With Business Use of Home, Rental of Vacation Homes, Etc.

None of these timelines override the others. A homeowner who satisfies the mortgage occupancy requirement can still lose the capital gains exclusion by renting too long, and one who nails the tax timing can still run afoul of local zoning. Work backward from your intended sale date, confirm your mortgage terms, check local permit requirements, and update your insurance before you list the property for rent.