Capital-gains planning starts with accurate basis, holding periods and a projection of the whole tax return. Compare tax-lot choices and sale timing with the reason for selling, required cash and the risk of retaining the investment. A smaller immediate tax bill is not automatically a better financial result.
This guide focuses on U.S. taxable-investment sale planning. It uses invented stock examples and assumed tax rates; it does not quote current market prices or determine anyone’s actual bracket.
In This Guide
- 1 Build the sale record first
- 2 Calculate gain separately from sale proceeds
- 3 Review lots before submitting the order
- 4 Holding period is one part of the calculation
- 5 Losses require return-level and replacement-trade review
- 6 Separate account rules from moving an existing gain
- 7 Turn the projection into a usable decision
- 8 Sources
Build the sale record first
| Input | Question to resolve |
|---|---|
| Quantity and tax lots | Which shares are actually being sold? |
| Acquisition dates | What holding period applies to each lot? |
| Adjusted basis | Are purchases, reinvestments and adjustments recorded? |
| Expected proceeds and costs | What amount will be realized? |
| Other return items | How do gains, losses, carryforwards and income interact? |
| Cash objective | How much spendable cash is needed after the tax provision? |
Keep trade confirmations and earlier statements when assets transfer between brokers. An incomplete basis field does not prove that the cost was zero. Inherited, gifted, employee-compensation and corporate-action shares can require additional records and rules.
Calculate gain separately from sale proceeds
Assume a fictional investor owns 1,000 shares with an adjusted basis of $20 each and sells at an invented $50 per share. Ignore trading costs. Gross proceeds are $50,000, basis is $20,000 and gain is $30,000.
If an assumed 15% rate applied to that entire gain, the modeled federal tax would be $4,500 and cash after that provision would be $45,500. This rate is an illustration, not an eligibility determination. State tax, other federal taxes and return-level interactions are omitted.
| Hypothetical sale | Proceeds | Basis | Gain | Assumed 15% tax |
|---|---|---|---|---|
| 1,000 shares | $50,000 | $20,000 | $30,000 | $4,500 |
| 500 shares | $25,000 | $10,000 | $15,000 | $2,250 |
The smaller sale leaves $22,750 after the assumed tax provision and 500 unsold shares worth $25,000 at the illustrative price. Those remaining shares are market exposure, not cash available for a bill. Their value can change before a later sale.
Review lots before submitting the order
IRS Publication 550 describes adequate identification of particular shares and the confirmation requirements when the broker holds them. Confirm the broker’s applicable process and retain the resulting records. Do not assume that choosing a lot informally after execution changes the tax record.
Consider two invented eligible lots of 100 shares each, with adjusted bases of $20 and $40 per share. Selling 100 shares at $50 produces $3,000 or $1,000 of gain depending on the properly identified lot. With the same assumed 15% rate, the modeled taxes are $450 or $150.
The $300 immediate difference does not eliminate the embedded gain in the shares retained. Holding periods, future prices, future tax treatment and the investor’s objective can change the preferred decision. Model the remaining position as well as the sale.
Holding period is one part of the calculation
IRS Topic 409 generally distinguishes long-term treatment for assets held more than one year from short-term treatment for one year or less. Netting, income and asset-specific rules affect the outcome. Do not apply a U.S. rate or holding-period rule to another country automatically.
Waiting can change both the tax treatment and the market value. For an invented position with $20,000 basis, a sale at $50,000 gives a $30,000 gain. At an assumed 20% rate, cash after the tax provision is $44,000. If the price falls and proceeds become $45,000, gain is $25,000; even at an assumed 15% rate, resulting cash is $41,250.
That scenario is not a price forecast. It shows why waiting for a lower rate can leave less cash. Compare the uncertainty with concentration, diversification and the deadline for the money’s use.
Losses require return-level and replacement-trade review
IRS guidance describes capital-gain and loss netting, limits on losses used against other income, and carryforwards. A realized loss is not a cash refund equal to the loss. Its usable tax effect depends on the return.
For stocks and securities, wash-sale rules can disallow a loss when relevant substantially identical replacement transactions occur within 30 days before or after the sale. Review automatic reinvestments and other relevant accounts rather than relying solely on a single brokerage screen.
Use the loss-harvesting rules guide for the separate matching and basis analysis. Compare trading costs, replacement exposure and available tax use before making a loss sale.
Separate account rules from moving an existing gain
An IRA or employer plan has its own contribution, eligibility, conversion and withdrawal rules. Opening a retirement account does not retroactively erase a gain already realized in a taxable account.
Review the Roth IRA conditions and account comparison before including a retirement-account assumption in the sale plan. A contribution limit is not a general shelter for unlimited sale proceeds.
Property exchanges, charitable transfers, trusts and opportunity-zone provisions require separate eligibility, documents and current-law review. They are not interchangeable methods to eliminate every stock-sale tax. Start a proposed property exchange with the real-property exchange overview.
Turn the projection into a usable decision
- State the cash need and the investment reason for selling.
- Reconcile basis and acquisition dates for the available lots.
- Compare full, partial and differently timed sales under explicit assumptions.
- Project the entire relevant tax return and payment obligations.
- Confirm trade instructions and retain confirmations.
- Reconcile actual proceeds, tax records and the remaining exposure afterward.
Review estimated-payment obligations before spending all the proceeds. Keep the tax provision accessible rather than assuming the money will not be needed until the return is filed. Use the capital-gains record framework for related planning questions.
Sources
- IRS Publication 550: investment basis, share identification and wash sales
- IRS Topic 409: capital gains, losses and reporting principles
Reviewed October 12, 2026. U.S. educational information. All shares, prices and tax rates are hypothetical; actual tax results depend on the taxpayer, asset and tax year.
