A little knowledge. A better financial future.Independent finance journal

Explore

Portfolio Rebalancing

8 min read

Before You Sell to Rebalance: Check Tax Lots, Holding Periods, and Capital Gains

Two sales can restore the same portfolio allocation and realize different capital gains. Learn how to compare tax lots, check holding periods, and weigh an immediate rebalance against a smaller trade or a delay.

A hand pulls one of three matching fabric swatches from a sample rail, exposing its pale lining beside the darker linings of the other swatches.

A portfolio can drift away from its target allocation as its investments change in value. Once a review shows how much exposure has shifted, the obvious question is how much to sell. In a taxable brokerage account, a second question matters just as much for the tax calculation: which shares would the sale actually use?

Shares of the same investment can have different purchase prices and holding periods. Two orders for the same number of shares can therefore leave identical investments and weights in the portfolio while producing different gains for the year. Tax-efficient portfolio rebalancing starts by comparing those two outcomes side by side: how much the trade changes the allocation and what gain or loss it realizes.

Translate allocation drift into a dollar amount

Asset allocation is the share of a portfolio assigned to each investment category. A rebalance changes those weights to bring the portfolio closer to its target. The first calculation identifies how much value would need to move from an overweight category to an underweight one.

In a hypothetical $100,000 portfolio with a target of 60% stocks and 40% bonds, the current mix is $64,000 in stocks and $36,000 in bonds. Moving $4,000 from stocks to bonds would restore the target at the stated prices, assuming the entire sale proceeds are reinvested and ignoring costs. If part of the proceeds goes toward taxes or fees, both the amount reinvested and the resulting weights can change.

The account that holds the assets also affects the comparison. Selling an investment in a taxable brokerage account generally realizes a capital gain or loss. A trade within an IRA generally creates no current capital gain or loss on an individual tax return. Traditional IRA distributions are generally taxable to the extent they consist of untaxed amounts, and qualified Roth IRA distributions are generally tax-free. If an allocation target spans several accounts, an internal retirement-account trade may change the combined weights when that account holds the relevant exposure. The household’s combined allocation and each account’s own allocation can move by different amounts.

Compare the tax lots available for sale

Read the basis and acquisition date for each lot

A tax lot is a group of shares acquired in one transaction. A later purchase of the same investment creates another lot. Automatic dividend reinvestment can also create separate lots, so a position opened years ago may still include recently acquired shares.

Cost basis is generally what was paid to acquire shares, including applicable purchase costs. Adjusted basis reflects later changes required for tax purposes. For example, a return of capital generally reduces basis to the extent basis remains. A sale’s gain or loss is the amount realized, generally after applicable selling costs, minus the adjusted basis of the shares sold. A position’s overall gain may combine individual lots with gains, losses, and very different acquisition dates.

See what the same $4,000 sale can realize

Suppose the stock exposure in the hypothetical portfolio includes three lots of the same investment. Each lot has 40 shares, and the investment trades at $100 per share. Selling any one lot would raise $4,000 before costs. Assume the listed basis amounts already reflect any adjustments and ignore selling costs.

Hypothetical comparison of three lots in the same investment
LotHolding period at saleAdjusted basis per shareSale proceedsRealized gain
ATwo years$55$4,000$1,800 long-term
BTen months$90$4,000$400 short-term
CEighteen months$80$4,000$800 long-term

At the same sale price, each choice reduces the stock allocation by the same amount. Lot A realizes $1,800 because the shares have a combined basis of $2,200. Lot B has the highest basis and produces the smallest gain, but the gain is short-term. Lot C produces a larger gain than B and qualifies for long-term treatment. Comparing B with C requires looking at both the size of the gain and how it would be taxed.

Lot selection also changes what remains in the account. Selling Lot B leaves both lower-basis lots in place. If those shares are sold later, their existing basis will help determine the gain or loss at that time. A smaller gain this year can leave more unrealized gain in the portfolio at today’s prices.

Check when each lot becomes long-term

