

Software developer and data geek with 18+ years delivering web, mobile, and defense systems that ship to production. My focus is on analytics platforms, APIs and developer tooling. My open-source work ranges from compilers and automation frameworks to GIS data products. I weave AI-assisted workflows into day-to-day engineering to accelerate delivery and quality.
If you've been following along with my crypto education series this year, you've learned about blockchains, DeFi, stablecoins, NFTs, and various ways to put your crypto to work. But there's one topic I've been avoiding, and it's the one that matters most when tax season arrives: how the IRS treats your crypto gains.
Let me be upfront: I'm not a CPA, and this isn't tax advice. What follows is my understanding of crypto taxation based on current IRS guidance and conversations with tax professionals. Your situation is unique, and you should consult a qualified tax advisor before making any decisions. That said, too many crypto investors are completely blindsided by their tax bills, so understanding the basics is essential.
This is the foundation of everything that follows. According to IRS Notice 2014-21, when you sell Bitcoin for dollars, you're not exchanging currency; you're selling property, just like selling a house or a stock. That means you owe capital gains tax on any profit. But here's where it gets complicated: every crypto transaction is potentially a taxable event. Not just selling for dollars, but trading one crypto for another, using crypto to buy goods, earning crypto from staking or airdrops. All of these can trigger taxes.
If you hold crypto for less than a year before selling, your profits are taxed as ordinary income. Depending on your tax bracket, that could be 22%, 32%, or even 37% going to the IRS. If you hold for more than a year, you qualify for long-term capital gains rates: 0%, 15%, or 20% depending on your income. The difference is massive. On a $100,000 profit, the difference between short-term and long-term rates could be $15,000 or more in your pocket. The lesson? Patience pays.
When you sell crypto, you need to determine which coins you're selling to calculate your gain. If you bought Bitcoin at various prices over time, which purchase are you selling? The IRS allows several methods:
Here's a concrete example. Say you bought 1 BTC at $10,000 in January, 1 BTC at $30,000 in June, and 1 BTC at $50,000 in November. Now Bitcoin is at $60,000 and you want to sell 1 BTC. Under FIFO, you sell the January coin and owe taxes on $50,000 gain. Under HIFO, you sell the November coin and owe taxes on only $10,000 gain. Same sale, $40,000 difference in taxable gain.
Most exchanges default to FIFO, but you can use any method as long as you're consistent and have records to support it. I personally use HIFO for sales because it minimizes my tax liability, but this requires tracking every purchase with dates and amounts.
This is one of the few legal strategies to reduce your crypto tax bill. If you have coins sitting at a loss, you can sell them to realize the loss, then immediately buy back the same coin. The loss offsets your gains for the year. Unlike stocks, crypto isn't currently subject to the wash sale rule, so you don't have to wait 30 days before repurchasing. A word of caution: there's been talk of Congress extending wash sale rules to crypto, so this loophole may not last forever.
If you thought basic crypto taxes were complex, DeFi makes them exponentially worse. Every swap on Uniswap is a taxable event. Providing liquidity? That's a taxable event when you deposit, when you receive LP tokens, and when you withdraw. Yield farming rewards are taxed as ordinary income when received, then as capital gains when sold. Many DeFi protocols don't provide tax documents, and some transactions are so complex that even tax professionals struggle to categorize them. My advice: if you're deep into DeFi, budget for a crypto-specialized CPA. The cost is worth the peace of mind.
Given the rules above, here are legitimate ways to reduce what you owe:
Some people advocate for the "buy and hold forever" strategy, using crypto as collateral for loans instead of selling. This is getting into more advanced territory, and the IRS may eventually close these loopholes. But currently, borrowing against your crypto isn't a taxable event since you're not disposing of the asset.
This is non-negotiable. Track every transaction with dates, amounts, cost basis, and fair market value. Use crypto tax software like CoinTracker, Koinly, or TaxBit. Export transaction histories from every exchange you've used. The IRS is getting more sophisticated about tracking crypto, and exchanges are now required to report user transactions. Getting caught with unreported gains isn't worth the risk.
The crypto tax code is complex and evolving. New regulations are being proposed regularly. But understanding the basics, capital gains treatment, cost basis methods, and loss harvesting, can save you thousands of dollars and keep you out of trouble with the IRS. When in doubt, hire a professional. The cost of a good crypto CPA is almost always less than the cost of mistakes.
Disclaimer: This article is for educational purposes only and does not constitute tax, legal, or financial advice. Consult a qualified tax professional for guidance specific to your situation.