“Buy a house or invest” is defined as the choice between putting savings into a home you live in or into stocks and funds. It hides a third option: a small building you live in where a tenant pays part of the mortgage. In 2022 the median homeowner family held $396,200 in net worth against $10,400 for renters[S2]; the third option moved me from the second group to the first.
I get some version of this question more than any other: I have saved some money, do I buy a place or put it in the market? The people asking usually have between $10,000 and $40,000 and a lease that ends in a few months. They have read that stocks return more than houses, and they have also read that renters never build anything.
Both readings are partly right, and the question as asked has a bad shape. It assumes the money can go one place. This post lays out the two standard answers, what each one is good at, and the third path that does both jobs at once.
What buying a house does with your money
The mechanism: a house turns your largest monthly bill into a payment where part of every check buys back a piece of the building. That part is small early on. In year one of a 30-year mortgage, most of the payment is interest, insurance and taxes, and the equity you build is mostly whatever the house appreciates.
The strength of a house is leverage, and it works in both directions:
- A 3.5% down payment on a $250,000 home is $8,750.
- If the home gains 3% in a year, the gain is $7,500, on your $8,750.
- If it loses 3%, you have lost most of your down payment on paper, and you still own the house.
The weakness is cost and time. Buying and selling a house costs around 8% to 10% of its price in fees and commissions across the round trip, which is why a house held for three years often loses money even in a rising market. I wrote about the break-even timeline separately; the short version is that the national figure is measured in years, not months.

What investing does with your money
An index fund does one thing well: it compounds without asking you to fix a boiler. Over the long run, the U.S. stock market has returned about 10% a year before inflation, according to the historical series Aswath Damodaran maintains at NYU, with plenty of years far above and far below that.
- What it does: compounds, stays liquid, and asks nothing of your weekends.
- What it does not do: change your rent. Put $20,000 in a fund and keep renting, and you have $20,000 compounding next to a housing bill that rises most years, and you are still paying full price to live somewhere.
It also asks for discipline that a mortgage does not. A mortgage payment is forced saving; a brokerage transfer is optional every month, and the months it is skipped tend to be the months money is tight. The math of the fund is fine; the habit is where the plan usually breaks, and that shows up in the net worth data.
Homeowner vs renter net worth, and what it does and does not prove
The Federal Reserve’s Survey of Consumer Finances puts the median homeowner family’s net worth at $396,200 in 2022, against $10,400 for renters. The gap has been wide in every survey since 1989.
Read it carefully: the gap is not proof that buying a house makes you wealthy. People who can buy houses already earn more, and the survey counts the house itself in the owner’s net worth. What the number does show is where household wealth in this country sits: for the median family, most of it is the home. Renters who invest instead are betting they will be the exception, and some are. Most are not.
The fund has to outrun your landlord.Renting and investing works when the fund’s return keeps ahead of the rent increases, year after year.

