Investment Tax Reporting Guide: Capital Gains, Dividends & More

Everything you need to know about reporting investment income on your taxes - from capital gains and dividends to cost basis methods and tax-loss harvesting.

15 min read

What Investors Need to Report

Investment income is taxable, and failing to report it accurately can lead to penalties, interest charges, and unwanted attention from tax authorities. Whether you trade frequently or simply hold a handful of index funds, understanding your tax obligations is essential for every investor.

There are three main categories of investment income that you must report on your tax return:

  • Capital gains and losses: Profits or losses from selling stocks, bonds, ETFs, mutual funds, crypto, and other assets. This is the most complex area for most investors.
  • Dividend income: Payments received from stocks, ETFs, and mutual funds. These are reported whether you reinvest them or take them as cash.
  • Interest income: Earnings from bonds, savings accounts, CDs, and money market funds. Bond coupon payments and Treasury interest also fall here.

Key Tax Forms for Investors

Your broker provides Form 1099-B (capital gains), 1099-DIV (dividends), and 1099-INT (interest). These forms are sent by mid-February and must be used when filing your return. Always cross-check broker statements with your own records.

Taxable Events to Watch For

Not every investment activity triggers a tax obligation. Here is what does and does not count as a taxable event:

Taxable EventNot a Taxable Event
Selling shares at a profit or lossBuying and holding shares
Receiving dividends (cash or DRIP)Transferring between your own accounts
Earning bond interest/couponsUnrealized gains (paper profits)
Converting cryptocurrencyGifting stock (up to annual limit)
Exercising stock optionsStock splits or reverse splits

Understanding Capital Gains Tax

Capital gains tax is levied on the profit you make when selling an investment for more than you paid. The tax rate depends primarily on one factor: how long you held the asset before selling.

Short-Term vs Long-Term Capital Gains

The holding period is measured from the day after purchase to the date of sale, inclusive. The distinction between short-term and long-term gains has a dramatic impact on your tax bill.

Holding PeriodClassificationTax Rate (US)Example
1 year or lessShort-term10% - 37%Buy Jan 15, sell Dec 30 same year
More than 1 yearLong-term0%, 15%, or 20%Buy Jan 15, 2025 - sell Jan 16, 2026

The One-Year Threshold Matters

Selling a stock after 11 months vs 13 months can nearly double your tax rate. If you are sitting on a gain and are close to the one-year mark, it often pays to wait. At the highest bracket, the difference is 37% vs 20% - almost half the tax.

How Capital Gains Are Calculated

The formula is straightforward: Capital Gain = Sale Proceeds - Cost Basis. The sale proceeds are what you receive from the sale (minus commissions). The cost basis is what you originally paid (plus commissions). If the result is negative, you have a capital loss, which can offset other gains and up to $3,000 of ordinary income per year in the US.

Netting Gains and Losses

At tax time, short-term gains are first offset by short-term losses, and long-term gains by long-term losses. Any remaining net loss from one category can then offset gains in the other. This netting process can significantly reduce your tax bill.

Cost Basis Methods Explained

When you own multiple lots of the same stock purchased at different times and prices, you need a method to determine which shares were sold and at what cost. This is your cost basis method, and it directly affects the size of your taxable gain or loss.

Consider this example: you buy 100 shares of XYZ at $10, then later buy another 100 shares at $20. You then sell 100 shares at $25. Your gain depends entirely on which lot you are considered to have sold.

FIFO (First In, First Out)

Sells the oldest shares first. This is the default method used by most brokers if you do not specify otherwise.

Sell 100 @ $10 cost = $1,500 gain

LIFO (Last In, First Out)

Sells the most recently purchased shares first. Often results in smaller gains in a rising market.

Sell 100 @ $20 cost = $500 gain

Average Cost

Uses the weighted average price of all shares owned. Commonly used for mutual funds and ETFs.

Sell 100 @ $15 avg cost = $1,000 gain

Specific Identification

You choose exactly which lot to sell. Gives maximum control for tax optimization.

You pick the lot - $500 to $1,500 gain

Cost Basis Comparison Table

Here is the full example with numbers: Buy 100 shares at $10 (Lot A), buy 100 more at $20 (Lot B), sell 100 shares at $25.

MethodShares SoldCost BasisProceedsTaxable Gain
FIFOLot A (100 @ $10)$1,000$2,500$1,500
LIFOLot B (100 @ $20)$2,000$2,500$500
Average Cost100 @ $15 avg$1,500$2,500$1,000
Specific IDYour choice$1,000 - $2,000$2,500$500 - $1,500

