1031 Exchange Tax Planning

Partial 1031 Exchange

A Partial 1031 Exchange lets qualifying real estate investors defer part of their taxable gain while retaining some proceeds, buying less replacement property, or reducing reinvested equity. Explore the rules, calculate potential taxable boot, and compare your options.

The Partial Exchange Decision
Sell Relinquished Asset
Identify By Day 45
Complete Generally Day 180*

*The exchange completion deadline may be earlier because of the applicable tax-return filing deadline. The federal rules also contain limited exceptions.

Reviewed by Saqib Jillani — 6–7 years experience in financing. Last updated: 14 November 2026. This page is general education only and is not tax, legal or investment advice.
Interactive Tax Planning Tool

Calculate Your Partial 1031 Exchange Exposure

Use this Partial 1031 Exchange calculator to estimate how much gain could remain taxable when you reinvest less than the available exchange proceeds or acquire a lower-value replacement property. The calculation separates cash boot from potential net debt relief and limits recognized gain to the amount of realized gain.

Enter your relinquished property's sale information, adjusted tax basis, selling expenses, existing debt, and replacement acquisition details. The result is a simplified federal exchange estimate, not a final tax return calculation.

45 DaysIdentification Period
180 DaysGeneral Exchange Period
BootPotentially Taxable Value
GainMaximum Recognized Amount
Understanding The Basics

What Is A Partial 1031 Exchange?

A Partial 1031 Exchange is a tax-deferred exchange in which an investor does not defer all of the realized gain. Instead of reinvesting sufficient value and equity to pursue full deferral, the investor receives cash, experiences net debt relief, or otherwise receives non-like-kind consideration that may trigger recognition of gain. Learn what is boot in a 1031 exchange to see how that consideration is treated.

Section 1031 of the Internal Revenue Code permits qualifying exchanges of real property held for investment or productive use in a trade or business. The exchange does not have to produce complete deferral to qualify. When an otherwise valid exchange includes taxable consideration, the transaction may still defer the remaining eligible gain.

Why Investors Choose Partial Reinvestment

Some investors want to reduce exposure to real estate, improve liquidity, pay personal expenses, or purchase a smaller replacement asset. Others cannot find suitable replacement property before the exchange deadline. A Partial 1031 Exchange can preserve some tax deferral while allowing a portion of the transaction's economic value to leave the exchange.

What Makes The Exchange Partial?

The determining factor is not simply whether the replacement property's purchase price is lower. The complete transaction matters, including exchange proceeds, debt payoff, replacement financing, additional cash contributions, and any other property or consideration received. The taxable portion is generally limited to realized gain, subject to applicable tax rules.

Who Can Use This Approach?

Individuals, qualifying entities, and other eligible taxpayers may use Section 1031 when the statutory requirements are satisfied. Both relinquished and replacement properties must generally be held for qualifying business or investment purposes. Property held primarily for sale, personal-use residences, and partnership interests generally do not qualify merely because the investor wishes to exchange them.

Important Distinction: A partial exchange does not automatically mean that the percentage of sale proceeds withdrawn equals the percentage of gain recognized. Boot calculations and the realized-gain limitation determine the estimated recognized amount.
Exchange Mechanics

How A Partial 1031 Exchange Works

The fundamental process resembles a fully deferred exchange. The investor sells qualifying relinquished property, uses a qualified intermediary for a typical deferred exchange, identifies eligible replacement property, and completes the replacement acquisition within the applicable period. The difference is that some value may be received outside the qualifying exchange.

1

Transfer The Relinquished Property

Sell the qualifying investment property and arrange for the exchange proceeds to be handled through a properly structured exchange rather than receiving unrestricted control of the funds.

2

Identify Replacement Property

Identify qualifying real estate within the applicable identification period. Consider acquisition cost, financing, closing expenses, and how much exchange equity will be reinvested. Use the 45-day identification deadline calculator to check the identification date.

3

Complete The Replacement Purchase

Acquire the replacement asset within the exchange period. Any qualifying exchange proceeds not used, along with applicable net debt relief, may create taxable boot.

Cash Boot In A Partial 1031 Exchange

