- Selling rental property to buy vending machines triggers tax: long-term capital gains (0/15/20%), unrecaptured Section 1250 gain on past depreciation (up to 25%), possibly the 3.8% NIIT, plus state tax.
- A 1031 exchange cannot defer the gain into vending machines; since 2018, like-kind exchanges apply only to real property.
- In our illustrative example, a rental with $168,000 of equity leaves roughly $127,000-$133,000 to invest after tax.
- Alternatives to selling include a cash-out refinance or HELOC, an installment sale, or testing vending with one or two machines first.
- It tends to make sense when the equity earns little, the property needs big repairs, and you already have proven vending locations.
Selling rental property to buy vending machines is a real move people make when a rental ties up a lot of equity for little cash flow, but it is a taxable sale with no way to roll the gain into machines. You will owe long-term capital gains tax on the profit, up to 25% on the depreciation you claimed over the years, possibly the 3.8% net investment income tax, and state tax. A 1031 exchange does not help: since 2018 it only works for swapping real property for real property, and a vending machine is equipment.
Part of our complete guide: business credit vs personal savings.
This is not tax or financial advice. Tax rules below were checked in September 2026, and your situation (filing status, state, how long you held, whether you ever lived there) changes the answer. Take this to a CPA before you list the property, not after it closes.
The four taxes on a rental sale
When you sell a rental you have held for more than a year, the profit gets split into pieces, each taxed differently:
- Unrecaptured Section 1250 gain. Every year you owned the rental, you deducted depreciation on the building (residential buildings are depreciated over 27.5 years). When you sell, the part of your gain equal to that depreciation is taxed at your ordinary rate, capped at 25%. This applies whether or not you actually claimed the depreciation, because the IRS counts depreciation "allowed or allowable."
- Long-term capital gain. The rest of the profit is taxed at 0%, 15% or 20% federally depending on your income. Most middle-income sellers land at 15%.
- Net investment income tax (NIIT). An extra 3.8% on investment income, including rental sale gains, once your modified adjusted gross income is above $200,000 (single) or $250,000 (married filing jointly).
- State income tax. Most states tax capital gains as ordinary income. A few have no income tax at all.
One piece of good news: if you had passive rental losses you could not deduct in past years, a full sale of the property to an unrelated buyer usually frees them up, and they can offset other income in the year of sale.
Why a 1031 exchange can't buy vending machines
This is the misunderstanding we see most. A 1031 like-kind exchange lets you sell investment real estate and defer the tax if you buy other investment real estate within strict deadlines. Before 2018 it could also cover some equipment and personal property. The Tax Cuts and Jobs Act ended that: exchanges now apply only to real property. Vending machines, ATMs, smart coolers and vehicles are personal property, so they do not qualify.
You can 1031 into a different building, and you can 1031 into a property that happens to have a vending machine in the lobby, but the machine itself is outside the exchange. If the goal is to own a vending business, the gain from your rental sale is taxed in the year you sell.
Picture the machines paying you while you sleep
That’s the real promise of vending — income that doesn’t cost you your time, and a life on your own terms. VendBuddy turns this guide into a step-by-step plan so you actually build it instead of just reading about it. Start free today.
Start building free →A worked example: what's left to invest
Here is an illustrative rental. Every number is made up but kept realistic. Plug in your own.
| Line | Amount |
|---|---|
| Bought 8 years ago | $250,000 (land $50,000, building $200,000) |
| Depreciation taken (about $7,273 a year x 8) | About $58,000 |
| Adjusted basis ($250,000 - $58,000) | $192,000 |
| Sale price | $360,000 |
| Selling costs (about 6%) | -$21,600 |
| Net proceeds before debt | $338,400 |
| Total gain ($338,400 - $192,000) | $146,400 |
| Tax on $58,000 recapture (up to 25%) | Up to $14,500 |
| Tax on $88,400 capital gain at 15% | $13,260 |
| State tax at an assumed 5% | $7,320 |
| NIIT at 3.8% (only if income is over the threshold) | $0 or $5,563 |
| Mortgage payoff | -$170,000 |
| Cash left to invest | Roughly $127,000 to $133,000 |
So $168,400 of equity becomes about $130,000 of spendable money. Roughly a fifth to a quarter of the equity goes to taxes. That is the number to compare against, not the sale price and not the equity.
Now look at what the equity was doing. If this rental nets $400 a month after all expenses, that is $4,800 a year on $168,400 of equity, a cash-on-cash return under 3%. That low return on trapped equity is the honest reason people consider selling. The question is whether the after-tax money can do better elsewhere, with risk you can live with.
Can buying machines offset the tax?
Possibly, partly. Under the 2025 tax law, qualifying business equipment acquired after January 19, 2025 is eligible for 100% bonus depreciation, and the 2026 Section 179 limit is about $2.56 million. Vending machines bought and placed in service for your business in the same year as the sale may generate a large deduction.
Whether that deduction reduces the tax on your rental sale depends on details a CPA has to work through: whether you materially participate in the vending business, whether the Section 179 deduction is limited by your business income, and how a business loss interacts with capital gains on your return. Also remember that depreciation on the machines comes back as recapture when you sell them later. It is a timing benefit, not a free pass. The basics of structuring a vending business are in our vending LLC and tax deductions guide.
Alternatives to selling outright
Before you sell, check whether you need to sell at all.
- Cash-out refinance or HELOC. Borrowing against the property is not a taxable event. You keep the rental and its appreciation, and you pull cash for machines. The catch: more debt, a higher payment that may erase the rental's cash flow, and possibly giving up a low old mortgage rate. If your current rate is far below today's, this can be the most expensive option.
- Installment sale. If you sell with seller financing, you can often spread the capital gain over the years you receive payments (depreciation recapture is generally taxed in the year of sale anyway). You get monthly income from the buyer, which can fund machines over time instead of all at once.
- The primary-residence exclusion. If you lived in the property as your main home for at least two of the last five years, as many house hackers did, up to $250,000 of gain ($500,000 married) may be excluded. Depreciation taken while it was a rental is still taxed, and years it was rented before you moved in can reduce the exclusion.
- Test first. Buy one or two machines with savings, place them, and run them for six months. If you cannot find locations that earn, selling a building to buy twenty machines will not fix that.
When selling makes sense, and when it doesn't
| Leans toward selling | Leans toward keeping |
|---|---|
| Equity earns under 3-4% cash-on-cash | Strong cash flow on a low fixed-rate mortgage |
| Big capital repairs coming (roof, HVAC, sewer line) | Recently renovated, few repairs ahead |
| You are tired of landlording and it affects your life | A good property manager makes it nearly hands-off |
| You already run machines and have more good locations lined up | You have never placed a machine |
| Tax bill is modest (low gain, low bracket, no-tax state) | Tax bill would eat 30%+ of your equity |
| You will keep a large part of the proceeds diversified | The plan is to put everything into one new business |
The last row matters most. Real estate and vending are both concentrated bets. Swapping one for the other does not diversify you. Many sellers do better splitting the proceeds: an emergency fund, a chunk in broad index funds, and a measured amount into machines. If you want to keep some real estate exposure without tenants, a small allocation to something like Fundrise is one option, with the caveat that it is less liquid than it looks. We compared the three buckets directly in vending vs index funds vs rental property. Tracking all of it in one place with Empower makes it easier to see whether the move actually improved your net worth.
If you sell: deploy the money slowly
An illustrative example: Tom and Dana (illustrative) sell a rental and walk away with about $130,000 after tax. They put $40,000 in an emergency and opportunity fund, $50,000 in index funds, and give the vending business $40,000. They buy four machines first, not twelve, and add more only after each placement proves itself over a few months. By the end of year two they have ten machines, most of them in apartment buildings and offices, and a route they could sell if they wanted to.
Two practical notes. First, a $130,000 vending budget is enough to buy an existing route, which skips the location-hunting phase; do the homework in our route due diligence checklist first. Second, if you are building from scratch, the bottleneck is locations, not machines. VendBuddy's location finder lists apartment complexes, offices, gyms and other businesses in any ZIP code with decision-maker contacts, and credits can be bought one pack at a time on the pricing page rather than by subscription.
Selling a rental to buy machines is not reckless or brilliant by itself. It is a trade of an appreciating, leveraged, illiquid asset for a depreciating, cash-producing, sellable one, with a tax bill in the middle. Run your own version of the table above, and then decide.
Frequently Asked Questions
Can I use a 1031 exchange to buy vending machines with my rental property sale?
No. Since the Tax Cuts and Jobs Act took effect in 2018, 1031 like-kind exchanges apply only to real property exchanged for real property. Vending machines, ATMs and other equipment are personal property, so the gain from selling a rental is taxable in the year of sale if the money goes into machines.
How much tax will I pay when I sell my rental property?
It depends on your gain, depreciation, income and state. Past depreciation is taxed as unrecaptured Section 1250 gain at up to 25%, the remaining long-term gain at 0%, 15% or 20%, the 3.8% net investment income tax may apply above $200,000 ($250,000 joint) of income, and most states add their own tax. In our illustrative example, taxes took roughly a fifth to a quarter of the owner's equity.
Is it better to refinance my rental or sell it to start a vending business?
A cash-out refinance or HELOC avoids a taxable sale and lets you keep the property, but it adds debt and a larger payment, and it may mean giving up a low existing mortgage rate. Selling removes the landlord work and the debt but triggers capital gains and depreciation recapture. Compare the after-tax cash from selling with the true cost of the new loan.
A credit line is still a debt you personally guarantee, so the honest rule is to borrow only what a signed location can repay inside the intro window. 7 Figures Funding sequences the applications for you if you would rather not apply one card at a time. Affiliate link, so we may earn a commission at no extra cost to you.
Can buying vending machines reduce the taxes from selling a rental?
Sometimes, partly. Business equipment bought after January 19, 2025 can qualify for 100% bonus depreciation or Section 179 expensing, which may create a deduction in the year of the sale. Whether it offsets the gain depends on material participation, business income limits and how losses interact with capital gains. The deduction is also recaptured when the machines are sold, so ask a CPA before closing.
Should I sell my rental property to buy a vending route?
It can make sense if the rental's equity earns a low return, big repairs are coming, you already have vending experience, and you will not put all of the proceeds into one business. It makes less sense if the property cash flows well on a low-rate mortgage, the tax bill is large, or you have never placed a machine. Test with one or two machines before selling.
General information, not legal, tax or financial advice. Rules change, so check the official source. Revenue and income figures are examples, not promises. See our terms.