Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversThanksgiving DealsAmazon USThanksgiving week: Black Friday picks start earlyAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to the guide
THE FINANCEBASE List yours

Guide

How to Offset Long-Term Capital Gains With Tax-Loss Harvesting—Legally

By TheFinanceBase Team 12 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Tax-loss harvesting can offset long-term capital gains legally when you sell an investment for a real, allowable loss and include that transaction in the capital-gain-and-loss netting process. The loss is not available merely because a security’s market price fell. You must account for holding periods, every other capital transaction, wash-sale adjustments, prior-year carryovers and your filing status.

For U.S. federal individual returns, the usual path is to report transactions on Form 8949, summarize them on Schedule D, and apply the current-year worksheets. A loss can reduce capital gains, but it is not a special tax credit or an automatic dollar-for-dollar refund. The final value depends on the complete return and the taxpayer’s applicable rates. This article explains the federal rules reflected in current IRS guidance; use the forms and instructions for the tax year you are filing.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What is tax-loss harvesting?

Tax-loss harvesting is the deliberate sale or other disposition of an investment that is worth less than its adjusted basis. The sale realizes the loss for tax purposes. A price decline shown on a brokerage screen is only an unrealized loss and does not enter the tax calculation until a taxable disposition occurs.

The gain or loss is generally the amount realized minus the asset’s adjusted basis. The IRS explanation of capital gains and losses directs taxpayers to consider the sale or other disposition, basis and holding period rather than the investment’s current quotation alone. Selling one lot while retaining other lots can therefore produce a different result from selling the entire position, because each lot may have a different basis and holding period.

Popular on Amazon
Sale
The Psychology of Money: Timeless lessons on wealth, greed, and happiness
  • Ideal for Gifting
  • Ideal for a bookworm
  • Compact for travelling

Harvesting is usually discussed in a taxable brokerage account because the transaction has to be reported. It should be treated as a tax-planning technique, not a promise of savings. A sale can change portfolio exposure, trigger a wash-sale adjustment, or produce a smaller benefit than expected after all transactions and tax rates are included.

Can a realized loss offset a long-term capital gain?

Generally, yes. A realized and allowable capital loss enters the same netting process as your other capital gains and losses. A long-term loss is first considered with long-term amounts, but the final result depends on the complete Schedule D calculation, including short-term transactions and carryovers.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Offset” means reducing net taxable capital gain through the statutory ordering rules. It does not mean that you can designate a particular loss against one chosen gain, nor does it create a credit equal to the loss. For example, a $5,000 allowable loss does not automatically produce a $5,000 tax refund; the tax effect depends on the gain or loss remaining after netting and the rates that apply to the taxpayer.

How the federal netting sequence works

Stage What to do Why it matters
1. Classify each transaction Determine the adjusted basis, amount realized and whether the asset was held for more than one year. More-than-one-year dispositions are generally long-term, subject to exceptions. Short-term and long-term amounts are reported in different parts of Schedule D and are combined under ordering rules.
2. Total each category Add all allowable short-term gains and losses and all allowable long-term gains and losses, including transactions outside the account where you harvested. A loss cannot be assigned selectively while ignoring another gain or loss on the return.
3. Combine the categories Use Form 8949 and Schedule D and the current-year worksheets to net the short-term and long-term results. The combined result determines whether you have a net capital gain or a net capital loss.
4. Apply carryovers and the annual loss limit Use any prior-year carryover in the prescribed order. If losses still exceed gains, apply the limit on deducting the net loss against other income and carry the remainder forward. The amount usable this year can be much smaller than the loss realized in the account.

Publication 550 says a long-term capital loss carried into a later tax year reduces that year’s long-term capital gains before it reduces short-term gains. Keep the carryover’s character and amount from the prior return and use the Capital Loss Carryover Worksheet and current Schedule D instructions rather than estimating it from memory.

Why does the holding period matter?

An asset held for more than one year before disposition is generally long-term; an asset held for one year or less is generally short-term. The IRS Publication 544 guidance and Topic 409 describe the general rule, but special rules can apply to particular assets or acquisition circumstances.

Also popular on Amazon

Check the acquisition date and the date of each sale for every tax lot. Brokerage statements may display a holding-period label, but the taxpayer remains responsible for correcting an inaccurate basis or classification. Reinvested dividends, transfers, gifts, inherited property and corporate actions can make the date or basis less obvious, so retain the underlying records and consult the relevant IRS guidance when an exception may apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What does a long-term loss look like in a tax calculation?

Consider a purely hypothetical return with no carryovers. The investor has $14,000 of long-term gains and realizes $8,000 of allowable long-term losses. The long-term subtotal is a $6,000 gain. The investor also has $2,000 of short-term gains and $5,000 of allowable short-term losses, producing a $3,000 short-term loss. The two subtotals then combine to a $3,000 net capital gain.

The $8,000 loss did not get attached only to one selected long-term sale; every listed transaction contributed to the Schedule D result. If instead total allowable losses exceeded total gains, the return would show a net capital loss. An individual can generally deduct up to $3,000 of that net loss against other income in the year ($1,500 if married filing separately), with unused loss generally carried to later years. The current forms determine the character and ordering of the carryover.

