< Finsweet Attributes >
Real Property

How is gain calculated in a partial 1031 exchange and are selling expenses included?

Last updated: 
Sep 2025
Blue J Answer
Blue J leverages the latest large language models and a vast and authoritative tax database to answer tax questions. The information provided does not, and is not intended to, constitute legal advice. Generative AI systems can make mistakes. Verify all important information.
Better Tax Answers For All Your Tax Questions

Ask Blue J any tax question, then go deeper. Follow up, add client-specific context, and explore the sources behind every answer with Blue J’s generative AI solution for tax research.

Table of Contents
Answer

In a partial §1031 exchange, the taxpayer exchanges real property held for productive use in a trade or business or for investment for like-kind real property, but also receives some "boot"—that is, money or non-like-kind property. In this scenario, the gain is recognized only to the extent of the boot received, and the calculation of gain and the treatment of selling expenses are governed by specific rules in the Internal Revenue Code, Treasury Regulations, and IRS guidance.

1. Calculation of Gain in a Partial §1031 Exchange

a. Realized Gain

The realized gain is the difference between the amount realized on the exchange and the adjusted basis of the property relinquished:

  • Amount realized includes the fair market value (FMV) of the like-kind property received, any cash or non-like-kind property received, and any liabilities of the taxpayer assumed by the other party (or to which the property is subject), minus selling/exchange expenses.
  • Adjusted basis is the taxpayer’s basis in the relinquished property, adjusted for improvements, depreciation, etc.

Formula:

Realized Gain = (FMV of like-kind property received + cash received + FMV of other property received + liabilities assumed by other party) – (selling/exchange expenses) – (adjusted basis of property given up)

b. Recognized Gain

Under §1031(b), if the taxpayer receives boot (money or non-like-kind property), the recognized gain is the lesser of:- The realized gain, or- The sum of the money and the FMV of the non-like-kind property received (the boot).

Formula:

Recognized Gain = Lesser of (Realized Gain, Net Boot Received)

c. Example

Suppose a taxpayer exchanges property with an adjusted basis of $100,000 for like-kind property worth $120,000 and receives $30,000 in cash, paying $5,000 in selling expenses.

  • Amount realized: $120,000 (like-kind) + $30,000 (cash) = $150,000
  • Less selling expenses: $150,000 – $5,000 = $145,000
  • Less adjusted basis: $145,000 – $100,000 = $45,000 (realized gain)
  • Recognized gain: Lesser of $45,000 (realized gain) or $30,000 (boot) = $30,000

2. Treatment of Selling/Exchange Expenses

Selling or exchange expenses (such as brokerage commissions, attorney fees, deed preparation fees, etc.) are subtracted from the amount realized in computing the realized gain. This reduces both the realized gain and the recognized gain (since the boot is effectively reduced by these expenses).

  • IRS Revenue Ruling 72-456 and IRS Publication 544 confirm that selling expenses are subtracted from the total consideration received to determine the amount realized, and thus reduce the gain realized and the gain recognized in a partial exchange.

Example from Rev. Rul. 72-456:If a taxpayer receives $20,000 in like-kind property and $10,000 in cash, and pays a $2,000 brokerage commission:- Total received: $30,000- Less commission: $2,000- Amount realized: $28,000- Less basis: (e.g., $12,000)- Realized gain: $16,000- Recognized gain: $8,000 (lesser of realized gain or net cash received after offsetting commission)

3. Basis of Replacement Property

The basis of the like-kind property received is generally:- The basis of the property given up,- Decreased by any money received,- Increased by any gain recognized,- Increased by selling/exchange expenses paid.

Formula:

Basis of Replacement Property = Adjusted basis of relinquished property – money received + gain recognized + selling/exchange expenses paid

4. Summary of Key Points

  • In a partial §1031 exchange, the recognized gain is limited to the amount of boot received (money and non-like-kind property), after reducing the boot by selling/exchange expenses.
  • Selling/exchange expenses are subtracted from the total consideration received to determine the amount realized, thus reducing both realized and recognized gain.
  • The basis of the replacement property is adjusted for the recognized gain, money received, and selling/exchange expenses.

In summary: Gain in a partial §1031 exchange is calculated as the amount realized (including all property and boot received, minus selling/exchange expenses) minus the adjusted basis of the relinquished property. Recognized gain is limited to the net boot received. Selling/exchange expenses are included in the calculation by reducing the amount realized, thereby reducing both realized and recognized gain.

Table of Contents

Was this answer helpful?

Go beyond the search box and discover how Blue J makes tax research as quick and easy as asking a colleague.

What Tax Professionals Are Saying

"We continuously explore avenues to elevate the services we provide to our clients. The integration of Blue J into our operations empowers us to leverage the capabilities of generative AI for tax. Already, we’ve seen an instance in which documents that would have taken hours to find are coming up in minutes. The significant time savings and improved access to important tax materials allow our team to allocate more focus towards strategic client advisory."

