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:

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.

💡 If you're sitting on a position that's just short of the one-year mark and gains are meaningful, it's worth checking the exact date before selling — waiting a few days can shift the whole sale into the lower long-term rate bracket.
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:

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
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.