Under general U.S. federal rules, shares held for more than one year generate a long-term capital gain or loss when sold. Shares held for one year or less generate a short-term gain or loss. For ordinary purchases and sales of securities on an established market, the holding period generally starts the day after the purchase trade date and includes the sale trade date. For example, shares bought on November 20 of one year generally reach long-term status for a sale on November 21 of the following year. A sale on November 20 is still short-term under that counting rule.

A lot nearing that date creates a timing comparison. An immediate sale changes the portfolio’s exposure at the current execution price. Waiting leaves the existing exposure in place and may change both the portfolio weights and the amount of the gain. If the price rises, the gain that eventually qualifies for long-term treatment can be larger. If the price falls, the gain may shrink while the portfolio also loses value on the shares still held. A partial sale can reduce some of the drift immediately while leaving the rest of the allocation adjustment for a later review.

The trade-off depends on the amount of drift as well as the time remaining. If an investor’s existing plan allows the stock weight to fluctuate between 57% and 63%, a move from 64% to 63% would take a $1,000 shift at the example’s prices. That smaller trade reaches the edge of the stated range, while the $4,000 trade restores the exact target. The remaining exposure and the tax lots used would differ.

Put the gain in the context of the tax year

Short-term gains that remain taxable after netting are generally taxed at ordinary federal income tax rates. Net long-term capital gains on typical stock and fund shares generally qualify for preferential federal rates, with the applicable treatment depending on taxable income. A preferential rate on a larger gain can still yield more tax than an ordinary rate on a smaller one. In the example, the long-term gain on Lot C is twice the size of the short-term gain on Lot B. If each gain were taxed entirely at one applicable rate, with no offsets or other effects, their federal tax costs would be equal only if the short-term rate were twice the long-term rate.

The return brings together gains and losses from across the year. In general, short-term gains and losses are first netted within their group, and long-term gains and losses within theirs. When one group produces a net gain and the other a net loss, the two generally offset. Prior-year capital loss carryovers can enter the calculation. For example, a hypothetical $500 available short-term loss would fully offset Lot B’s $400 short-term gain if those were the only two items. With Lot C instead, the same $500 net short-term loss would generally offset part of its $800 long-term gain, leaving a $300 net long-term gain.

A useful estimate compares the year’s projected tax with and without the proposed transaction. That captures the effect of available losses, other gains, and how much of the added gain falls into an applicable rate range. State income taxes can change the comparison, as can the federal net investment income tax for people subject to it. If a candidate lot would realize a loss, a purchase of substantially identical securities within 30 days before or after the sale can trigger the wash-sale rule and disallow some or all of the immediate loss deduction. Automatic reinvestment can count as a purchase.

Verify which lots the order will use

A broker’s sale preview may show a default disposal method. Under first in, first out, or FIFO, the earliest acquired shares are treated as sold first. In the example, FIFO would use Lot A because it is the oldest of the three. Specific identification can allow the order to use Lot B, Lot C, or a combination, subject to the account’s basis method and the broker’s procedures. For shares held by a broker, adequate identification generally involves specifying the shares at the time of sale and obtaining written confirmation from the broker within a reasonable time. Eligible fund shares may also use average basis, which changes how basis per share is calculated.

A pre-trade comparison can be recorded in a few lines:

  • Allocation. The current weight, target weight or range, proposed sale amount, and estimated weight after reinvestment.
  • Lots. The share count, acquisition date, adjusted basis, and estimated gain or loss for each lot the order would use.
  • Timing. The earliest long-term sale date for any short-term lot under consideration and the allocation that would remain during a delay.
  • Tax-year context. Other realized gains and losses, available carryovers, and the estimated change in tax under each scenario.

Transferred holdings and older positions can show incomplete basis records. Purchase confirmations, transfer statements, and records of corporate actions can help establish the missing details. After execution, the lot confirmation provides a record to compare with the planned sale and, later, with any basis and proceeds shown on Form 1099-B. The execution price can also differ from the price used in the original estimate.

Two trades can reach the same allocation and leave different lots behind. A useful rebalancing comparison shows the resulting weights, the estimated change in tax for the year, and the basis and holding periods that will carry into the next review.

Financemonk publishes educational content. This article does not constitute financial, tax or legal advice.

By FinancemonkPublished

Publication method & corrections · Articles may use AI assistance; automated checks are not human expert review.

← More from the journal