Cash boot commonly arises when an investor receives cash from the sale or receives unused exchange proceeds after acquiring the replacement property. For example, an investor may deliberately retain $100,000 to create liquidity. That cash can produce recognized gain, but the recognized amount cannot exceed the applicable realized gain. Learn more in cash boot explained, and test scenarios with the cash boot sensitivity calculator. Estimate the tax effect with the boot tax estimator.

Mortgage Boot And Debt Relief

Debt relief is another important component. If an investor is relieved of $400,000 of debt and incurs only $250,000 of replacement debt, the $150,000 difference may contribute to taxable boot. However, additional investor cash and other consideration can affect the net liability calculation, so comparing mortgage balances alone is not always sufficient. See mortgage debt boot explained, and work the numbers with the debt relief boot worksheet.

Why Exchange Proceeds Matter

Gross selling price is not the same as exchange equity. Selling expenses and repayment of outstanding loans affect the funds available for reinvestment. A property sold for $1 million with $300,000 of debt and $50,000 of qualifying selling expenses may generate $650,000 of net exchange equity.

Calculation Method

Partial 1031 Exchange Formulas Explained

Understanding the calculation begins with distinguishing realized gain, recognized gain, and deferred gain. These figures are related but serve different purposes. The Partial 1031 Exchange calculator above applies a simplified transaction model to estimate the potential federal tax exposure from incomplete reinvestment.

Step One: Calculate Realized Gain

Realized Gain = Sale Price − Qualifying Selling Expenses − Adjusted Tax Basis

Adjusted tax basis generally reflects original basis plus qualifying capital improvements and other adjustments, less allowable depreciation and applicable reductions. Realized gain is the economic tax gain determined before applying exchange nonrecognition rules. A property can have significant realized gain even when the investor receives relatively little cash at closing.

Step Two: Calculate Available Exchange Equity

Exchange Equity = Sale Price − Qualifying Selling Expenses − Debt Paid Off

Available exchange equity represents the simplified net proceeds that can move into the replacement acquisition. It is not necessarily the same as the investor's taxable gain. The calculator assumes the stated selling expenses are exchange-eligible selling expenses and that no additional disbursements reduce the available proceeds.

Step Three: Estimate Cash And Debt Boot

Cash Boot = Exchange Equity − Exchange Equity Reinvested
Net Debt Boot = Maximum Of (0, Old Debt − New Debt − Additional Investor Cash)

The model allocates available exchange equity toward the replacement purchase after considering acquisition financing and additional investor cash. It then estimates positive net debt relief not offset by additional cash contributions. This simplified approach avoids automatically treating every dollar of reduced mortgage debt as taxable.

Step Four: Limit Recognized Gain

Recognized Gain = Minimum Of (Positive Realized Gain, Estimated Total Boot)

Recognized gain is generally limited to the smaller of the positive realized gain or taxable boot in a straightforward qualifying exchange. The remaining realized gain is potentially deferred. If the transaction produces no realized gain, receiving boot does not by itself create a positive recognized gain under this simplified gain-limitation formula.

Step Five: Estimate Illustrative Tax

Illustrative Tax = Recognized Gain × Selected Tax Rate

Actual tax may involve several rates and categories. Depreciation-related gain, unrecaptured Section 1250 gain, net investment income tax, and state income taxes may change the result. The calculator's single percentage is useful for sensitivity analysis, but it does not calculate the statutory tax treatment of each component.

Compare Your Options

Full 1031 Exchange Versus Partial 1031 Exchange

Choosing between complete deferral and partial reinvestment depends on liquidity needs, replacement property availability, risk tolerance, and projected tax exposure. A fully deferred exchange generally aims to reinvest all exchange equity and acquire sufficient replacement value while meeting the remaining requirements. Partial reinvestment accepts some current tax exposure in exchange for flexibility. Compare the outcome with the exchange vs sell and pay calculator.

FeatureFull Exchange ObjectivePartial Exchange
Replacement ValueGenerally at least the relinquished property's net selling valueMay be lower
Exchange EquityGenerally all available equity reinvestedSome proceeds may be retained
Debt ConsiderationsManage net debt relief to avoid bootNet debt relief may create boot
Current Gain RecognitionGenerally zero when all requirements are satisfiedMay be positive, limited by realized gain
LiquidityMost exchange proceeds remain investedPotentially greater immediate liquidity
Future Tax BasisCarryover-basis principles generally applyBasis reflects deferred and recognized amounts
Federal DeadlinesIdentification and exchange periods applyThe same general periods apply
Planning Insight: Paying some tax now may be preferable to purchasing an unsuitable property solely to avoid boot. Compare the after-tax proceeds, future cash flow, property risk, and long-term investment objectives before deciding.
Real-World Calculations