FIFO vs LIFO: $1,000 Difference

In this example, choosing LIFO over FIFO reduces your taxable gain by $1,000. At a 20% long-term capital gains rate, that saves $200 in taxes on just one trade. Over a lifetime of investing, the cost basis method you choose can save thousands. Read our detailed FIFO vs LIFO guide for more.

Dividend Tax Reporting

Dividends are taxed in the year they are received, regardless of whether you reinvest them. However, not all dividends are taxed the same way. The distinction between qualified and ordinary dividends can make a significant difference in your tax bill.

Qualified vs Ordinary Dividends

Qualified Dividends

  • Taxed at long-term capital gains rates (0%, 15%, or 20%)
  • Must hold stock for 60+ days in the 121-day window around ex-dividend date
  • Must be paid by a US corporation or qualified foreign corporation
  • Most dividends from major US stocks qualify

Ordinary Dividends

  • Taxed at your regular income tax rate (up to 37%)
  • Includes REITs, money market funds, and short-term held stocks
  • Some foreign stock dividends may be ordinary
  • Special dividends and return-of-capital payments

Foreign Dividend Withholding Tax

When you receive dividends from foreign stocks, the source country often withholds tax at rates ranging from 15% to 30%. You can usually claim a Foreign Tax Credit on your return to avoid double taxation, or take it as an itemized deduction. The credit is generally more beneficial.

DRIP Dividends Are Still Taxable

If you use a Dividend Reinvestment Plan (DRIP) to automatically buy more shares, the reinvested dividends are still taxable income in the year received. Each reinvestment also creates a new tax lot with its own cost basis, which complicates future capital gains calculations. Learn more in our DRIP investing guide.

Tracking Dividend Income

For accurate tax reporting, you need to track several pieces of information for each dividend payment:

  • Payment date: Determines which tax year the dividend falls in
  • Amount received: The gross dividend before any withholding
  • Qualified vs ordinary split: Your broker reports this on Form 1099-DIV
  • Foreign tax withheld: Needed to claim the Foreign Tax Credit
  • Currency: Foreign dividends must be converted to your home currency at the exchange rate on the payment date

Advanced Tax Concepts

The Wash Sale Rule

The wash sale rule prevents you from claiming a tax loss if you buy a "substantially identical" security within 30 days before or after selling at a loss. This 61-day window (30 days before + sale day + 30 days after) is strictly enforced.

If a wash sale is triggered, the disallowed loss is added to the cost basis of the replacement shares. The loss is not lost permanently - it is deferred until you eventually sell the replacement shares without triggering another wash sale.

Wash Sale Example

You sell 100 shares of AAPL at a $2,000 loss on March 1. On March 15, you buy 100 shares of AAPL again. The $2,000 loss is disallowed and added to the cost basis of your new shares. If you had waited until April 1 (more than 30 days), you could have claimed the full loss.

Tax-Loss Harvesting

Tax-loss harvesting is the strategy of intentionally selling losing positions to realize capital losses that offset gains elsewhere in your portfolio. This is one of the most powerful legal tax reduction strategies available to investors.

  • Offset gains: Capital losses first offset capital gains of the same type (short vs long), then the other type
  • Excess losses: Up to $3,000 ($1,500 if married filing separately) of net capital losses can offset ordinary income per year in the US
  • Carry forward: Unused losses carry forward indefinitely to future tax years
  • Maintain exposure: You can buy a similar (but not substantially identical) investment to maintain market exposure while harvesting the loss

Harvesting Strategy

A common approach: sell an S&P 500 ETF at a loss and immediately buy a total market ETF. You maintain nearly identical market exposure while harvesting the tax loss. Just ensure the replacement fund is not "substantially identical." See our tax-loss harvesting guide for detailed strategies.

Loss Carryforward

If your total capital losses exceed your capital gains plus the $3,000 ordinary income deduction in a given year, the excess carries forward to future years. There is no time limit - you can carry losses forward indefinitely. This is particularly valuable after a major market downturn when you may harvest significant losses that take several years to fully utilize.

Capital Gains Across Jurisdictions

Tax rules vary significantly by country. Some key differences investors should be aware of:

  • United States: Distinguishes short-term vs long-term gains with preferential rates for long-term holdings
  • United Kingdom: Annual CGT allowance (currently reduced), with 10% or 20% rates depending on income band. ISAs provide tax-free investing.
  • Germany: Flat 26.375% rate (including solidarity surcharge) on all capital gains regardless of holding period
  • Canada: Only 50% of capital gains are included in taxable income (the "inclusion rate")