The third option: a house that pays part of its own way
House hacking is buying a small two-to-four unit building with an owner-occupant loan, living in one unit, and renting the others. It is the only path where a first-time buyer’s down payment does both jobs the question is asking about.
How it does both: the tenant’s rent covers part of the mortgage, so your housing bill drops the way a renter-investor hopes their fund gains will offset it, except it happens on the first of the month. And the building appreciates on the whole price while you put down 3.5%, so the leverage argument for a house applies to it too. The money the lower housing bill frees up is what goes into the index fund.
With the basement running as a midterm rental on top of that, my own cost to live there is a fraction of the full payment. The Tesla stock vs house hack post runs the ten-year comparison against a single stock; this post is the general case.
The three paths side by side
| Question | Rent and invest | Buy a single-family home | Buy a 2-4 unit and live in it |
|---|---|---|---|
| What happens to the housing bill | Rises with the market | Fixed payment, rising taxes and insurance | Fixed payment, partly covered by rent |
| Cash needed to start | $0 beyond the deposit | 3.5% down plus closing costs and reserves | Same, on a higher price |
| Where the return comes from | Market growth, dividends | Appreciation, principal paydown | Appreciation, paydown, and the rent |
| Biggest risk | Rent outruns the fund | Selling early, repair bills | Vacancy, tenants, repair bills on two units |
| Time it asks of you | Almost none | Maintenance | Maintenance plus being a landlord |
| Can you still invest in the market | Yes, that is the plan | With what is left after the payment | With what the rent frees up |
The table has no column that wins every row. The third path asks the most of you and gives the most back; the first asks almost nothing and depends on rents behaving. The REIT comparison covers the hands-off way to hold real estate without a building, for readers who want exposure without tenants.
How to decide which path fits you
The four questions I would ask:
- How long will you stay? Under three years, rent and invest. The round-trip cost of a house eats the gain. My renting post covers the cases where renting is the right call.
- What is your metro’s rent-to-price math? In some cities a duplex payment with a tenant beats rent by hundreds a month; in others it does not. The renting vs buying metro breakdown shows which is which.
- Do you have the cash in four buckets? Down payment, closing costs, reserves, and a repair float. If not yet, the savings target post sizes each one. Invest the surplus in the meantime; it is not either-or during the saving phase.
- Are you willing to be a landlord? If the answer is a hard no, the third path is not for you, and a single-family home or a fund is the choice.
One more thing the market cannot offer: when you sell a home you have owned and lived in for two of the last five years, up to $250,000 of the gain is excluded from federal tax, or $500,000 for a married couple filing jointly (IRS Topic 701).
On a two-to-four unit, that covers your own unit; the gain on the units you rented out, and the depreciation you took on them, is generally taxed (IRS Publication 523).[S1] A fund pays capital gains tax on the way out. It is not a reason to buy on its own, but it changes the after-tax comparison more than most people expect.
Next step
Put your own rent, your metro’s prices and your savings into the free rent vs buy tool, then run the two-unit version in the projection tool to see the ten-year picture side by side. No signup, no email wall.
Frequently asked questions
Is it better to buy a house or invest in stocks?
The better choice is defined by how long you will stay and what your rent does to the comparison. Under three years, stocks win because selling a house costs 8% to 10% of its price. Past five years in a metro where a payment is close to rent, the house usually wins because it fixes the housing bill and builds equity with leverage. Living in one unit of a small building and renting the other does both.
Is a house an investment?
A primary home is defined as a leveraged asset that also replaces your rent, which makes it different from a pure investment. It does not pay you a return while you live in it; it lowers a bill and appreciates. A house with a rented unit is closer to a true investment because it produces income while you live there.
Can you buy a house and still invest?
Yes. Buying and investing at the same time is defined as funding the mortgage from the housing line of the budget and the market from what is left. The lower your housing bill, the more is left, which is why a building with a tenant paying part of the mortgage tends to leave more room for market investing than a single-family home does.
How much money do you need to buy instead of invest?
The cash needed is defined as four buckets: a down payment (3.5% on an FHA loan for an owner-occupant, on one to four units), closing costs, cash reserves, and a repair float. On a $250,000 home that is roughly $8,750 down plus several thousand more across the other three. Down payment assistance programs shrink the first bucket in most metros.
Sources
- Federal Reserve Board, Survey of Consumer Finances, median net worth by housing status, 1989 to 2022. federalreserve.gov/econres/scf/dataviz/scf/table. 2022 values: owners $396,200, renters or other $10,400 (2022 dollars). Read September 2026.
- Aswath Damodaran, NYU Stern, Historical Returns on Stocks, Bonds and Bills (updated January 2026). pages.stern.nyu.edu.
- Internal Revenue Service, Topic No. 701, Sale of Your Home ($250,000 / $500,000 exclusion). irs.gov/taxtopics/tc701.
- Transaction cost range (8% to 10% round trip) is an estimate combining typical agent commissions, buyer closing costs and seller closing costs; it varies by state and by negotiation.
If you want the next post as it lands, the blog page has the subscribe box. If you are weighing a specific listing against leaving the money in the market, send me the listing and I will run the numbers with you.
Get started with the newsletter!
Useful, relevant analysis, tools, tricks, and what you need to know on the journey to financial freedom. From the van years to a duplex, the plain math and none of the hype.
Subscribe and get the free $0-to-First-Property Roadmap to start.
No spam. Unsubscribe in one click.
Want the deeper toolkit? The guides and spreadsheets are in the shop, from $5, and the free tools stay free either way.
Sources
- [S1] Internal Revenue Service, Pub 523 (2025); page reviewed 30-Apr-2026, read 24 September 2026: “Pub 523: "You generally can't exclude gain on the separate portion of your property used for business or to produce rental income." and "you can't exclude the portion of gain equal to any section 1250(b)(3) depreciation adjustments allowed or allowable…” www.irs.gov.
- [S2] Federal Reserve, read 24 September 2026: “Executive summary: "real median net worth surged 37 percent to $192,900". Table 2 (thousands of 2022 dollars), 2022 median: All families "192.9"; Housing status Owner "396.2"; Renter or other "10.4".” www.federalreserve.gov.