Partial 1031 Exchange Examples

These examples illustrate how cash retention and financing affect gain recognition. Each assumes qualifying investment real estate, eligible exchange expenses, no other boot, and a properly structured deferred exchange. The numbers are illustrative and exclude detailed tax classifications and transaction-specific adjustments.

Example One: Buying A Lower-Value Property

An investor sells a property for $1,000,000, has an adjusted basis of $400,000, pays $50,000 in qualifying selling expenses, and repays $300,000 of debt. The investor acquires an $800,000 replacement property with $250,000 in new debt and contributes no additional cash.

  • Realized gain: $550,000.
  • Available exchange equity: $650,000.
  • Replacement equity requirement: $550,000.
  • Cash boot: $100,000.
  • Net debt boot: $50,000.
  • Estimated recognized gain: $150,000.
  • Estimated deferred gain: $400,000.

The $150,000 of recognized gain may be taxed by character, not at a single rate: the unrecaptured Section 1250 portion, if any, is subject to a maximum federal rate of up to 25%, and the balance is taxed at the applicable capital-gain rate. The actual liability depends on the investor's federal and state tax circumstances. This Partial 1031 Exchange preserves deferral on $400,000 of gain while allowing the investor to retain part of the sale proceeds.

Example Two: Replacing Less Debt With Additional Cash

Assume a sale produces $500,000 of exchange equity after expenses and debt repayment. The old debt was $300,000, while the replacement property is financed with $200,000 of new debt. The investor contributes $100,000 of additional personal cash and reinvests all $500,000 of exchange equity.

In this simplified example, the additional cash offsets the $100,000 reduction in debt. There is no exchange cash retained, and the estimated boot is zero. This demonstrates why lower replacement debt does not necessarily create taxable gain when sufficient additional cash is contributed.

Example Three: Cash Received When Gain Is Smaller

Suppose the realized gain is only $80,000, but the transaction produces $150,000 of otherwise taxable boot. The recognized gain is generally limited to $80,000. The investor may receive more cash than the taxable gain because return of tax basis is not itself additional gain.

The limitation is important when evaluating a Partial 1031 Exchange involving property with a relatively high adjusted basis. It also explains why applying a tax percentage directly to all withdrawn cash can materially overstate the estimated tax liability.

Example Four: A Partial Exchange With No Debt

An investor sells an unencumbered property for $700,000, incurs $30,000 of eligible selling expenses, and has a $300,000 adjusted basis. The investor purchases a $570,000 replacement property using exchange funds, leaving $100,000 outside the acquisition.

The realized gain is $370,000 and estimated cash boot is $100,000. Assuming no other adjustments, the recognized gain is $100,000 and the remaining $270,000 is deferred. The absence of mortgages makes the calculation simpler, but the exchange deadlines and qualified-use requirements still apply.

Investment Planning

When A Partial 1031 Exchange May Make Sense

A Partial 1031 Exchange can be useful when the benefit of retaining liquidity outweighs the cost of recognizing some gain. The decision should account for current tax rates, available investment opportunities, leverage, expected cash flow, and the investor's broader financial plan.

Reducing Real Estate Concentration

Investors with substantial wealth tied to a single property may want to reduce exposure rather than reinvest the entire sale value. A smaller replacement property can lower concentration risk and leave cash available for other investments. However, retained cash may be taxable, and the replacement asset must independently satisfy the investor's objectives.

Creating Liquidity For Other Needs

Some investors need capital for retirement spending, reserves, family obligations, or unrelated business opportunities. Partial reinvestment can release funds without necessarily recognizing the entire gain. The tradeoff is an immediate tax cost and potentially less future income from replacement real estate.

Reducing Leverage

Investors may prefer a lower debt burden to improve financial resilience. Replacing debt with additional personal cash can sometimes preserve deferral, while simply reducing debt without sufficient offset may create boot. The appropriate structure depends on transaction economics, lender requirements, and the investor's available capital.

Buying Higher-Quality Replacement Property

