Review tax lots, holding periods, gain and loss netting, wash sales and income interactions before a year-end sale. Include estimated-payment timing.
October 20, 2025 · Financial Forte Staff
Historical article: prepared retrospectively using information available as of October 20, 2025.
Selling an investment near year-end can solve a portfolio problem and create a tax question at the same time. A position may have grown too large, cash may be needed for a purchase, or an investment may no longer fit the plan. Before placing the trade, understand which gain or loss the sale would actually realize.
Review the investment reason, the tax lot and the rest of the year's income together. The goal is to keep the portfolio aligned with your needs while avoiding an unnecessary tax surprise. Minimizing one tax line should not become the only measure of a sound investment decision.
Identify the gain before estimating the tax
For a taxable-account sale, the gain generally depends on the proceeds and adjusted basis, with transaction details and adjustments considered. The account's total profit since opening is not necessarily the gain on the specific shares you plan to sell. Different purchases of the same investment can have different bases and holding periods.[1]
Capital gains are generally short-term when the asset was held one year or less and long-term when held more than one year. Short-term net gains generally face ordinary income tax rates. Long-term net gains can receive different federal rates, depending on income and the type of asset. Special categories can have different rules.[1]
Check the available tax lots and the institution's identification procedures before trading. Choosing specific shares after the transaction may not be possible if the required identification was not made properly. Also verify records for reinvested distributions, transfers and any other basis adjustments rather than assuming the screen is complete.
If a sale is close to the one-year boundary, compare the possible tax difference with the risk of continuing to hold the investment. A lower rate may be valuable, but an investment can decline while you wait. The holding-period rule does not guarantee that postponing the sale improves the result.
Combine gains and losses in a full-year estimate
Consider a hypothetical investor, Avery, selling taxable shares for $50,000 with an adjusted basis of $35,000. Assume the shares qualify for long-term treatment. The sale realizes a $15,000 gain.
Avery also has a separate investment with an $8,000 unrealized long-term loss. If Avery sells it in a valid transaction and no wash-sale or other limitation applies, assume that loss offsets the long-term gain in this simplified example. The remaining net gain is $7,000: $15,000 of gain less $8,000 of assumed allowable loss.
At an illustrative 15% federal long-term capital gains rate, tax on the $15,000 gain alone would be $2,250. Tax on the $7,000 net gain would be $1,050, a difference of $1,200. The $8,000 loss does not create an $8,000 tax refund. It reduces the amount of gain taxed under these assumptions.
This comparison excludes other gains, losses, carryforwards, state tax, the net investment income tax and income-related effects. Actual netting rules distinguish short-term and long-term results before arriving at the return's treatment. Include expected year-end fund distributions as well as planned sales. Use the complete realized-gain report and prior-year carryforward rather than evaluating each proposed sale in isolation.[1]
If net capital losses exceed gains, the annual deduction against other income is generally limited to $3,000, or $1,500 for married filing separately, with remaining eligible loss carried forward. A large realized loss therefore may not all reduce this year's ordinary income.[1]
Preserve the investment purpose of a loss sale
Tax-loss harvesting should begin with a question about the position: do you still want the exposure, and what would replace it? Selling solely for the tax entry can leave the portfolio with a different risk profile than intended. Transaction costs and time out of the market also matter.
The wash-sale rule can disallow a loss when substantially identical stock or securities are acquired within thirty days before or after the loss sale. Check the relevant accounts before the sale and monitor the replacement window afterward. Review automatic dividend reinvestment and relevant purchases in other accounts, including a spouse's account or an IRA. An IRA replacement can have different basis consequences from an ordinary taxable-account wash sale.[1]
Do not assume two funds are sufficiently different merely because their names or share classes differ. The substantially-identical analysis depends on the facts. Coordinate the replacement with the tax adviser and the person managing the broader portfolio rather than treating a different ticker as a guaranteed solution.
A sound loss-harvesting decision records both the tax purpose and the intended ongoing exposure. That makes it easier to determine whether the replacement remains appropriate after the tax deadline has passed.
Check the income effects and payment plan
A gain can affect more than the capital gains line. It may change income-based deductions, the taxable portion of Social Security benefits or Medicare income-related premiums under the applicable lookback. Even a gain receiving a 0% federal capital gains rate can still be relevant to other income calculations.[2][3][4]
For eligible seniors, the new 2025 deduction phases out with the statutory modified AGI. Include that interaction when considering gains, pretax withdrawals or conversions in the same year. A tax projection should show the total change in liability rather than only the stated capital gains rate.[2]
Review withholding and estimated payments after a significant sale. Estimated tax has timing rules, and setting aside money for the eventual return does not by itself establish that required payments were made on time. Have the preparer review the applicable payment method and any uneven-income considerations.[5]
Before selling, obtain a lot-level gain estimate, the year's realized results and the amount of cash you need after tax. Compare a full sale with a smaller sale or another funding source when appropriate. That preparation lets the investment decision move forward with its tax consequences understood, rather than discovered after the calendar closes.
Related reading
- Start Year-End Planning While You Still Have Choices
- Year-End Tax Decisions Need One Combined Projection
Have more questions about capital gains and tax-aware investment planning? Complete the Financial Forte questionnaire to get started on connecting with an advisor who can help answer your questions and explore next steps.
The contact invitation is current; it does not imply this contact path existed on the historical reference date.
Educational information, not personalized investment, tax, legal or benefits advice. Examples use hypothetical assumptions. Verify current rules and your circumstances before acting.
Sources
- [1] IRS Publication 550: Investment Income and Expenses — March 8, 2024; 2023 edition
- [2] Public Law 119-21 — Section 70103: Temporary senior deduction — July 4, 2025
- [3] IRS Publication 915 (2023) — 2023-11-30
- [4] 20 CFR 418.1135: Which tax year is used for income-related Part B premiums? — April 1, 2023 edition
- [5] IRS Publication 505: Tax Withholding and Estimated Tax (2024) — March 5, 2024

