top of page

Tax-Loss Harvesting Under the Internal Revenue Code: Rules, Limits, and Compliance Considerations

  • RT3 Business Solutions
  • Feb 28
  • 3 min read

Periods of market volatility often result in unrealized investment losses. Under current federal tax law, realized capital losses may affect how capital gains and certain income are reported.

This framework is commonly referred to as tax-loss harvesting.


At RT3 Business Solutions, we approach this topic from a compliance and reporting perspective. Below is a technical overview of how capital losses are treated under the Internal Revenue Code (IRC), including limitations and regulatory considerations.


What Is Tax-Loss Harvesting?


Tax-loss harvesting occurs when a taxpayer sells a capital asset in a taxable account for less than its adjusted cost basis in order to realize a capital loss for tax reporting purposes. The treatment of capital gains and losses is governed primarily by:

  • IRC §1221 – Definition of capital asset

  • IRC §1222 – Characterization of short-term and long-term gains and losses

  • IRC §1211 – Limitations on capital losses

  • IRC §1212 – Capital loss carryovers

  • IRC §1091 – Wash-sale rule


Realized gains and losses are reported on Form 8949 and summarized on Schedule D of Form 1040.


The IRS Netting Framework


The IRS requires gains and losses to be netted in a specific order:


  1. Net Short-Term Gains and Losses

Assets held one year or less are netted together. Net short-term gains are taxed at ordinary income tax rates.


  1. Net Long-Term Gains and Losses

Assets held more than one year are netted separately. Net long-term gains are generally taxed at preferential rates (0%, 15%, or 20%), depending on taxable income. Certain taxpayers may also be subject to the 3.8% Net Investment Income Tax (NIIT) under IRC §1411.


  1. Cross-Netting

If one category reflects a net loss and the other reflects a net gain, they offset one another.


  1. Ordinary Income Limitation

If total capital losses exceed total capital gains, taxpayers may deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income under IRC §1211(b).


  1. Carryforward

Excess capital losses may be carried forward indefinitely under IRC §1212(b).


Illustrative Example


Assume the following for a taxable investor:

  • $18,400 realized capital gain

  • $24,900 realized capital loss


Application under the IRC:

  • $18,400 of loss offsets the entire gain

  • $6,500 net capital loss remains

  • $3,000 offsets ordinary income this year

  • $3,500 carries forward to future tax years


The actual tax impact depends on filing status, marginal tax rate, holding period, and state tax treatment. This example is hypothetical and does not represent any specific investment.


The Wash-Sale Rule (IRC §1091)


A critical compliance issue is the wash-sale rule. A wash sale occurs when a taxpayer:

  • Sells a security at a loss, and

  • Acquires the same or a “substantially identical” security within 30 days before or after the sale.


If triggered:

  • The loss is disallowed in the current year.

  • The disallowed loss is added to the cost basis of the replacement security.


The rule applies across:

  • Taxable brokerage accounts

  • IRAs

  • Spousal accounts


Improper tracking of wash sales can result in incorrect Schedule D reporting and potential IRS adjustment.


Cost Basis and Lot Identification


Cost basis is generally the purchase price of a security plus transaction costs, adjusted for certain corporate actions. Taxpayers may use:

  • FIFO (first-in, first-out)

  • Specific identification

  • Average cost (for mutual funds)


Specific identification may affect the character and magnitude of gains or losses realized. Proper documentation is essential to ensure accurate Form 8949 reporting.


Short-Term vs. Long-Term Considerations


Short-term gains are taxed at ordinary income rates (currently up to 37% federally). Long-term gains receive preferential treatment. Because of the rate differential, the character of the loss (short-term vs. long-term) can affect the overall tax impact. However, tax considerations should not override broader portfolio risk management objectives.


State Tax Conformity


Federal law permits indefinite capital loss carryforwards. State treatment varies:

  • Some states fully conform to federal capital loss rules.

  • Others impose limitations or different calculations.


Taxpayers should review state-specific conformity rules before projecting long-term tax benefits.


Year-End Settlement Timing


To recognize a loss in a particular tax year:

  • The trade must be executed and settled by December 31.

  • Settlement timing affects reporting.


Late-December transactions require coordination to avoid unintended deferral into the next tax year.


Risks and Structural Limitations


Tax-loss harvesting does not eliminate investment risk and does not guarantee tax savings. Considerations include:

  • Replacement asset performance risk

  • Holding period resets

  • Portfolio allocation drift

  • Potential future tax law changes

  • Large loss carryforwards that may not be fully utilized


Tax strategy should align with long-term financial objectives and compliance requirements.


IRS Reference Materials


Taxpayers may review:

  • IRS Topic No. 409 – Capital Gains and Losses

  • IRS Publication 550 – Investment Income and Expenses

  • Instructions for Form 8949 and Schedule D


RT3 Compliance Perspective


From a reporting standpoint, tax-loss harvesting affects:

  • Character of income

  • Timing of recognition

  • Basis tracking

  • Wash-sale monitoring

  • State conformity analysis


When properly documented and applied within IRC parameters, capital loss rules provide a lawful mechanism for offsetting gains and limited income. This article is provided for informational purposes only and does not constitute investment, tax, or legal advice.

bottom of page