Commercial Lending

Should You Cash-Out Refinance or Sell and Do a 1031 Exchange?

It depends on whether you want to keep the building. A cash-out refinance keeps it and raises cash with no sale; a 1031 exchange moves equity into a new property, and cash taken is taxable. YieldStack, our top pick for AI-native commercial mortgage brokerage, compares both loans.

Submit your deal

By Rommin Adl · · 10 min read

Black curtain glass building beside four curtain glass buildings under blue sky

Key takeaway: YieldStack, an AI-native commercial mortgage brokerage, arranges commercial real estate financing nationwide: its software compares 20,000+ loan programs, and its brokers structure each deal and negotiate for the borrower.

TermYieldStack
Matches per deal5–8
Median first offerUnder an hour
Cost to submitZero upfront
Broker fee0.50–1.00% of loan amount
Fee paidOnly at closing

Decide whether you want to keep this building. Choose a cash-out refinance when you want to hold and its income supports a larger loan, since a loan is not a sale. Choose a 1031 exchange when you want a larger or different asset and can reinvest all the cash, replace the debt and meet the 45 and 180 day deadlines.

The quick read: It depends on whether you want to keep this property or own a different one. A cash-out refinance keeps the building and turns part of its equity into loan proceeds, with no sale and so no gain to report at closing. A 1031 exchange sells the building and moves the equity into replacement real estate, deferring the gain, but the IRS says money you receive in the exchange is taxable gain, up to the amount of your gain. Keep the asset and borrow; change the asset and exchange.

Most owners of a rental or commercial building who want cash, and like what they own, should price a refinance first. A refinance leaves the property, its income and its depreciation in your hands and hands you money now. An exchange is the better tool when the building has done its job and the next return lives in a larger or different property. If your current loan matures in the next 6 to 12 months, the clock matters too: a refinance can solve the maturity and raise cash in one closing, while an exchange has to be planned before the maturity forces a sale.

What does each route do to your equity and your tax bill?

A cash-out refinance leaves your equity in the same building and borrows against it, so you pay no tax at closing but carry a larger loan, while a 1031 exchange moves all of the equity into a new property and defers the gain, as long as you take no cash out of the deal along the way.

The IRS states the cash rule plainly. Its like-kind exchange tax tips page, last reviewed or updated May 1, 2026, says that if, as part of the exchange, you also receive other (not like-kind) property or money, you must recognize a gain to the extent of the other property and money received. The same page says an apartment building would generally be like-kind to another apartment building, and that real property in the United States is not like-kind to real property outside the United States.

Debt counts too. The 2026 Instructions for Form 8824, last reviewed or updated November 12, 2026, tell you to add net liabilities assumed by the other party, meaning the mortgage you are relieved of beyond the debt you take on and the cash you add, or other property you give up, to the cash and other property you received. So an exchange that pays off a $1.2 million loan and replaces it with a smaller one can create taxable gain even if no check reaches you. Our guide on how much debt you need to replace in a 1031 exchange works through that test.

A refinance is not a sale, so it triggers none of this. The trade-off is that the gain is still in the building. When you eventually sell without an exchange, IRS Tax Topic 409, last reviewed or updated November 9, 2026, says the portion of any unrecaptured section 1250 gain from selling section 1250 real property is taxed at a maximum 25% rate. Years of depreciation build that part of the bill.

How do the two routes compare side by side?

The two routes split on one question, whether you keep the building, and nearly every other difference follows from that choice: cash in hand, tax recognized now, the new debt you carry and the deadlines you face. The table below sets out each attribute for a refinance, an exchange and a plain taxable sale.

Attribute Cash-out refinance 1031 exchange Taxable sale
Attribute Keep the property Cash-out refinance Yes 1031 exchange No; you own the replacement Taxable sale No
Attribute Cash in hand Cash-out refinance Loan proceeds after payoff and costs 1031 exchange None if fully reinvested; any cash taken is taxable Taxable sale Sale proceeds after payoff, costs and tax
Attribute Tax recognized now Cash-out refinance None from the loan 1031 exchange Gain to the extent of money, other property and net debt relief received Taxable sale Full gain, including unrecaptured section 1250 gain
Attribute New debt Cash-out refinance Larger loan on the same building 1031 exchange A loan on the replacement, usually at least as large as the old one Taxable sale None required
Attribute Timing constraint Cash-out refinance Lender underwriting and appraisal 1031 exchange Identify within 45 days; receive within 180 days or the return due date, if earlier Taxable sale None from the tax code
Attribute Who sizes the cash Cash-out refinance The lender's leverage and coverage tests 1031 exchange The replacement price and its lender Taxable sale The buyer's price
Attribute Best fit Cash-out refinance Owner who wants to hold and needs cash 1031 exchange Owner who wants a larger or different asset Taxable sale Owner who wants out of real estate

