Selling the truck, the building, and swapping the warehouse (§1231, §1245, §1250, §1031)

Lesson 9 · Business Tax Preparation · about 55 min · tax year 2025

Today's idea

When a business sells an asset, the question is what kind of gain it is. Depreciation you took comes back as ordinary income on equipment (§1245); on real property it shows up as unrecaptured §1250 gain (max 25%); the rest is §1231 gain, taxed as long-term capital gain. And a like-kind exchange of real property can defer the gain — except for the "boot."

The story

Dara Lindqvist runs Lindqvist Delivery as a sole proprietor. This year three things happen.

The truck. Dara bought a delivery truck for $60,000 years ago, has taken $45,000 of depreciation, and has owned it well over a year. Its adjusted basis is $15,000. A buyer offers $70,000.

The garage building. Dara also owns the depot building (ignore the land). It cost $400,000, she has taken $100,000 of straight-line depreciation, so the adjusted basis is $300,000. She sells it for $450,000.

The warehouse swap. Separately, Dara's brother Hector owns a rental warehouse with an adjusted basis of $100,000, a value of $220,000 and an $80,000 mortgage. On November 15, 2025 he trades it for a bigger building worth $250,000 carrying a $150,000 mortgage, and the other owner also hands him $40,000 in cash. Hector holds both properties for investment/business use.

Try it first 2 minutes · no peeking

Before reading: (1) For the truck, how much of Dara's gain is ordinary income and how much is §1231 gain? (2) For the building, is any of the gain ordinary? What's special about $100,000 of it? (3) In Hector's swap, how much gain does he recognize this year?

Hint for (3): boot. What counts as boot, and do the mortgages cancel?

Jot your answer down, then scroll. Being wrong first is the point — it makes the walk-through stick.

Walk-through