A smaller but more desirable property may offer stronger tenant quality, better location, lower maintenance exposure, or more predictable cash flow. Choosing a replacement asset based only on its ability to absorb proceeds can introduce investment risks that exceed the tax savings.

Considering NNN And DST Investments

Net lease properties and certain Delaware statutory trust interests may be considered as replacement options, depending on their characteristics and applicable tax treatment. A properly structured DST interest may qualify as an interest in real property for Section 1031 purposes, but not every trust investment qualifies.

For a Partial 1031 Exchange, investors should evaluate the minimum investment amount, available financing, expected distributions, fees, liquidity limitations, and concentration risk of each proposed replacement. Tax eligibility alone does not establish investment suitability.

Liquidity Planning Debt Management Tax Deferral Investment Quality Risk Diversification Retirement Income
Avoid Costly Errors

Common Partial 1031 Exchange Mistakes

Assuming All Retained Cash Is Taxable Gain

Cash boot and recognized gain are not identical concepts. The recognized amount is generally constrained by realized gain. An investor with $50,000 of realized gain and $100,000 of otherwise taxable boot does not automatically recognize $100,000 of gain. Accurate basis information is essential.

Ignoring Debt Relief

Investors sometimes focus entirely on cash proceeds and overlook the liability side of the exchange. Debt relief can create taxable consideration, although replacement liabilities and additional cash can offset it under applicable rules. Review the complete settlement statements and financing structure.

Receiving Exchange Funds Too Early

Taking actual or constructive receipt of sale proceeds can jeopardize deferred exchange treatment. In a typical delayed exchange, the qualified intermediary arrangement must restrict the investor's rights to the proceeds as required by the regulations. Cash intended to be withdrawn should be handled under a carefully documented plan.

Misclassifying Closing Expenses

Not every transaction cost receives the same exchange treatment. Brokerage commissions and certain qualifying selling expenses differ from loan fees, prorations, operating expenses, and other charges. Incorrectly treating all settlement deductions as exchange expenses can distort the realized gain and boot calculations.

Confusing Equity With Property Value

Reinvesting all cash proceeds is not always sufficient for full deferral. A lower-value replacement purchase may create a different result from an equal-value purchase, particularly when financing changes. Investors should evaluate both the value acquired and the exchange equity applied.

Missing The Exchange Deadlines

A Partial 1031 Exchange generally remains subject to the same identification and acquisition deadlines as a fully deferred exchange. Intending to recognize some gain does not provide an automatic extension. Financing delays, title problems, or unsuccessful replacement purchases can cause a much larger taxable event than originally planned. Organize both dates with the 1031 exchange timeline calculator.

Overlooking Depreciation And State Taxes

Prior depreciation deductions can substantially affect adjusted basis and the character of recognized gain. Federal capital gain rates, unrecaptured Section 1250 gain, possible net investment income tax, and state taxation may all matter. A single blended estimate should never replace a detailed tax projection.

Transaction Checklist

A Practical Partial 1031 Exchange Timeline

Planning should begin before the relinquished property closes. Establishing the desired amount of cash retention, projected tax exposure, and replacement purchase budget early gives the investor and transaction team time to structure the exchange appropriately.

Before The Relinquished Property Sale

Confirm the property's adjusted tax basis, estimated selling expenses, outstanding debt, and likely net proceeds. Discuss the intended partial reinvestment with a qualified intermediary and tax adviser before closing. Determine whether any planned cash distribution is compatible with the proposed exchange structure.

During The Identification Period

Replacement property generally must be identified in writing within 45 days after the relinquished property transfer. The identification must comply with applicable rules, including property descriptions and identification limits. A partial exchange does not eliminate those requirements.

During The Acquisition Period

Coordinate financing, due diligence, title work, and the replacement closing. The replacement property generally must be received by the earlier of 180 days after the relinquished transfer or the applicable tax-return due date, including extensions. Certain federally declared disasters and other limited circumstances may affect deadlines.

After The Replacement Closing

Reconcile the intermediary's final statement, cash distributions, replacement financing, and closing expenses. Determine realized gain, recognized gain, deferred gain, and replacement property basis. Report the exchange using the applicable tax forms and retain supporting documents for future disposition calculations.

Recordkeeping: Preserve the purchase and sale agreements, settlement statements, exchange agreement, identification notice, loan payoff records, depreciation schedules, and final intermediary accounting. These documents help establish the recognized gain and carryover basis.
Authoritative Guidance