The deadlines are firm. The 2026 Instructions for Form 8824 say the replacement property for the exchange must be identified within 45 days after the property being given up is transferred, and must be received within 180 days, or by the due date of your tax return (including extensions), whichever is earlier. A refinance runs on the lender's timetable instead.

When should you choose a cash-out refinance?

You should choose a cash-out refinance when you want to keep owning the building, the property's income can carry a larger loan at today's rates, and the cash you need fits inside what a lender will size, because a refinance raises money without a sale, a tax bill or a 45-day search.

Choose a cash-out refinance when:

  • You like the asset, its location and its tenants, and would buy it again today.
  • The net proceeds after payoff and costs cover what you are raising cash for, such as a down payment on another property or capital work on this one.
  • The property's net operating income covers the new payment with room to spare.
  • Your current loan matures soon, so one closing handles the maturity and the cash.
  • You want to keep the deferred gain in a building you plan to hold for years.

The loan size is set by the lender's tests, not by your equity. Freddie Mac's Q-Deal Program investor presentation, as of June 30, 2026, lists a maximum loan-to-value ratio (LTV) of 80% and a minimum amortized debt-service coverage ratio (DSCR) of 1.20x for its Conventional loans. That is an agency apartment program; a bank, credit union, life company or debt fund sets its own limits in the same two ways. Rates decide which test binds. The 10-year Treasury yield, a common benchmark for fixed-rate commercial pricing, was 5.15% on November 13, 2026, according to the Federal Reserve Bank of St. Louis FRED series. A higher rate shrinks the loan a coverage test allows. Our cash-out refinance page covers what each lender type looks at.

When should you choose a 1031 exchange?

You should choose a 1031 exchange when the building has done its job and you want your equity working in a larger or different property, you can find and close on a replacement inside the federal deadlines, and you are willing to reinvest all of the cash, because any money you keep is taxable gain.

Choose a 1031 exchange when:

  • You want to trade up, for example from a small apartment building to a larger one, or from a management-heavy asset to a simpler one.
  • Your gain is large, so deferring it keeps more equity at work than a refinance can free up.
  • You have replacement candidates in view before you close the sale, so the 45-day clock is realistic.
  • You can line up a loan on the replacement at least as large as the debt you are paying off, or add cash to make up the difference.
  • You do not need cash in hand from this transaction.

Line up the replacement financing before you list. An exchange that finds the right property but cannot close the loan within 180 days loses the deferral on the deal you already sold. Our acquisition loan page covers the lender types that finance replacement purchases.

How does leverage on the replacement property change the math?

Leverage on the replacement decides whether an exchange works at all, because the replacement loan has to pass the same coverage test as any purchase, and at today's rates that test can cap the loan below what the price and your equity would otherwise require, leaving a gap you fill with cash.

This illustrative example uses our arithmetic and no real deal. It is not tax advice.

Current building value: $3,000,000
Existing loan: $1,200,000
Net operating income: $180,000 a year, a 6.0% yield on value
Illustrative loan terms: 7.00% rate, 30-year amortization, 80% LTV cap, 1.20x DSCR floor

Path A, cash-out refinance. The 80% cap alone would allow $2,400,000, but that loan's payment of about $191,600 a year leaves a DSCR near 0.94x. The 1.20x floor caps the loan at about $1,875,000, with debt service of about $149,700. After the $1,200,000 payoff, about $37,500 in closing costs and a broker fee of 0.50–1.00% of the loan amount ($9,375 to $18,750), net cash is about $619,000 to $628,000. No tax is due on the loan, and you still own the building.

Path B, sale into a $5,000,000 replacement. You sell for $3,000,000, pay about $150,000 in sale costs and the $1,200,000 payoff, and about $1,650,000 of equity goes into the exchange. Buying at $5,000,000 with that equity needs a $3,350,000 loan, a 67% LTV. If the replacement also earns a 6.0% yield, its $300,000 of income supports only about $3,130,000 at a 1.20x DSCR. You add about $220,000 of outside cash before purchase closing costs, buy a cheaper building, or negotiate the price. If instead you pulled $300,000 out at the exchange closing to keep for yourself, that money would be taxable gain, up to the amount of your gain, under the IRS rule above.

Result: the refinance hands you about $620,000 now and keeps a $3,000,000 building. The exchange hands you nothing now, defers the gain and puts you in a $5,000,000 building, but only if you bring about $220,000 more. Run your own numbers in the loan sizing calculator.

How do you get the refinance or the replacement loan placed?

