Deciding whether to rent or sell your house comes down to two questions: how much profit is sitting in the property, and how soon you’d have to sell to keep that profit tax-free. Federal law lets you exclude up to $250,000 in gain from the sale of your home ($500,000 if you’re married filing jointly), but only if you sell within a specific window after moving out.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If you’re sitting on substantial appreciation, that deadline usually decides the question for you. If your gain is modest and the rent comfortably covers your carrying costs, holding the property can build wealth through cash flow, appreciation, and tax deductions over the years.
The Tax Deadline That Forces the Decision
The biggest tax break in residential real estate is the Section 121 exclusion. A single filer can exclude up to $250,000 of profit from the sale of a principal residence; joint filers can exclude up to $500,000, provided both spouses meet the use test and neither claimed the exclusion on another home within the past two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
To qualify, you must have owned and used the home as your primary residence for at least two of the five years before the sale date. The two years don’t have to be consecutive. That five-year lookback is what creates the deadline. If you move out and rent the home for more than roughly three years, you’ll generally fail the use test because fewer than two of the last five years qualify as personal use.
A partial exclusion is available if you fall short of the two-year requirement because of a job relocation, health issue, or certain unforeseen circumstances. The amount is prorated based on how much of the two-year period you actually completed.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Someone transferred across the country after one year could exclude up to half the normal limit.
The dollar stakes are real. A single filer with $250,000 of gain who sells inside the window owes nothing on it. Wait too long, and the same gain becomes fully taxable at long-term capital gains rates, plus depreciation recapture on any rental years, plus potentially the net investment income tax. A timely sale can be worth tens of thousands of dollars.
Renting First, Then Selling: How the Rules Actually Work
Many homeowners assume that renting the house at all before selling costs them part of the exclusion. The rule is more forgiving than that. Any rental period that occurs after the last date you used the home as your principal residence does not count as “nonqualified use” for allocating gain.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If you lived in the home first and rented it afterward, the rental years don’t reduce your excludable gain, as long as you still hit the two-of-five-year use test at the time of sale.
A concrete example: you buy a home, live in it for five years, rent it for two years, and sell. You meet the use test, the rental years are not nonqualified use, and the full $250,000 or $500,000 exclusion is intact.
The reverse ordering does bite. If you buy a property, rent it for three years, then move in for two years and sell, those first three rental years are nonqualified use. A proportional share of the gain would be ineligible for exclusion.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Depreciation Recapture Applies Either Way
Even if your gain qualifies for the full Section 121 exclusion, the exclusion does not shelter depreciation.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Once you convert your home to a rental, you’re required to depreciate the building’s value over 27.5 years using the straight-line method.2Internal Revenue Service. Depreciation and Recapture 4 On a home with a $300,000 depreciable basis, that’s roughly $10,909 in annual deductions against rental income.
When you sell, the IRS recaptures every dollar of depreciation you claimed, or should have claimed, and taxes it at a maximum rate of 25%.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Five years of rental at that level produces about $54,545 in depreciation deductions and up to $13,636 in recapture tax at sale. Skipping the deduction on your returns doesn’t save you: recapture is calculated on the depreciation you were allowed to take, not just what you actually claimed.
The depreciable basis when you convert is the lesser of the home’s fair market value on the conversion date or your adjusted basis. Land is never depreciable, so you have to separate land value from building value; local property tax assessments give a reasonable starting ratio.
What You’ll Owe If You Miss the Window
If you sell after the exclusion window has closed, or your profit exceeds the exclusion, the remaining gain is taxed at long-term capital gains rates: 0%, 15%, or 20% depending on filing status and taxable income for 2026.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Most homeowners land at 15%. The 20% rate begins above $545,500 for single filers and $613,700 for joint filers. Someone selling in retirement with low ordinary income can sometimes hit the 0% bracket on the non-recapture portion of the gain.
Higher earners also owe the 3.8% net investment income tax on real estate gains. It applies to the lesser of net investment income or the amount by which modified adjusted gross income exceeds $200,000 for single filers ($250,000 for joint filers).4Internal Revenue Service. Topic No. 559, Net Investment Income Tax Stack it together and a high-income seller can face 23.8% on the ordinary gain plus 25% on recaptured depreciation. On a large gain, that number can easily reach six figures.
The Tax Side of Renting
If you rent the property, the tax picture shifts from a single big event at sale to an annual balance of rental income, deductible expenses, and depreciation. In the early years, the depreciation deduction and startup repairs often produce a paper loss even when rent covers the mortgage.
Whether you can use that loss depends on passive activity rules. Rental income is generally passive, so rental losses can’t offset your wages or other active income. The exception: if you actively participate in managing the property, you can deduct up to $25,000 in rental losses against ordinary income each year. That allowance phases out by $1 for every $2 of modified adjusted gross income above $100,000 and disappears entirely at $150,000.5Internal Revenue Service. Publication 925 (2025), Passive Activity and At-Risk Rules A landlord earning $130,000 could deduct only $10,000; someone earning $160,000 gets nothing until the property is sold. Disallowed losses carry forward and can offset future passive income or be released when you sell.
The 1031 Exchange
If you commit to being a landlord long-term and later want to switch properties, a 1031 exchange lets you sell one investment property and reinvest the proceeds in another without paying capital gains tax at that moment. Both properties must be held for investment or business use; a personal vacation home does not qualify.6Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031
The deadlines are strict. From the day you close on the sale, you have 45 calendar days to identify potential replacement properties in writing, and 180 calendar days from the sale (or your tax return due date, whichever comes first) to close on the replacement.6Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 Weekends count. Miss either date and the whole gain becomes taxable.
You must use a qualified intermediary to hold the proceeds; touching the cash yourself disqualifies the transaction. If the replacement costs less than what you sold, or your new mortgage is smaller than the old one, the difference is treated as taxable “boot.” An exchange defers tax, it doesn’t erase it. The deferred gain follows you until you sell without exchanging again, or until death, at which point heirs receive a stepped-up basis.
One boundary worth knowing: a 1031 exchange cannot be used on the home you live in. It’s a tool for investment property. If you convert your residence to a rental and hold it as an investment, an eventual 1031 becomes an option, but you cannot exchange out of a personal residence directly.
Does the Rent Actually Cover the Costs?
Rental math only works if the rent covers every recurring and irregular expense, not just the mortgage. Fixed monthly costs include principal, interest, property taxes, and insurance. Beyond those, you need reserves for large repairs like roof replacements, HVAC failures, and plumbing emergencies. A common approach is setting aside about 10% of gross rental income for capital expenses, plus a vacancy allowance of 5% to 10% for months the property sits empty.
Professional property management typically runs 8% to 12% of collected monthly rent for a single-family home, and many managers also charge a tenant placement fee of half to a full month’s rent each time they fill a vacancy. Self-managing saves that cost but requires time for screening, maintenance, rent collection, and legal compliance.
The metric that cuts through everything else is cash-on-cash return: annual pre-tax cash flow divided by the total cash invested in the property (down payment, closing costs, any renovation spending). A residential rental in the 8% to 12% range is generally considered solid. If your mortgage rate is higher than the property’s capitalization rate, you’re in negative leverage, meaning the debt costs more than the property earns. That’s a strong signal that selling produces a better financial outcome than holding.
What Selling Costs at Closing
Selling isn’t free. Real estate agent commissions historically ran 5% to 6% of sale price, paid entirely by the seller. Following an industry settlement in 2024, sellers are no longer automatically responsible for the buyer’s agent fee; buyers now negotiate their own agent’s compensation, though many sellers still contribute to attract offers. Total commissions currently average around 5% to 5.5%.
Transfer taxes range from nothing in states without them to as much as 3% in states with progressive structures. About a third of states charge no state-level transfer tax, though local surcharges may still apply. Title insurance for the seller typically runs $1,000 to $2,500 depending on price and local customs. In slower markets, seller concessions of 1% to 3% are common negotiating tools.
All in, transaction costs can consume 7% to 10% of the sale price. On a $400,000 home, that’s $28,000 to $40,000 gone at closing before you touch any profit. That number belongs on the same page as the tax exclusion when you’re weighing whether to sell now.
What Becoming a Landlord Actually Requires
Renting isn’t just a financial decision. It layers on obligations that don’t apply when you live in the house yourself.
Your Mortgage and Insurance
Most residential mortgages contain a due-on-sale clause that lets the lender demand full repayment if you change the property’s use. Federal law limits when that clause can be enforced. Under 12 CFR Part 191, which implements the Garn-St. Germain Act, a lender cannot call the loan due when you grant a lease of three years or less that doesn’t include a purchase option.7eCFR. 12 CFR Part 191 – Preemption of State Due-on-Sale Laws A standard one-year lease sits safely inside that protection. A longer lease, or any lease with a purchase option, can give the lender grounds to accelerate. FHA and VA loans have occupancy requirements that may need separate attention.
A homeowners policy will not cover a tenant-occupied property. You need a landlord or dwelling-fire policy, which typically costs 15% to 25% more for the same home. Coverage shifts too: loss-of-use becomes fair rental income protection, and personal property coverage applies only to landlord-owned items. Liability exposure rises, since a tenant or guest can sue over a property defect. Standard landlord policies provide $100,000 to $300,000 in liability coverage, and an umbrella policy in $1 million increments is worth pricing out if you have meaningful personal assets.
Fair Housing and Habitability
The Fair Housing Act prohibits discrimination based on race, color, religion, national origin, sex, familial status, and disability. You must apply the same screening criteria to every applicant. Wording like “perfect for a young professional” or rejecting families with children can trigger a complaint and significant civil penalties.
Every state imposes some version of an implied warranty of habitability, requiring you to keep the property safe and livable regardless of what the lease says. Heating, plumbing, weatherproofing, and structural soundness fall under that duty. If you fail to maintain habitable conditions after proper notice, tenants in most states can withhold rent, repair and deduct, or break the lease.
Many cities require rental registration or a business license, often with a fire and safety inspection. Operating without the required permit can bring fines and, in some jurisdictions, block you from using the courts to evict a non-paying tenant.
Security Deposits and Evictions
Most states cap the security deposit at one to three months’ rent, though the specifics vary widely. Some require the deposit to be held in a separate escrow account, and all have timelines for returning it after move-out. Missteps can expose you to penalties of double or triple the deposit.
Eviction is the cost most first-time landlords underestimate. Court filing fees run from about $50 to $400, but that’s the smallest part. Process server fees, writs of possession, lost rent during the case, and attorney fees on a contested eviction ($500 to $5,000 or more) add up quickly. The process takes weeks in landlord-friendly states and months in jurisdictions with heavier tenant protections. Budget for at least one bad tenant experience over a five-year hold.
What Your Local Market Is Telling You
The price-to-rent ratio is the fastest read on whether your market favors selling or renting. Divide the home’s current value by the annual rent it would produce. A ratio below 15 means prices are relatively cheap compared to rents, which generally favors holding. Above 20, prices are stretched relative to rents, and generating positive cash flow gets harder.
Inventory tells you something too. Low supply pushes prices up and can let you sell above the appraised value. When average days on market run past 60 or 90, the market is softening and you may face price cuts. In that environment, renting for a year or two while conditions improve can preserve equity, as long as the Section 121 clock allows.
Check the rental side with equal care. Single-family rents are projected to grow modestly through 2026, while multifamily rents are expected to stay roughly flat. In markets with heavy new apartment construction, competition can pressure your achievable rent. Local vacancy rates and recent comparable rents matter more than a national average. A property that pencils out on a spreadsheet can turn negative fast if the rental market softens after you’ve committed.
Put the pieces together in this order: how much untaxed gain would you lose by missing the exclusion window, what does the rent cover after every real cost, and what would you actually net at closing today. If a timely sale locks in a large tax-free gain and the rental cash flow is thin, selling almost always wins. If the gain is modest, the rent comfortably clears every expense with reserves left over, and you’re prepared for the legal obligations that come with being a landlord, renting can be the better long-term move.