These figures illustrate the mechanics, not a prediction of tax due. The applicable capital-gain rate, ordinary-income rate, filing status, deductions, other transactions and state rules can all change the outcome.

What is the wash-sale rule?

A wash sale can make a planned loss unavailable for the current year. Under the 2025 Schedule D instructions, a loss on stock or securities is generally disallowed when, within 30 days before or after the loss disposition, the taxpayer acquires substantially identical stock or securities or takes another specified action.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The 61-day window includes the 30 days before the sale, the sale date and the 30 days after it. Covered actions include buying the substantially identical security, acquiring it in a fully taxable trade, entering a contract or option to acquire it, or acquiring it for an IRA or Roth IRA. The rule can therefore be triggered by a purchase made before the sale, not just by a replacement bought afterward.

For many replacement purchases, the disallowed loss is added to the basis of the replacement property and recognized later when that property is disposed of under the applicable rules. An IRA or Roth IRA acquisition receives different treatment under the IRS instructions, so do not assume that a basis adjustment in the retirement account will preserve the loss. The IRS states: “You can’t deduct losses from wash sales unless the loss was incurred in the ordinary course of your business as a dealer in stock or securities.”

Why a Form 1099-B is not enough

A broker may report a wash-sale amount when a replacement security has the same CUSIP and is bought in the same account, but that reporting is not comprehensive. A transaction can involve another account, a spouse’s account or a purchase made outside the broker’s reporting system. The fact that a wash-sale adjustment is absent from Form 1099-B does not make an otherwise disallowed loss deductible.

Review transactions across taxable accounts and retirement accounts, including accounts held by a spouse when applicable. The Schedule D instructions explain how to report required adjustments on Form 8949. Keep lot-level records so you can identify the replacement purchase and the basis adjustment even if the broker’s consolidated statement does not show it.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I harvest a loss without losing the intended investment exposure?

Start with the tax records and the investment objective, not with a sale button. The following process helps separate a legitimate loss from a transaction that will be disallowed or that leaves the portfolio unsuitable.

  1. Gather every relevant record. Download current and prior brokerage statements, cost-basis lots, purchase dates, reinvestment records and any Form 1099-B information. Include transactions in other taxable accounts and relevant IRA or Roth IRA activity.
  2. Identify unrealized losses and verify basis. A loss is measured against adjusted basis, not necessarily the original cash contribution. Check for commissions, reinvested distributions, corporate actions and earlier basis adjustments.
  3. Classify the holding period. Mark each lot as generally short-term or long-term under the applicable IRS rule. Do not assume that all shares of one ticker have the same tax character.
  4. Estimate the complete netting picture. List realized and expected gains and losses for the entire year, including losses already harvested. A long-term loss may be useful even when the account in front of you shows a gain, but only the full return reveals the result.
  5. Choose a replacement deliberately. If maintaining market exposure matters, select an investment that fits the target allocation without being substantially identical. Correlation alone does not decide whether securities are substantially identical, and the taxpayer bears the risk of an incorrect conclusion.
  6. Check the 30-day windows. Search the 30 days before the proposed sale and plan the 30 days after it. Pause automatic dividend reinvestment, recurring purchases and rebalancing instructions that could acquire the same or substantially identical security.
  7. Execute and retain confirmations. Save the trade confirmation, quantity, proceeds, basis, dates and replacement details. A sale that is entered but not completed as a disposition may not produce the expected tax event.
  8. Reconcile the tax forms. When the broker issues Form 1099-B, compare it with your own records. Enter applicable transactions on Form 8949, make wash-sale adjustments as required, and summarize the totals on Schedule D.
  9. Compute any carryover. If losses exceed gains, use the current Capital Loss Carryover Worksheet and preserve the result for next year. Do not simply carry forward an account’s displayed loss; the carryover is calculated from the tax return.

Where do I report investment losses?

Most applicable sales and other capital transactions go on Form 8949. Schedule D (Form 1040) summarizes the short-term and long-term totals and calculates the final capital gain or deductible capital loss. The IRS’s Topic 409 and the current-year form instructions identify transactions that may be reported directly on Schedule D or require additional treatment.

Use the instructions for the tax year being filed. The sources discussed here include 2025 editions of Publication 550, Publication 544 and the Schedule D instructions; a later return may have revised lines, worksheets or examples. Tax-preparation software can help transfer information, but it does not decide whether a loss is allowable, whether two securities are substantially identical, or whether an omitted transaction in another account creates a wash sale.

How much capital loss can I deduct against other income?

If total capital losses exceed total capital gains, an individual can generally deduct the lesser of the net capital loss or $3,000 against other income for the year. The limit is generally $1,500 for married individuals filing separately. The IRS Topic 409 page reviewed November 13, 2026, and Publication 550 state these limits.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Any unused amount is generally carried forward. The carryover can be valuable in a later year with gains, but its ordering matters: a long-term loss carryover reduces long-term gains before short-term gains. If a future year also ends with a net loss, apply that year’s Schedule D worksheet rather than assuming the oldest account loss is used first.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Should I manage harvesting myself or use an automated service?

