When you move from paper trading to real trading, one massive new variable enters the picture: taxes. Capital gains, wash sales, cost basis, 1099-B reporting — none of these existed during your simulator practice, but all of them will affect your real-money returns. The good news is that the rules are knowable. The most successful new investors take the time to understand them before they realize their first real gain, because tax decisions made today affect what you owe many months later. This guide is a US-focused overview to help you prepare for the transition.

Important Disclaimer

Tax rules vary by country, state, and individual situation, and they change every year. Nothing in this article is tax advice. Use this as general background to ask better questions of a qualified CPA, enrolled agent, or other licensed tax professional who can review your specific circumstances. For authoritative US guidance, see IRS Publication 550 (Investment Income and Expenses).

Paper Trading Has No Tax Consequences

Let us start with the obvious: paper trading is entirely tax-free. You are buying and selling virtual shares with virtual money. No real money changes hands, no real gains are realized, no taxes are owed, no forms are filed. This is one of the major underappreciated benefits of paper trading — you can experiment freely without any of the friction or recordkeeping that real trading creates.

The moment you fund a real brokerage account and execute your first sale at a profit, that calculus changes completely. Every realized gain creates a potential tax liability. Every realized loss creates a potential deduction. Every sale must be reported. The brokerage helps with this paperwork, but the responsibility for owing the correct amount ultimately rests with you.

Short vs Long-Term Capital Gains

The single most important tax distinction for US investors is the difference between short-term and long-term capital gains.

Short-Term Capital Gains

A short-term capital gain is the profit on an asset held for one year or less. The IRS taxes short-term gains at your ordinary income tax rate — the same rate you pay on wages. Federal rates range from 10% to 37% depending on your income bracket. State income tax is typically additional.

Long-Term Capital Gains

A long-term capital gain is the profit on an asset held for more than one year. Long-term gains receive preferential federal treatment: 0% for low-income filers, 15% for most middle-income filers, and 20% for very high earners. Some additional surcharges (Net Investment Income Tax) can apply at higher income levels. State treatment varies.

Why This Matters Enormously

The gap between short-term and long-term rates is huge. A trader in the 32% federal bracket pays 32% on a stock held 364 days and 15% on the same gain if held 366 days. That is more than half the tax savings simply by waiting two extra days. Multiply this across many trades and many years and the impact on after-tax wealth is enormous — a major reason why the long-term holding approach discussed in the day vs swing vs long-term guide tends to outperform active trading after taxes.

The Holding Period Clock

The clock starts the day after you buy and ends the day you sell. To get long-term treatment, your holding period must exceed one year (i.e., you must sell on or after the day exactly one year after purchase plus one day). When in doubt, hold a few extra days — the tax savings dwarf any short-term price risk.

Cost Basis and Tracking Purchases

Your cost basis is what you paid for a stock, including any commissions or fees. Cost basis is critical because your taxable gain or loss equals sale proceeds minus cost basis. Tracking cost basis correctly is one of the most common tax-time mistakes for new investors.

Basic Cost Basis

If you buy 100 shares of Apple at $200 with no commission, your cost basis is $20,000. If you sell those 100 shares at $250, your gain is $5,000 ($25,000 proceeds minus $20,000 basis).

When You Buy More Over Time

Most investors accumulate shares of the same stock over months or years at different prices. This creates a tracking problem: when you sell, which shares are you selling? The IRS allows several methods:

  • FIFO (first in, first out): The default at most brokerages. The shares you bought first are the ones considered sold first.
  • Specific lot identification: You designate at the time of sale which specific shares are being sold. This requires more attention but enables better tax planning.
  • Average cost (mutual funds and some ETFs): All shares are pooled at their average cost.

Specific lot identification is the most flexible. You can sell your highest-cost shares first to minimize gains (or your lowest-cost shares to maximize gains, useful at the end of a low-income year). Most brokerages allow you to set this preference in your account settings.

Reinvested Dividends Add to Basis

If you participate in a DRIP (Dividend Reinvestment Plan, covered in the dividends guide), every reinvested dividend creates additional shares with their own cost basis. Brokerages track this automatically, but the math gets surprisingly complex over years of reinvestment. When you eventually sell, accurate basis tracking can save you hundreds or thousands in taxes.

