The first time you sell an investment for a gain (or a loss), the tax side catches a lot of people off guard — not because it's complicated, but because nobody explains the actual sequence of steps. Here it is, in order.
Step 1: Gather Your 1099-B (or Equivalent)
Any brokerage, crypto exchange, or fund company you sold through is required to send you a 1099-B by early-to-mid February, listing every sale: the security, sale date, sale proceeds, and — usually — the cost basis (what you originally paid). Some crypto platforms send a 1099-DA or a less formal transaction export instead; either way, you need the same core numbers: what you paid, what you sold it for, and when you bought and sold.
Step 2: Figure Out Your Cost Basis (If It's Not Already Reported)
Cost basis is what you originally paid for the asset, including any purchase fees. For most brokerage stock and fund sales since 2011, the broker tracks and reports this for you automatically ("covered" securities). It's often not automatically tracked for crypto, older holdings, or assets transferred in from another platform — in that case, you're responsible for reconstructing it from your own purchase records. Getting this wrong in either direction either overstates or understates your actual gain.
Step 3: Separate Short-Term From Long-Term
This is the single most consequential step, because the two are taxed completely differently:
- Short-term (held one year or less): taxed as ordinary income, at your regular tax brackets.
- Long-term (held more than one year): taxed at the preferential 0%, 15%, or 20% capital gains rates, which are almost always lower than ordinary rates at the same income level.
The holding period is measured from the day after you bought to the day you sold. A single extra day can be the difference between short-term and long-term treatment on a sale that's right at the one-year line — worth double-checking exact trade dates rather than assuming.
Step 4: Net Your Gains and Losses Within Each Category
Short-term gains and losses net against each other first; long-term gains and losses net against each other separately; then the two net totals combine. If you have an overall net loss, up to $3,000 of it ($1,500 if Married Filing Separately) can offset ordinary income this year, with any excess carried forward to future years indefinitely.
Step 5: Run the Real Number
Once you know your net short-term gain and net long-term gain:
- Open the calculator, switch to Advanced Mode.
- Enter your net long-term gain in the Long-Term Capital Gains field — it's taxed separately at the 0/15/20% brackets, stacked on top of your ordinary income.
- Enter net short-term gains in the Other Ordinary Income field, since they're taxed at your regular rates alongside wages.
- Calculate to see your combined federal tax, including how much of it is attributable to the investment income specifically.
Step 6: Understand What Actually Changed On Your Return
The sale itself gets reported on Form 8949 and summarized on Schedule D when you actually file — tax software handles the forms once you've entered the 1099-B details, but knowing your net short-term and long-term totals ahead of time (from Step 4) means you can sanity-check what the software produces instead of just trusting it blindly.
Common Mistakes
- Assuming reinvested dividends aren't taxable — they generally are, in the year they're paid, even if you never touched the cash.
- Forgetting to adjust cost basis for reinvested dividends over time, which overstates your gain when you eventually sell.
- Mixing up short-term and long-term totals, especially with a mix of older and newer lots of the same stock.
- Not checking whether cost basis was actually reported to the IRS ("covered") vs. self-reported ("noncovered") — noncovered lots need your own records, not just what shows on the 1099-B summary.
Quick FAQ
Do I owe tax if I sold at a loss? No tax is owed on a loss itself, and losses can actively reduce your tax bill by offsetting other gains or up to $3,000 of ordinary income.
What if I only sold within a tax-advantaged account like a 401(k) or IRA? Sales inside those accounts aren't taxable events at all — this entire process only applies to a regular taxable brokerage account.
💡 Enter your gains into the Capital Gains preset to see exactly which rate applies before you file.