Trading Tax Estimator: Crypto and Stock Capital Gains
Calculate capital gains tax for crypto and stock trading. Understand short-term vs long-term rates, tax loss harvesting, wash sale rules, and reporting requirements.
Trading Tax Estimator: Crypto and Stock Capital Gains
My friend Sarah spent all of 2021 day-trading meme stocks. Made a killingāon paper. Come April 2022, she discovered something ugly: short-term capital gains. She'd sold everything under a year, owed nearly 40% in taxes, and hadn't set aside a dime. "I thought I made $50k," she told me, staring at her TurboTax screen. "The government thinks I made $50k too. They want their cut." She had to borrow from her dad to pay the IRS. Understanding the tax implications of trading is essential for preserving investment returns. Capital gains taxes apply to profits from selling investments, with rates varying based on holding period, income level, and asset type.
Photo by Nick Chong on Unsplash
US Capital Gains Tax Rates
Short-Term (held ⤠1 year):
The IRS treats these like regular income. Whatever bracket you're in, that's your rate:
- 10%: $0 - $11,600
- 12%: $11,601 - $47,150
- 22%: $47,151 - $100,525
- 24%: $100,526 - $191,950
- 32%: $191,951 - $243,725
- 35%: $243,726 - $609,350
- 37%: Over $609,350
Sarah was in the 32% bracket. That $50k win? She owed $16k in taxes. Ouch.
Long-Term (held > 1 year):
Much friendlier:
- 0%: Up to $44,625 (single filer)
- 15%: $44,626 - $518,900
- 20%: Over $518,900
- Plus 3.8% Net Investment Income Tax if you're a high earner
The difference between short and long term can be massive. Holding for one year + one day saves you a bundle.
Cryptocurrency: The Wild West of Tax
The IRS treats crypto as property, not currency. That means every swap, sale, or spend is a taxable event.
Things That Trigger a Tax Bill:
- Selling crypto for dollars
- Trading one coin for another (yes, ETH ā SOL counts)
- Buying a coffee with Bitcoin
- Getting paid or mined crypto
Things That Don't:
- Buying crypto and holding (that's fine)
- Moving it between your own wallets
- Receiving it as a gift (under the annual limit)
Example:
You bought 1 ETH at $2,000 and sold at $3,000 eight months later.
That's a $1,000 short-term gain. Taxed at your ordinary rate.
If you'd waited four more months to hit the one-year mark, you'd pay the long-term rate instead. Big difference.
Capital Gains Calculation
The Formula:
Gain = Sale Price ā Cost Basis
That's it. The trick is figuring out the cost basis.
Three Methods, Three Outcomes:
FIFO (First-In, First-Out): The oldest shares get sold first. Default for most brokers. Simple, but not always optimal.
LIFO (Last-In, Last-Out): Newest shares go first. Can reduce gains if you bought high recently.
Specific Identification: You pick which lots to sell. Maximum control, more paperwork.
Example:
You bought 100 shares at $50, then another 100 at $60.
You sell 150 shares at $80.
Using FIFO: first 100 cost $50 each (gain $30 each), next 50 cost $60 (gain $20 each).
Total gain: (100 Ć $30) + (50 Ć $20) = $4,000.
Different method? Different tax bill.
Tax Loss Harvesting: Making Lemons into Lemonade
Sell a loser on purpose to offset your winners. Totally legal. Highly recommended.
How the Offsets Work:
Example:
Stock A made you $5,000 (short-term gain).
Stock B lost $3,000 (short-term loss).
Net gain: $2,000.
You saved $3,000 Ć your tax rate. Not bad for selling a dud.
The Wash Sale Rule: Don't Get Clever
You can't sell a stock at a loss and buy it right back. The IRS sees through that.
The Rule:
If you sell at a loss and buy the same (or substantially identical) security within 30 days before or afterāyour loss is disqualified. It gets tacked onto the new shares' cost basis instead.
Example:
You sell Stock X at a $1,000 loss on January 15.
You buy it back on January 25. Too soon.
Loss denied. You don't get to claim it.
Does This Apply to Crypto? Not yet. But the IRS is watching. Don't count on this loophole lasting.
The Fix: Buy something correlated but different during the 30-day window. Not identical, but similar exposure.
Crypto-Specific Gotchas
Track Everything: Every trade, every swap, every DeFi interactionāit's all taxable. Software like CoinTracker or Koinly saves your sanity.
Forks and Airdrops: Taxed as ordinary income at fair market value when you receive them. Yes, even the free ones.
DeFi: Staking rewards? Ordinary income. Liquidity pools? Each swap could be a taxable event. Yield farming? Tax hell. Hire a CPA who knows crypto.
Wash Sales: Crypto doesn't have them (yet). That might change. Don't build your strategy around this loophole.
State Taxes: Don't Forget Your Governor
The federal government isn't the only one taking a cut.
Nine states with zero income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, Wyoming. Lucky you.
States with high rates:
- California: 13.3% top rate (highest in the nation)
- New York: 10.9%
- New Jersey: 10.75%
Combined Reality Check:
Federal (20%) + State (10%) + NIIT (3.8%) = 33.8%.
A third of your gains gone. That's why planning matters.
Paperwork: What You'll Actually File
Form 8949: List every single saleādate, proceeds, cost basis, gain/loss. Every trade.
Schedule D: The summary. Adds up all those Form 8949 numbers.
Form 1099-B: Your broker sends this. It's a head start, but don't assume it's complete.
Crypto: Your exchange might send a 1099. Might not. Either way, it's on you to report everything.
Smart Moves
Hold for more than a year. Long-term rates (0-20%) vs short-term (up to 37%). Worth the wait.
Harvest those losses. Before year-end, look at your losers and sell strategically. Sarah should've done this.
Use retirement accounts. Trade inside a 401(k) or IRA. No capital gains taxes. Period.
Donate appreciated assets. Give stock instead of cash. You get the deduction, skip the capital gains tax. Win-win.
The Takeaway
Trading taxes aren't sexy, but ignoring them is expensive. Know your holding periods, track your cost basis, harvest losses, and plan ahead. Sarah learned the hard way so you don't have to. A few hours of planning can save you thousands of dollars and a very awkward conversation with your dad.