Sarah Chen
Senior Tax Manager
Regional Accounting Firm
$37,000+ in tax savings found

"Our firm enjoys using Blue J. We have confidence that the data and resources the product is pulling from is official source documents and not commentary. Our staff enjoys the flexibility to switch from technical memos to client “plain language” memos at the push of a button. Team members from experienced staff to brand new staff find huge value in Blue J."

Sarah Chen
Senior Tax Manager
Regional Accounting Firm
$37,000+ in tax savings found

What Blue J customers are saying

Darin K. Seal

“We are excited to use Blue J to elevate the initial work product our team is able to produce."

"We’re incorporating Blue J to ensure our people are well-equipped with a research tool that delivers on both ease of use and quality of deliverable. It will save us a lot of time as a starting point, so we can focus our efforts on the analysis. Ultimately, it helps us get to the right answer, faster.”

"We’re incorporating Blue J to ensure our people are well-equipped with a research tool that delivers on both ease of use and quality of deliverable. It will save us a lot of time as a starting point, so we can focus our efforts on the analysis. Ultimately, it helps us get to the right answer, faster.”

Read More
Darin K. Seal, Partner In Charge of the Tax Department
HMV CPAs
Matt Mueller

"We had used Checkpoint for a long time but found it wasn’t particularly well-used in our practice."

"A lot of our practitioners would have to turn to Google to find what they were looking for, which of course isn’t ideal. Blue J is a real game-changer when it comes to this, since it combines the efficiency of Google with the authoritative tax materials our people really need to serve their clients best. At ELO, we pride ourselves on providing services that are focused on value for clients and exceeding their expectations. Adding Blue J to our toolbox will enable us to do just that, as we continue to evolve our service offerings to better serve our clients’ needs.”

"A lot of our practitioners would have to turn to Google to find what they were looking for, which of course isn’t ideal. Blue J is a real game-changer when it comes to this, since it combines the efficiency of Google with the authoritative tax materials our people really need to serve their clients best. At ELO, we pride ourselves on providing services that are focused on value for clients and exceeding their expectations. Adding Blue J to our toolbox will enable us to do just that, as we continue to evolve our service offerings to better serve our clients’ needs.”

Read More
Matt Mueller, Partner and Tax Practice Leader
ELO CPAs
David L. Phelps

"We find this tool to be a game-changer for us and our clients.”

“We had the opportunity to pilot some other AI solutions in the market, and found that the improvement over traditional search was limited - except in Blue J’s case, where the efficiency gain over traditional research methods is significant."

“We had the opportunity to pilot some other AI solutions in the market, and found that the improvement over traditional search was limited - except in Blue J’s case, where the efficiency gain over traditional research methods is significant."

Read More
David L. Phelps, Tax Director
Barnes Dennig
Mathew Talcoff

“Blue J is an exciting technology because it enables the practitioner to remain in the driver’s seat of the analysis."

"Thoughtful functions are included to encourage and facilitate deeper analysis, not to replace or reduce it. We’ll continue to find new and impactful ways to leverage the technology, which has benefited our clients and staff alike. At RSM we strive to be compelling to our clients and to be digital by embracing new technologies to fulfill that promise.”

"Thoughtful functions are included to encourage and facilitate deeper analysis, not to replace or reduce it. We’ll continue to find new and impactful ways to leverage the technology, which has benefited our clients and staff alike. At RSM we strive to be compelling to our clients and to be digital by embracing new technologies to fulfill that promise.”

Read More
Mathew Talcoff, Partner and Washington National Tax Leader
RSM US
Tanya Silves

"We wanted to have a tool that people were using at all staff levels."

"We wanted something that lived up on their third screen - something that would be available and helpful to them every day. What we've found is it's been easy to get people to get into the habit of using Blue J because it helps people. Blue J allows us to quickly respond to client questions in a way that they can understand it, which helps us deal with the volume of client questions that come in. We were up and running very quickly with Blue J - within 5 minutes, our staff understood how this will be helpful, and the rest of the training program is refining prompting skills and building use cases and best practices."

"We wanted something that lived up on their third screen - something that would be available and helpful to them every day. What we've found is it's been easy to get people to get into the habit of using Blue J because it helps people. Blue J allows us to quickly respond to client questions in a way that they can understand it, which helps us deal with the volume of client questions that come in. We were up and running very quickly with Blue J - within 5 minutes, our staff understood how this will be helpful, and the rest of the training program is refining prompting skills and building use cases and best practices."

Read More
Tanya Silves, Partner & Tax Director
Larson Gross

Ready to Transform Your Tax Research?

Join thousands of tax professionals who save hours every week with our AI-powered research.