International Tax Complexity

If you invest across borders, you may be subject to tax rules in multiple jurisdictions. Tax treaties between countries often reduce double taxation, but the interaction of different systems can be complex. Consider consulting a tax advisor if you hold foreign investments.

How to Generate Tax Reports

Generating accurate tax reports requires organized records of every trade, dividend, and corporate action throughout the year. Here is what you need and the most common pitfalls to avoid.

What You Need

  • Complete trade history: Every buy, sell, and transfer with dates, quantities, and prices
  • Cost basis records: Original purchase prices including commissions and fees
  • Dividend records: All payments received with qualified/ordinary classification
  • Corporate actions: Stock splits, mergers, spin-offs, and return-of-capital adjustments
  • Currency conversion rates: For any foreign-denominated transactions

Common Tax Reporting Mistakes

  1. Ignoring cost basis adjustments: Stock splits, DRIP purchases, and return-of-capital distributions all change your cost basis. Failing to account for these leads to incorrect gain calculations.
  2. Forgetting wash sales: Your broker may flag wash sales within a single account, but wash sales across different accounts (e.g., brokerage and IRA) are your responsibility to track.
  3. Double-counting DRIP shares: Reinvested dividends create new tax lots. If you do not track them, you may understate your cost basis and overpay taxes when selling.
  4. Missing foreign tax credits: If foreign tax was withheld from dividends, forgetting to claim the credit means you are effectively taxed twice.
  5. Incorrect holding periods: Selling one day too early can turn a 15% long-term rate into a 37% short-term rate. Accurate date tracking is critical.

Automate Your Tax Reporting

AllInvestView automatically tracks every trade, dividend, and corporate action across all your portfolios. It calculates realized gains using your chosen cost basis method (FIFO, LIFO, or average cost), identifies wash sales, and generates comprehensive tax reports you can hand directly to your accountant or use for self-filing.

How AllInvestView Generates Tax Reports

With AllInvestView, generating a tax report takes just a few clicks:

  1. Import your trades: Connect your brokerage account or manually enter trades. AllInvestView supports 30+ brokers via SnapTrade integration.
  2. Choose your settings: Select your cost basis method, tax jurisdiction, and reporting currency.
  3. Generate the report: AllInvestView computes realized gains/losses, categorizes dividends, and handles currency conversions automatically.
  4. Review and export: Download your report as a spreadsheet, review individual transactions, and share with your tax advisor.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate, which can be as high as 37% in the US. Long-term capital gains apply to assets held for more than one year and benefit from reduced tax rates of 0%, 15%, or 20%, depending on your taxable income. The holding period is measured from the day after purchase to the date of sale.
How do I calculate cost basis for stocks?
Cost basis is the original purchase price of your investment plus any commissions or fees paid. When you own multiple lots purchased at different prices, you use a cost basis method - FIFO (first in, first out), LIFO (last in, first out), average cost, or specific identification - to determine which shares were sold. Your cost basis may also be adjusted for stock splits, DRIP reinvestments, return-of-capital distributions, and corporate actions.
What is the wash sale rule?
The wash sale rule disallows a tax loss deduction if you buy a substantially identical security within 30 days before or after selling at a loss. This creates a 61-day window where repurchasing triggers the rule. The disallowed loss is added to the cost basis of the replacement shares, deferring rather than permanently eliminating the loss. The rule applies across all your accounts, including IRAs.
Do I need to report dividends on my taxes?
Yes, all dividends must be reported on your tax return, including dividends that are automatically reinvested through a DRIP program. Qualified dividends are taxed at the lower long-term capital gains rates (0%, 15%, or 20%), while ordinary dividends are taxed at your regular income tax rate. Your broker provides Form 1099-DIV detailing the split between qualified and ordinary dividends.
Can a portfolio tracker help with tax reporting?
Yes, a portfolio tracker like AllInvestView can dramatically simplify tax reporting. It automatically records every trade, calculates realized gains and losses using your chosen cost basis method, tracks dividend income by category, identifies wash sales, handles currency conversions for foreign investments, and generates downloadable tax reports. This saves hours of manual work and significantly reduces the risk of costly errors.

Generate Your Tax Report

AllInvestView calculates capital gains, tracks dividends, and generates tax reports automatically across all your portfolios.

Generate Your Tax Report