The Wash Sale Rule

The wash sale rule is one of the most-violated rules among new traders, usually unintentionally. Understanding it before you start matters because the consequence is that legitimate losses get disallowed for the current tax year.

How It Works

If you sell a stock at a loss and buy the same or a "substantially identical" security within 30 days before or after the sale, the IRS disallows the loss for tax purposes. The disallowed loss is added to the cost basis of the replacement shares, so you eventually recapture the benefit when you sell those replacement shares — but you cannot use the loss to offset other gains in the current tax year.

Example

You buy 100 shares of XYZ at $100 each ($10,000 cost basis). The stock falls to $80, and you sell for an $2,000 loss. Two weeks later, you change your mind and rebuy 100 shares at $82. The $2,000 loss is disallowed. Your new cost basis becomes $8,200 + $2,000 = $10,200 even though you only paid $8,200 cash.

The 61-Day Window

The wash sale window is 30 days before and 30 days after the sale — a total 61-day no-go zone. Buying replacement shares in your IRA, your spouse's account, or any other account you control can also trigger the rule.

"Substantially Identical"

This term is not perfectly defined by the IRS. Buying the same ticker is obviously substantially identical. Buying a different S&P 500 ETF after selling the original (e.g., SPY then VOO) is a grey area many tax professionals consider risky. Buying a different company in the same industry is generally safe. When in doubt, consult a CPA.

Active Traders Beware

Active traders who frequently buy and sell the same names can rack up significant wash sale violations without realizing it. Brokerage statements flag these for you, but they can create complicated tax situations at year end. This is one more reason that very active trading creates friction beyond just taxes — it creates accounting headaches.

Tax-Loss Harvesting

Tax-loss harvesting is the deliberate strategy of selling losing positions to realize losses that can offset realized gains. Done well, it reduces your tax bill without changing your overall investment exposure.

The Basic Idea

Capital losses offset capital gains dollar-for-dollar. If you have $5,000 in gains for the year and harvest $3,000 in losses, you only owe taxes on $2,000 of net gains. If losses exceed gains, you can deduct up to $3,000 of net losses against ordinary income, with any additional losses carrying forward to future tax years.

Avoiding Wash Sales During Harvesting

To harvest a loss without losing market exposure, investors typically buy a similar-but-not-identical replacement. Sell SPY at a loss, then buy a different (non-substantially-identical) broad-market ETF for 31 days, then optionally swap back. This maintains roughly the same exposure while capturing the tax benefit. Some brokerages and robo-advisors automate this entirely.

End-of-Year Timing

Tax-loss harvesting is typically a year-end activity. Look through your portfolio in November or December, identify positions trading below your cost basis, and decide whether to harvest. Be careful about the wash sale window: if you bought additional shares of that position recently, the wash sale rule may complicate the harvest.

Dividend Taxation

Dividends are taxed in the year they are received in a taxable account. As covered in the dividends guide, there are two categories:

  • Qualified dividends: Taxed at long-term capital gains rates (0%, 15%, or 20%).
  • Ordinary (non-qualified) dividends: Taxed at regular income tax rates.

Your year-end 1099-DIV form will break down the two categories for you. Most dividends from major US corporations qualify automatically. REIT distributions are typically ordinary, not qualified. Money market fund dividends are also ordinary.

Tax-Advantaged Accounts

Choosing the right account is often more important than choosing the right stocks. US investors have several tax-advantaged options:

Traditional 401(k) and IRA

Contributions reduce your taxable income today (if you qualify). Investments grow tax-free inside the account. Withdrawals in retirement are taxed as ordinary income. No tax events from trading or dividends while the money stays inside the account.

Roth 401(k) and Roth IRA

Contributions are made with after-tax money. Investments grow tax-free. Qualified withdrawals in retirement are entirely tax-free. No tax events from trading or dividends while the money stays inside the account. Roth accounts are particularly powerful for young investors who expect to be in higher tax brackets later in life.

HSA (Health Savings Account)