Tax Rules And Limitations Of Partial Exchange Estimates

The federal foundation for a Partial 1031 Exchange is Internal Revenue Code Section 1031 and its related regulations. IRS Form 8824 is generally used to report like-kind exchanges, including transactions with recognized gain. Taxpayers should also consider relevant basis, depreciation, liability, and related-party rules.

For primary-source guidance, consult the IRS Instructions For Form 8824 and 26 U.S.C. Section 1031. These resources explain the statutory framework and reporting requirements.

This calculator assumes ordinary real property transactions and does not resolve every exception. Special situations involving reverse exchanges, improvement exchanges, related parties, multiple properties, non-like-kind property, partnership structures, or complex debt allocations require separate analysis. The estimate also does not establish whether an investment qualifies for Section 1031 treatment.

The calculations are educational estimates, not legal, accounting, investment, or tax advice. Have a qualified tax professional review the final exchange accounting, recognized gain, adjusted basis, and applicable tax rates before relying on the results.
Frequently Asked Questions

Partial 1031 Exchange FAQs

What Is A Partial 1031 Exchange?

It is an otherwise qualifying Section 1031 exchange in which some realized gain is recognized because the taxpayer receives taxable consideration, such as cash or applicable net debt relief. The remaining eligible gain may be deferred.

Can I Take Cash Out Of A 1031 Exchange?

Yes, a properly structured exchange may allow cash to be received, potentially creating taxable boot. The timing and right to receive cash must comply with the exchange rules. Receiving unrestricted sale proceeds before establishing the exchange can jeopardize qualification.

How Much Tax Will I Pay On A Partial Exchange?

The amount depends on recognized gain, the character of that gain, applicable federal rates, potential net investment income tax, and state taxes. Taxable boot is generally subject to the realized-gain limitation. Use the calculator for an initial estimate.

Is A Partial 1031 Exchange Legal?

Yes. Section 1031 and its related rules contemplate qualifying exchanges involving cash or other non-like-kind consideration. The exchange must still satisfy the applicable property, timing, identification, and transaction requirements.

Can I Buy A Cheaper Replacement Property?

Yes. Purchasing a lower-value replacement property may result in taxable boot while allowing some eligible gain to remain deferred. The exact result depends on net proceeds, debt, financing, additional cash, and other transaction details.

Does Lower Replacement Debt Always Create Taxable Boot?

No. Additional investor cash and other qualifying consideration may offset net debt relief. The entire transaction must be evaluated rather than comparing old and new mortgage balances in isolation.

What Is The Difference Between Cash Boot And Mortgage Boot?

Cash boot generally refers to cash or certain other non-like-kind value received. Mortgage boot refers to net liability relief that can be treated as consideration received. Applicable offsets and liability allocation rules affect the result.

Is The Entire Cash Withdrawal Taxable?

Not necessarily. In a straightforward qualifying exchange, recognized gain generally cannot exceed realized gain. If the taxpayer's realized gain is smaller than the boot received, only the applicable realized gain is recognized.

Can I Use A Partial Exchange To Reduce Debt?

Yes, but reducing debt can create taxable consideration unless the debt reduction is sufficiently offset under the applicable rules. Investors should model the financing structure before committing to the replacement acquisition.

Do The 45-Day And 180-Day Rules Still Apply?

Yes. A partial exchange generally follows the same identification and completion rules as other deferred exchanges. The completion period may end before Day 180 because of the taxpayer's applicable return filing deadline.

Can A DST Be Used In A Partial Exchange?

Certain properly structured Delaware statutory trust interests may qualify as replacement real property. Qualification depends on the trust's legal and tax characteristics. A partial reinvestment in an eligible DST can still produce taxable boot.

How Does Depreciation Affect A Partial Exchange?

Depreciation generally reduces adjusted basis and can increase realized gain. Recognized gain may include depreciation-related amounts subject to specific tax treatment. The calculator does not separately determine depreciation recapture or unrecaptured Section 1250 gain.

Can I Receive Cash After The Replacement Closing?

Unused exchange funds may become distributable under the exchange agreement and applicable regulations. Distribution timing is subject to restrictions, and the resulting amount may be taxable boot. Coordinate releases with the qualified intermediary.

Does A Partial Exchange Eliminate Capital Gains Tax?