Neither approach guarantees a tax benefit. The right choice depends on how many accounts and lots you have, how often your portfolio rebalances, and whether you can monitor replacement purchases and reporting.

Also popular on Amazon
Sale
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
  • It can be a gift option
  • Comes with secure packaging
  • Helpful in various ways
Consideration Self-directed approach Automated portfolio service
Control and effort You choose lots, sale timing and replacements, but must monitor every relevant transaction. The provider applies its own algorithm, account rules and trading schedule; you still need to disclose outside activity and review results.
Accounts outside the platform You can coordinate all accounts if you maintain complete records. An in-platform system may not see a spouse’s account, another broker, an IRA or a purchase made elsewhere.
Portfolio fit You assess whether the replacement preserves the intended allocation and risk. The service may substitute a correlated exchange-traded fund or another holding, but suitability and substantial-identity questions remain.
Fees and eligibility Trading costs, account restrictions and your time are the relevant trade-offs. Compare advisory or platform fees and eligibility with a potential, not guaranteed, tax benefit.
Reporting support You reconcile Form 1099-B data and make required Form 8949 adjustments. The service may provide tax-reporting information, but it cannot know every transaction that affects your return.

Provider explanations from Wealthfront and Betterment describe these operational trade-offs and emphasize that potential results depend on the investor’s broader facts. Those descriptions are not IRS rulings, and estimated savings should not be treated as a personal forecast.

What mistakes can invalidate a harvesting plan?

  • Selling without a real disposition: A price decline, transfer that is not a taxable sale, or an incorrectly recorded transaction may not create a realized loss.
  • Ignoring other accounts: A spouse’s purchase, a recurring investment or a retirement-account acquisition can fall inside the wash-sale window.
  • Assuming “different ticker” means “not substantially identical”: Securities with different names can still raise a substantially-identical question. Document the investment rationale and obtain professional advice when the distinction is uncertain.
  • Forgetting the 30-day period before the sale: A replacement bought shortly before the harvest can disallow the loss even though the investor did not buy anything after selling.
  • Relying only on the broker’s 1099-B: Broker reporting may not capture cross-account or cross-broker activity.
  • Expecting a dollar-for-dollar refund: The loss first nets against capital gains, and the remaining deductible loss is subject to the annual limit.
  • Neglecting portfolio risk: A tax result is not a reason to hold an unsuitable replacement or to remain out of the market longer than intended.
  • Using the wrong year’s worksheet: Forms and instructions change. Use the current return package and retain the prior return that generated a carryover.

Are state taxes included in these rules?

No. The rules described here are U.S. federal individual income-tax rules. States may conform to federal treatment, modify deductions or impose different reporting requirements. Before acting on a large loss, check the rules for your state of residence and any state where you file, and consider whether the transaction changes estimated-tax payments.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What is the practical legal takeaway?

Tax-loss harvesting can legally reduce net long-term capital gains when the loss is realized, allowable and correctly reported. The essential controls are accurate basis and holding-period records, complete account-wide netting, a 30-day wash-sale review, and the correct Form 8949, Schedule D and carryover worksheets.

Harvest only when the tax result fits the investment plan. The IRS rules determine how the numbers are calculated, but they do not guarantee that a particular sale will lower your total tax. For material positions, unusual assets, uncertain replacement securities or complicated family and retirement-account activity, obtain advice from a qualified tax professional before trading.

Frequently Asked Questions

Can I harvest a loss and buy the same investment back immediately?

Usually not if you want the loss available now. Buying substantially identical stock or securities within the 30 days before or after the sale can trigger the wash-sale rule, and the window also covers certain contracts, options and retirement-account acquisitions.

Will my broker always show a wash-sale adjustment on Form 1099-B?

No. Broker reporting is generally limited to specified covered-security situations, such as a same-CUSIP replacement in the same account. You remain responsible for purchases in other accounts, by a spouse or at another broker.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does tax-loss harvesting work if I have no capital gains this year?

A net capital loss can generally reduce other income only up to $3,000 ($1,500 for married filing separately), with the unused amount generally carried forward. The carryover can then offset capital gains in a later year under the IRS ordering rules.

How long should I keep records for a harvested loss?

Keep trade confirmations, basis calculations, replacement-purchase records, Forms 1099-B, Form 8949 and Schedule D worksheets for as long as they support the return and any carryover. Records must be available to explain a later basis adjustment or carryover even after the original account statement is no longer current.

Quick Recap

SaleBestseller No. 1
The Psychology of Money: Timeless lessons on wealth, greed, and happiness
The Psychology of Money: Timeless lessons on wealth, greed, and happiness
Ideal for Gifting; Ideal for a bookworm; Compact for travelling
$10.99
SaleBestseller No. 2
SaleBestseller No. 5
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
It can be a gift option; Comes with secure packaging; Helpful in various ways
$8.48
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 22, 2026 3:18 am GMT+0530.

Leave a comment

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More guides

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.