First, the amount realized is what you get (cash + value of other property + liabilities you're relieved of, less selling costs). Gain = amount realized − adjusted basis. Then you ask what character the gain has.

The truck — §1245 (equipment and other personal property)

Gain = $70,000 − $15,000 = $55,000. For §1245 property, the gain is ordinary income up to the depreciation you took ($45,000). Only the gain beyond that — $10,000 — is §1231 gain (held more than a year, used in business), which is generally taxed as long-term capital gain. You report it on Form 4797.

Two variations. Sell the truck for only $40,000: gain is $25,000, smaller than the $45,000 of depreciation, so all $25,000 is ordinary and none is §1231. Sell it for $12,000: there's a $3,000 loss, which is a §1231 loss; a net §1231 loss is ordinary (good: no capital-loss limits).

§1231 netting. Combine all §1231 gains and losses for the year. A net loss is ordinary. A net gain is ordinary income to the extent of nonrecaptured §1231 losses from the prior 5 years, and only the rest is long-term capital gain. So a $30,000 net gain with $12,000 of nonrecaptured losses gives $12,000 ordinary and $18,000 long-term capital gain.

The building — §1250 (real property)

Gain = $450,000 − $300,000 = $150,000. "§1250 recapture" as ordinary income applies only to additional depreciation (more than straight-line), and real property placed in service under MACRS is depreciated straight-line, so there's generally no ordinary recapture. Instead, the gain attributable to the depreciation taken — $100,000 — is unrecaptured §1250 gain, taxed at a maximum 25% rate. The remaining $50,000 is ordinary §1231 gain treated as long-term capital gain (0/15/20%).

Quick sort. §1245 = equipment, vehicles, most personal property: gain is ordinary up to depreciation. §1250 = buildings and structural components: straight-line, so the depreciation part is taxed at up to 25%. §1231 = the net result for business property held over a year. Land isn't depreciated, so no recapture on the land.

Hector's swap — §1031

Since 2018, only real property held for investment or for productive use in a trade or business qualifies as like-kind (not equipment, and not property held primarily for sale like a developer's inventory). If he receives only like-kind property, he recognizes no gain. Boot — cash or non-like-kind property received, or net relief from debt — is taxed, but only up to the realized gain.

Realized gain: amount realized ($250,000 building + $40,000 cash + $80,000 debt relief − $150,000 debt assumed = $220,000) − $100,000 basis = $120,000. Liabilities are netted: he's relieved of $80,000 but takes on $150,000, so there's no net debt relief. Boot = the $40,000 of cash. Recognized gain = the lesser of boot and realized gain = $40,000; the other $80,000 is deferred. New basis = $250,000 value − $80,000 deferred gain = $170,000 (equivalently old basis $100,000 + $70,000 of additional debt taken on + $40,000 gain recognized − $40,000 cash).

If there were no cash and the debts matched (an $80,000 mortgage on each side, building worth $220,000), boot is $0, recognized gain $0, and the new basis stays at $100,000. If the new building carried only $30,000 of debt (worth $170,000), Hector would be relieved of a net $50,000 — boot of $50,000, all of it recognized.

The clocks

Report the exchange on Form 8824. In a deferred exchange, identify replacement property in writing within 45 days of transferring the old property, and receive it by the earlier of 180 days or the due date (with extensions) of the return for that year. Hector transferred on Nov 15, 2025: 45 days is December 30, 2025; 180 days is May 14, 2026, but the return due date (April 15, 2026, unless extended) is earlier — so he must close by then or file an extension.

Open the widget

The truck: §1245 toggle, $15,000 basis, $45,000 depreciation, $70,000 cash.

Open D2.assets-dispositions.html with this scenario filled in →

FieldValue
basis15000
depr45000
cash70000
other0
liab0
sellExp0
char1245

What you should see: Gain $55,000; the summary line shows ordinary $45,000 and §1231/capital $10,000. Change cash to 40,000 and all the gain becomes ordinary.

The building: choose the §1231 toggle. (The widget doesn't split out the 25% unrecaptured §1250 piece — the lesson does.)

Open D2.assets-dispositions.html with this scenario filled in →

FieldValue
basis300000
depr100000
cash450000
other0
liab0
sellExp0
char1231

What you should see: Gain $150,000 with ordinary $0 — it all lands in §1231/capital; mentally carve out $100,000 as unrecaptured §1250.

Hector's swap.

Open D2.1031-like-kind.html with this scenario filled in →

FieldValue
fmvGiven220000
abGiven100000
liabRelief80000
fmvRecv250000
liabAssume150000
cashRecv40000
cashPaid0
otherRecv0
otherPaid0
exchExp0

What you should see: Realized $120,000, boot $40,000, recognized $40,000, deferred $80,000, new basis $170,000.

The net-debt-relief version: the new building has only $30,000 of debt.

Open D2.1031-like-kind.html with this scenario filled in →

FieldValue
fmvGiven220000
abGiven100000
liabRelief80000
fmvRecv170000
liabAssume30000
cashRecv0
cashPaid0
otherRecv0
otherPaid0
exchExp0

What you should see: Boot $50,000 from net debt relief, recognized $50,000, deferred $70,000, basis $100,000.

Practice questions

Answer all of them on paper first. Then tap Show answer & why: the rule, how to decide, why each choice is right or wrong, the numbers, and the IRS source. Want more? The practice set (20 questions) has more scenarios on this topic.

Q1. Dara sells a delivery truck used in her business for $70,000. She bought it for $60,000, has taken $45,000 of depreciation, and has held it for years. What is the character of her gain?

  1. $45,000 ordinary income and $10,000 §1231 gain
  2. All $55,000 §1231 gain
  3. $55,000 ordinary income
  4. $10,000 ordinary and $45,000 §1231 gain
Show answer & why

Answer: A — $45,000 ordinary income and $10,000 §1231 gain

The rule, in plain English

§1245 recapture: ordinary income = lesser of gain or depreciation taken; the rest of the gain is §1231.

How to decide

  1. Gain = price − adjusted basis.
  2. Ordinary = lesser of gain or depreciation.
  3. Remainder = §1231.

Why each choice is right or wrong

  • A — Correct. Gain is $55,000. §1245 recapture is the lesser of the gain or the depreciation: $45,000 ordinary. The remaining $10,000 is §1231.
  • B — Wrong. Ignores §1245 recapture of depreciation on personal property.
  • C — Wrong. Recapture is capped at depreciation taken ($45,000). The excess over original cost can't be ordinary recapture.
  • D — Wrong. Flips the two pieces.

IRS source

Pub 544 (2025), Section 1245 Property.

Q2. The same truck is sold for only $40,000. What is the gain and its character?

  1. $25,000 §1231 gain
  2. $45,000 ordinary income
  3. $25,000 gain, all ordinary income
  4. $40,000 gain, all ordinary income
Show answer & why

Answer: C — $25,000 gain, all ordinary income

The rule, in plain English

When the gain is smaller than the depreciation taken, all of the gain is §1245 ordinary income.

How to decide

  1. Gain = price − adjusted basis.
  2. Gain < depreciation → all ordinary.

Why each choice is right or wrong

  • A — Wrong. §1245 recapture takes priority up to depreciation taken.
  • B — Wrong. Recapture can't exceed the gain.
  • C — Correct. Gain is $40,000 − $15,000 = $25,000, less than the $45,000 depreciation, so the whole gain is recaptured as ordinary.
  • D — Wrong. That's the amount realized, not the gain. Subtract the $15,000 adjusted basis first.

IRS source

Pub 544 (2025).

Q3. Dara sells her depot building (ignore land) for $450,000. Adjusted basis is $300,000 after $100,000 of straight-line depreciation. How is the $150,000 gain treated?

  1. All $150,000 is taxed as ordinary income
  2. $100,000 is unrecaptured §1250 gain (max 25% rate); $50,000 is §1231 gain taxed at long-term capital gain rates
  3. All $150,000 is taxed at 0/15/20% long-term capital gain rates
  4. $100,000 is ordinary income and $50,000 is §1231 gain
Show answer & why

Answer: B — $100,000 is unrecaptured §1250 gain (max 25% rate); $50,000 is §1231 gain taxed at long-term capital gain rates

The rule, in plain English

Straight-line real property: no ordinary recapture for individuals, but gain up to the depreciation taken is unrecaptured §1250 gain (max 25%).

How to decide

  1. Gain = price − adjusted basis.
  2. Unrecaptured §1250 = lesser of gain or depreciation.
  3. Rest = §1231 gain at capital gain rates.

Why each choice is right or wrong

  • A — Wrong. Ordinary §1250 recapture applies only to depreciation above straight-line, which MACRS real property doesn't have.
  • B — Correct. No ordinary recapture for straight-line real property, but the depreciation portion is taxed at up to 25%.
  • C — Wrong. The depreciation piece is subject to the special maximum 25% rate.
  • D — Wrong. That's the §1245 pattern, which is for personal property.

IRS source

Pub 544 (2025), unrecaptured section 1250 gain.

Q4. Hector trades a rental warehouse (adjusted basis $100,000, value $220,000, $80,000 mortgage) for a building worth $250,000 with a $150,000 mortgage, and receives $40,000 cash. What gain does he recognize, and what is his basis in the new building?

  1. $120,000 recognized; basis $100,000
  2. $0 recognized; basis $170,000
  3. $40,000 recognized; basis $100,000
  4. $40,000 recognized; basis $170,000
Show answer & why

Answer: D — $40,000 recognized; basis $170,000

The rule, in plain English

Like-kind exchange: recognized gain = lesser of realized gain or net boot; basis = FMV of new property − deferred gain.

How to decide

  1. Realized gain = value received − basis.
  2. Net liabilities: relief offset by debt assumed; cash received is boot.
  3. Recognized = lesser; basis = new FMV − deferred gain.

Why each choice is right or wrong

  • A — Wrong. Treats the whole realized gain as taxable; like-kind exchange defers all but the boot.
  • B — Wrong. Ignores boot. Cash received is taxed up to the realized gain.
  • C — Wrong. Forgets the additional mortgage he takes on and the gain recognized, which adjust basis.
  • D — Correct. Realized gain is $120,000; boot is the $40,000 cash (debt nets to no relief). Recognized = lesser = $40,000; deferred $80,000. Basis = $250,000 − $80,000 deferred = $170,000.

IRS source

Pub 544 (2025), Like-Kind Exchanges; Form 8824 instructions.

Q5. Hector transfers his old warehouse on November 15, 2025 in a delayed exchange and he files his 2025 return on time without an extension (due April 15, 2026). By what dates must he identify and receive the replacement property?

  1. Identify by Dec 30, 2025; receive by May 14, 2026
  2. Identify by Dec 30, 2025; receive by April 15, 2026
  3. Identify by Jan 14, 2026; receive by May 14, 2026
  4. Both by Dec 31, 2025
Show answer & why

Answer: B — Identify by Dec 30, 2025; receive by April 15, 2026

The rule, in plain English

Delayed exchange: identify within 45 days; receive by the earlier of 180 days or the return due date (with extensions).

How to decide

  1. Transfer date + 45 days = identification deadline.
  2. Earlier of transfer + 180 days or the tax-return due date (including extensions).

Why each choice is right or wrong

  • A — Wrong. Uses 180 days and ignores the earlier due-date limit (unless he extends the return).
  • B — Correct. 45 days to identify. He must receive it by the earlier of 180 days (May 14, 2026) or the return due date with extensions (April 15, 2026).
  • C — Wrong. 45 days from Nov 15 is Dec 30, not Jan 14 (that would be 60 days).
  • D — Wrong. Nothing forces both to year end; the clocks are 45 days and 180 days/due date.

IRS source

Pub 544 (2025), deferred exchange time limits.

Practice set (20 questions)

Same topic, more scenarios: 20 exam-style questions (16 with dollar amounts to work out step by step), each with the rule, how to decide, why every choice is right or wrong, and the IRS source.

Open the practice set (20 questions) →

Close the loop

Key rules in one line

1245 = ordinary up to depreciation; 1250 real property SL → unrecaptured 1250 at max 25%; net 1231 loss = ordinary, net gain ordinary up to 5-yr nonrecaptured losses; 1031: real property only, boot taxed up to gain, basis = new FMV − deferred gain; 45 days / 180 days or return due date

Memory trigger: Equipment gives the depreciation back as ordinary; buildings give it back at 25%; in a swap only the boot gets taxed.

Missed one? Jot down why in My mistake notes — it helps you spot patterns.

Sources checked
  • Pub 544 (2025): §1245 property, §1250 property, §1231 gains and losses (netting, nonrecaptured §1231 losses), unrecaptured §1250 gain, like-kind exchanges (real property only; boot; basis; 45-day and 180-day rules; Form 8824).
  • Instructions for Form 8824 (2025): netting of liabilities, lines 15–25.
  • Not verified: Form 4797 line mechanics, the exact tax-rate brackets for capital gain (0/15/20%), and the treatment of qualified production property (new §168(n)), which the exam is unlikely to test in depth.

Study material, not tax advice or an IRS publication. Numbers follow tax year 2025 (the Nov 2026 SEE tests 2025 law per the Candidate Information Bulletin).