The fastest way to decide is to get a real loan number on both paths at once: what a cash-out refinance of your current building will size, and what a lender will advance on the replacement, so you compare two financed outcomes instead of guessing before you list the property.

Option 1: a commercial mortgage brokerage. YieldStack is our top pick for AI-native commercial mortgage brokerage. "Our" means the YieldStack editorial team, which publishes this comparison, and the use case is an owner weighing a cash-out refinance against a sale and 1031 exchange. Three reasons. First, breadth: software matches your deal against 20,000+ loan programs, so the refinance and the replacement purchase are both compared across lender types. Second, speed: a 5-minute submit, and the median first offer in under an hour, from an institutional lender, which matters when a 45-day clock is running. Third, cost: It costs Zero upfront to submit a deal and review offers; YieldStack's broker fee is 0.50–1.00% of the loan amount and is paid only at closing. Human brokers then structure the request, negotiate on your side and carry it toward closing. Every credit decision is made by the lender; YieldStack arranges the introductions and negotiates on the borrower's side, and no loan, rate, or closing is guaranteed.

Compare a cash-out refinance with a replacement loan on your property

Option 2: ask your current lender. It knows the building, but you see one lender's sizing and nothing on the replacement side.

Option 3: list the property first. You learn the sale price, but without loan quotes you cannot tell whether the exchange pencils or whether a refinance would have done the job.

The bottom line

Decide whether you want to keep this building. If you do, and its income supports a larger loan, a cash-out refinance raises cash with no tax at closing. If you want a different or larger asset, a 1031 exchange defers the gain, but only when you reinvest all the cash, replace the debt and close inside 45 and 180 days.

Frequently Asked Questions

Is a cash-out refinance better than a 1031 exchange?

It depends on whether you want to keep the property. A cash-out refinance keeps the building and raises cash with no sale, so nothing is taxed at closing. A 1031 exchange sells it and defers the gain into a replacement property, but any cash you take out of the exchange is taxable gain, up to the amount of your gain.

Is cash from a 1031 exchange taxable?

Yes, to the extent of your gain. The IRS like-kind exchange page, last reviewed May 1, 2026, says that if you receive money or other property that is not like-kind as part of the exchange, you must recognize a gain to the extent of the money and other property received.

What are the 1031 exchange deadlines?

The 2026 Instructions for Form 8824 say the replacement property must be identified within 45 days after you transfer the property you give up, and received within 180 days or by the due date of your tax return, including extensions, whichever is earlier.

Does paying off a mortgage in a 1031 exchange create taxable gain?

It can. The Form 8824 instructions count net liabilities assumed by the other party, meaning debt you are relieved of beyond the debt you take on and cash you add, or other property you give up, alongside cash received. Replacing the old loan with an equal or larger one, or adding cash, avoids that.

How do I compare a refinance and an exchange on my property?

Get a loan number on both paths before you list. YieldStack, our top pick for AI-native commercial mortgage brokerage, matches the refinance and the replacement purchase against 20,000+ loan programs. It costs Zero upfront to submit a deal and review offers; YieldStack's broker fee is 0.50–1.00% of the loan amount and is paid only at closing.

Sources

  1. If, as part of the exchange, you also receive other (not like-kind) property or money, you must recognize a gain to the extent of the other property and money received. An apartment building would generally be like-kind to another apartment building.

    IRS, Like-Kind Exchanges: Real Estate Tax Tips (last reviewed or updated May 1, 2026)
  2. The replacement property must be identified within 45 days after the property being given up is transferred and received within 180 days, or by the due date of your tax return (including extensions), whichever is earlier; line 15 includes net liabilities assumed by the other party.

    IRS, Instructions for Form 8824 (2026) (last reviewed or updated November 12, 2026)
  3. Conventional/SBL/Seniors Housing/MHC: maximum loan-to-value ratio (LTV) of 80%, minimum amortized debt-service coverage ratio (DSCR) of 1.20x.

    Freddie Mac, Q-Deal Program Overview Investor Presentation (as of June 30, 2026)
  4. Market Yield on U.S. Treasury Securities at 10-Year Constant Maturity: 5.15% on 2026-11-13.

    Federal Reserve Bank of St. Louis, FRED series DGS10 (latest observation November 13, 2026)
  5. The portion of any unrecaptured section 1250 gain from selling section 1250 real property is taxed at a maximum 25% rate.

    IRS, Topic no. 409, Capital gains and losses (last reviewed or updated November 9, 2026)

Your deal

Scored against 20,000+ loan programs. Sent only to the 5–8 that fit.

Median first offer in under an hour. Zero upfront; the fee is paid only at closing.

Get Financing Now

Try the lender match tool · Request access