Same sale price, so why can the profit on your books differ so much?
Today, while reviewing the IRS guidance on investment income, I was reminded that when you buy shares in multiple batches, the cost basis assigned to the shares you sell affects your realized gain or loss. If you can adequately identify which batch you sold, use that batch’s cost basis; if not, the applicable rules generally use the earliest-acquired shares.
A purely illustrative example, excluding taxes and fees: First, buy 10 shares at $50 each, then 10 at $100 each, and later sell 10 at $120 each. If the shares sold are matched to the first batch, the realized profit is $700; if matched to the second, it’s $200. The sale price hasn’t changed—the difference comes from the historical cost basis used.
But this hasn’t conjured up $500 in extra profit. Assume the remaining shares are still worth $120 each. Under the first method, the remaining unrealized gain is $200; under the second, it’s $700. Realized plus unrealized gains total $900 in either case.
My take: when showing off a nice-looking screenshot of a closed position’s gains, also consider what cost basis the remaining holdings carry. Increasing realized profit alone doesn’t necessarily increase your account’s total return; taxes, fees, and the specific rules that apply are another matter to calculate separately.
The same “realized plus unrealized” accounting approach can also be useful when reviewing the portfolio $BTC $ETH $SOL , but U.S. stock-lot rules should not be treated as tax rules that automatically apply to every asset, platform, or jurisdiction. Get the full accounting straight before judging trading performance.
Tap my profile picture to see my live trades
Today, while reviewing the IRS guidance on investment income, I was reminded that when you buy shares in multiple batches, the cost basis assigned to the shares you sell affects your realized gain or loss. If you can adequately identify which batch you sold, use that batch’s cost basis; if not, the applicable rules generally use the earliest-acquired shares.
A purely illustrative example, excluding taxes and fees: First, buy 10 shares at $50 each, then 10 at $100 each, and later sell 10 at $120 each. If the shares sold are matched to the first batch, the realized profit is $700; if matched to the second, it’s $200. The sale price hasn’t changed—the difference comes from the historical cost basis used.
But this hasn’t conjured up $500 in extra profit. Assume the remaining shares are still worth $120 each. Under the first method, the remaining unrealized gain is $200; under the second, it’s $700. Realized plus unrealized gains total $900 in either case.
My take: when showing off a nice-looking screenshot of a closed position’s gains, also consider what cost basis the remaining holdings carry. Increasing realized profit alone doesn’t necessarily increase your account’s total return; taxes, fees, and the specific rules that apply are another matter to calculate separately.
The same “realized plus unrealized” accounting approach can also be useful when reviewing the portfolio $BTC $ETH $SOL , but U.S. stock-lot rules should not be treated as tax rules that automatically apply to every asset, platform, or jurisdiction. Get the full accounting straight before judging trading performance.
Tap my profile picture to see my live trades

