Legal & Tax

Selling Rental Property to Buy Vending Machines: Taxes First

📖 9 min read 🗓 Updated 2026-09-24 ✍ By
By — operators and analysts behind the platform’s location data.
The 30-second version
  • 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.

Disclosure: Some links in this article are affiliate or referral links. VendBuddy may earn a commission at no extra cost to you. Nothing here is financial, legal or tax advice.

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:

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.

LineAmount
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 investRoughly $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.

When selling makes sense, and when it doesn't

Leans toward sellingLeans toward keeping
Equity earns under 3-4% cash-on-cashStrong 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 lifeA good property manager makes it nearly hands-off
You already run machines and have more good locations lined upYou 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 diversifiedThe 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.

Free: The Ultimate Vending Guide
Which spots actually make money, the pop-in pitch and objection answers, what to charge, and what you can write off. 38 pages, one PDF, and it opens with a 7-day challenge. Sent straight to your inbox.
The playbook is on its way — check your inbox.

Ready to go get the placement? The Operator Pack is $47.

The pitch script, placement agreement, distributor list and walk-in system operators use instead of paying a locator $400+ per placement.

See what is inside →
No spam. One email with the playbook, then occasional operator tips. Unsubscribe anytime.
Most-read guides: how much vending machines make · how to find vending locations · vending commission rates · vending costs & profit · financing vending machines · starting a vending business
Free tools: vending ROI calculator · revenue calculator by property type · route time calculator · State of Vending 2026 report · all free tools

Build income that buys back your time

The goal was never a vending machine — it's the freedom it buys: doing what you want, when you want, with who you want, without asking a boss. VendBuddy makes the path simple, one clear step at a time, until your machines pay you whether you show up or not.

Start free today →

Explore Our Guides

The complete vending business education library — all free, all operator-grade.

Getting Started
How to Start a Vending Machine Business 10 Mistakes to Avoid Is Vending a Good Business?
Finding Locations
How to Find & Land Locations Negotiation Playbook Placement for Maximum Revenue
Money & Financing
How Much Do Vending Machines Make? Costs & Profit Breakdown Financing Options Compared Start With $0 Down
Equipment & Products
Machine Buying Guide Smart vs Traditional Machines Best Products to Stock
Growth & Legal
Scale from 1 to 100+ Machines LLC Setup & Tax Deductions State-by-State Vending Laws
Resources
Vending Opportunity Map For Property Managers City-by-City Vending Guides (600+ markets)