No. It may defer some qualifying gain while recognizing another portion. Deferred gain is generally reflected in the replacement property's tax basis and may become taxable upon a later disposition unless another applicable tax provision provides relief.

Can I Change From A Full Exchange To A Partial Exchange?

It may be possible to complete an otherwise qualifying exchange with less reinvestment than originally planned. However, the exchange agreement, distribution restrictions, deadlines, and tax consequences must be reviewed before changing the transaction.

What Happens If The Replacement Purchase Fails?

If no qualifying replacement property is acquired within the applicable period, the intended exchange may fail, resulting in recognition of gain from the relinquished property sale. The outcome depends on the facts and applicable tax rules.

Is A Partial Exchange Better Than Selling And Paying Tax?

Neither approach is universally better. A partial exchange may preserve some deferral while providing liquidity, whereas a taxable sale offers greater flexibility over the proceeds. Compare taxes, investment returns, transaction costs, and long-term objectives.

Does This Calculator Determine My Final Tax Liability?

No. It estimates recognized and deferred gain using simplified assumptions. A complete tax calculation requires review of basis adjustments, depreciation, gain character, tax brackets, state rules, transaction costs, and the final exchange documentation.

Plan Your Partial 1031 Exchange With Greater Clarity

Estimate taxable boot, compare replacement property values, and understand how much gain may remain deferred. Use the calculator to evaluate a Partial 1031 Exchange before finalizing your reinvestment strategy.

Calculate Your Partial Exchange →
Boot Worked Examples

Boot Worked Examples

These worked examples show how cash boot, mortgage (debt-relief) boot and other property received in an exchange affect recognized and deferred gain. Each assumes qualifying investment real estate, a properly structured deferred exchange, and no other boot unless stated. Recognized gain is generally limited to realized gain.

Example A: Cash Boot From A Lower-Value Replacement

An investor sells a property for $900,000 with an adjusted basis of $500,000, so realized gain is $400,000. The investor buys an $850,000 replacement property and receives $50,000 in cash boot.

  • Realized gain: $400,000.
  • Cash boot: $50,000.
  • Recognized gain: $50,000.
  • Deferred gain: $350,000.

Example B: Mortgage Boot From Debt Relief

An investor sells a property for $1,000,000 with $400,000 of mortgage debt and $400,000 of realized gain. The replacement property is acquired with $300,000 of new mortgage debt, and $600,000 in cash is reinvested.

  • Net debt relief: $400,000 - $300,000 = $100,000.
  • Recognized gain: $100,000.
  • Deferred gain: $300,000.

Example C: Additional Cash Offsets Debt Relief

Using the same $1,000,000 sale and $400,000 of old debt as Example B, the replacement property again carries $300,000 of new debt, but the investor adds $100,000 of personal cash to the exchange.

  • Debt reduction: $100,000.
  • Additional investor cash: $100,000.
  • Net mortgage boot: $0.
  • Recognized gain: $0.

Additional cash can offset net debt relief; comparing mortgage balances alone is not sufficient.

Example D: Other Property Received As Boot

An investor sells a property for $800,000 with an adjusted basis of $500,000, so realized gain is $300,000. The investor buys a $770,000 replacement property and also receives $30,000 of equipment (other, non-like-kind property).

  • Other property boot: $30,000.
  • Recognized gain: $30,000.
  • Deferred gain: $270,000.

Example E: Cash, Debt And Other Property Combined

An investor sells for $1,200,000 and receives $20,000 of other property, for $1,220,000 of realized proceeds. Adjusted basis is $500,000, so realized gain is $720,000. Old debt is $400,000 and new debt is $350,000. Exchange equity is $800,000 and replacement equity is $750,000.

  • Cash boot: $50,000.
  • Debt-reduction boot: $50,000.
  • Other property boot: $20,000.
  • Total recognized gain: $120,000.
  • Deferred gain: $600,000.

Example F: Recognized Gain Capped At Realized Gain

An investor sells a debt-free property for $700,000 with an adjusted basis of $650,000, so realized gain is only $50,000. The investor receives $150,000 in cash boot.

  • Cash boot: $150,000.
  • Recognized gain: $50,000 (capped at realized gain).
  • Deferred gain: $0.

Receiving more cash than realized gain does not create gain beyond the realized amount; part of the cash received is a return of basis.