Business-asset sales net under section 1231 before this step's netting: combine all section 1231 gains and losses for the year, treat a net loss as ordinary, and treat a net gain as ordinary up to nonrecaptured section 1231 losses from the previous 5 years, carrying the rest to the long-term group as long-term capital gain from Part I of Form 4797. Netting then runs in steps. Total the short-term group on its own and the long-term group on its own, then combine the two net results. A combined net gain is taxable, with maximum rates of 0%, 15%, 20%, 25%, and 28% — the 25% rate capping unrecaptured section 1250 gain and the 28% rate covering collectibles gains. Recapture itself sits outside this netting: section 1245 gain is ordinary up to depreciation allowed or allowable, while section 1250 gain is ordinary only up to additional depreciation. Capital losses offset capital gains in full; only a spillover net loss beyond those gains meets the yearly deduction cap of $3,000 ($1,500 if married filing separately), with the excess carried forward.
Worked example
A filer has a $5,000 short-term gain and a $9,000 short-term loss, netting to a $4,000 short-term loss, plus a $10,000 long-term gain and a $2,000 long-term loss, netting to an $8,000 long-term gain. Combined, $8,000 − $4,000 = $4,000 of net capital gain, taxable for the year. Had the longs instead netted to zero, the $4,000 short-term loss would allow a $3,000 deduction this year and a $1,000 carryover.