If you have a qualifying high-deductible health plan, the HSA is the most tax-advantaged account in the US tax code. Contributions are pre-tax, growth is tax-free, and withdrawals for qualified medical expenses are tax-free. Many investors use the HSA as a stealth retirement account.

Taxable Brokerage Account

No tax advantages, but no contribution limits or withdrawal restrictions. The right home for funds you may need before retirement or for excess savings beyond what tax-advantaged accounts can hold.

Account Priority Order

A common framework: (1) contribute enough to your 401(k) to get any employer match, (2) max out an HSA if eligible, (3) max out a Roth or Traditional IRA, (4) increase 401(k) contributions further, (5) invest additional savings in a taxable brokerage account. This order maximizes the tax benefits available to most working investors.

Year-End Paperwork: The 1099-B

Each January or February, your brokerage will issue a 1099-B for the previous tax year. This form reports every sale in your taxable account: dates, sale proceeds, cost basis, and short-term vs long-term classification.

What Gets Reported

For "covered securities" (most stocks and ETFs purchased after specific dates set by Congress), the brokerage reports cost basis directly to the IRS. For "non-covered securities" (older purchases or certain transfers), the brokerage may report only proceeds, leaving you to provide the basis on your tax return.

Reconciling with Your Records

Always reconcile the 1099-B against your own records. Mismatches happen, particularly after broker transfers, corporate actions (splits, mergers), or DRIPs. An incorrect 1099-B that you accept at face value can lead to overpaying or underpaying tax — both bad outcomes.

Tax Software vs CPA

For simple situations (few trades, mostly long-term holds, no wash sales, single account), tax software like TurboTax or H&R Block handles 1099-B reporting well. For complex situations (many short-term trades, options, multiple accounts, wash sale violations, foreign tax credits), a CPA is well worth the cost. A good CPA often saves you more in taxes than they charge in fees.

Prepare Now Using Paper Trading

Paper trading is the perfect environment to internalize tax concepts before they matter financially. The exercises below help build tax awareness alongside trading skill.

Exercise 1: Tag Every Paper Trade

In your CustomStocks paper trading journal, tag every closed position with "short-term" or "long-term" based on hypothetical holding period. At the end of 6 months, calculate what your tax bill would have been at a 24% short-term and 15% long-term rate. The number is often surprising and motivates longer holding periods.

Exercise 2: Practice Specific Lot Identification

Buy the same paper trading position in tranches over several weeks at different prices. When you eventually sell some, mentally identify which specific lots you would sell to minimize gains. This builds the habit you will need in a real brokerage account.

Exercise 3: Run a Mock 1099-B

At the end of a paper trading quarter, list every closed trade in a spreadsheet with buy date, sell date, basis, proceeds, and short-term vs long-term classification. Calculate net realized gains. This mimics the document your real brokerage will produce annually and demystifies the format.

Exercise 4: Test Tax-Loss Harvesting Logic

Identify a paper position currently below your "cost basis." Walk through what a tax-loss harvest would look like in a real account: which replacement would you buy to avoid wash sale, how would you re-establish the position 31 days later, what records would you keep. The mental rehearsal makes the real action easy when the time comes.

Exercise 5: Track Net Worth Including Tax Drag

Use a tool like CustomWorth to track total net worth including a reserve for estimated taxes on unrealized gains. This habit makes you think about after-tax wealth, not just gross portfolio value — a small mindset shift that compounds into much better long-term decisions.

Taxes are not the most exciting part of investing, but they are one of the biggest determinants of your real, after-tax returns. The investors who do best treat tax planning as an integral part of every buy and sell decision, not an afterthought at year end. Paper trading lets you build that mindset before it costs you anything, so when your first real gain comes due, you are already several steps ahead. And when in doubt, consult a CPA — they earn their fee back many times over for engaged investors.

Practice Tax-Aware Trading Risk-Free

Download CustomStocks free from the App Store and build the holding-period discipline that pays off in real after-tax returns. Android coming soon.

Download CustomStocks on the App Store
CustomStocks Team
CustomStocks Team

We build free tools and write guides to help beginners learn stock trading risk-free. Learn more about us.