Crypto Tools Guide

Why Cost Basis Matters for Crypto Tax Reporting

A plain-English walkthrough of what cost basis actually means for crypto, which calculation methods the IRS accepts, how the 2025 wallet-by-wallet rule changed things, and how to keep your own numbers straight no matter how many wallets you use.

Whether you track it by hand or with a calculator, cost basis is the number every crypto tax calculation starts from.

If you've ever sold, swapped, or spent cryptocurrency, the IRS treats that moment as a taxable event, and your cost basis is what decides how much of it counts as a gain.

Cost basis is what you originally paid for a unit of crypto, including any fees, and it's the number you subtract from your sale proceeds to work out your real profit or loss. Get it wrong in either direction and it costs you. Understate your basis and you pay tax on money you never actually made. Overstate it without records to back you up, and you're inviting a tax notice you don't want.

The rules around tracking cost basis also changed in a significant way starting January 2025: the IRS now requires wallet-by-wallet tracking instead of one shared total across every account you hold. If you've moved coins between exchanges or wallets even once, that change probably affects you.

This guide walks through what cost basis actually means, which calculation methods the IRS accepts, how the 2025 wallet-by-wallet rule works, and how a Crypto Average Cost Basis Calculator can help you keep your numbers straight, even on the years your actual tax return needs a different method.

What Is Cost Basis in Crypto?

Cost basis is the dollar value you assign to a cryptocurrency purchase for tax purposes. It's what you paid to acquire it, and it becomes the baseline every future gain or loss is measured against. For US tax purposes, digital assets like Bitcoin and Ethereum are treated as property rather than currency, so the same general rules that apply to selling stock or real estate apply to crypto too.

That treatment matters because property sales trigger capital gains or losses, and you can't calculate either one without knowing what you originally paid.

What Counts Toward Your Cost Basis

Your cost basis isn't just the sticker price of the coin. It includes everything you paid to actually acquire it:

  • The purchase price in US dollars at the time you bought it
  • Exchange or brokerage fees charged on the purchase
  • Network or gas fees paid to complete the transaction
  • The fair market value of crypto you received as income, such as staking rewards or airdrops

Gas fees in particular are easy to forget, but they add up. If you're not sure what you actually paid in network fees across a busy trading month, our Ethereum Gas Fee to USD Calculator converts what you paid in ETH into a clear dollar figure you can add to your records, and our guide on converting Ethereum gas fees into USD costs walks through the process in more detail.

A Quick Example

Say you buy 0.5 BTC for $30,000 and pay a $150 exchange fee. Your cost basis for that 0.5 BTC is $30,150, not $30,000. If you later sell that same 0.5 BTC for $34,000, your taxable gain is $3,850, not $4,000. That $150 difference is small on one trade, but across dozens of trades a year, forgotten fees can meaningfully inflate what the IRS thinks you earned.

Why Cost Basis Matters for Your Tax Return

Every time you sell crypto, trade it for another coin, or spend it on goods or services, you're disposing of property in the eyes of the IRS. Each of those disposals is a separate taxable event, and the math behind every single one comes down to one formula:

Capital gain or loss = Sale proceeds − Cost basis.

US taxpayers report these gains and losses on Form 8949, which then flows into Schedule D of Form 1040. Form 1040 also asks a direct yes-or-no question about whether you received or disposed of any digital assets during the year, so crypto activity isn't something you can quietly leave off your return.

Every Disposal Is a Taxable Event

This surprises a lot of newer crypto users: trading one coin for another counts as a disposal, even if you never touched US dollars. Selling for cash, swapping BTC for ETH, and spending crypto at checkout are all treated the same way for tax purposes. Only moving crypto between wallets you personally own and control is generally not a taxable event on its own.

Getting It Wrong Costs You Either Way

If your cost basis is too low or missing entirely, your calculated gain looks bigger than it really was, and you pay more tax than you actually owe. If your cost basis is too high without documentation to support it, you're underreporting gains, which is exactly the kind of mismatch that draws IRS attention. Neither mistake benefits you, which is why getting the number right the first time is worth the effort.

Once you know your cost basis for a given sale, working out your actual take-home profit is the next step. Our Crypto Profit & Exchange Fee Calculator and companion guide on how to calculate crypto trading profit correctly both build directly on the cost basis figure you land on here.

Cost Basis Methods the IRS Actually Allows

Most crypto investors buy the same coin multiple times at different prices. When you sell, you need a rule for deciding which purchase, or "lot," you're actually selling from, since that choice changes your gain. Current IRS guidance permits exactly two approaches for digital assets.

FIFO (FIFO)

FIFO assumes the very first units you bought are the first ones you sell. It's the IRS default, meaning it applies automatically any time you haven't properly documented a specific identification. FIFO needs no extra paperwork, but in a rising market it tends to match your sale against your oldest, usually cheapest, lots, which often produces the largest taxable gain.

Specific Identification

Specific Identification lets you choose exactly which units you're selling, as long as you can document the acquisition date, cost, and fair market value of each unit, and you identify the specific lot before the trade happens, not after the fact. This is where the terms HIFO and LIFO come in. Neither is a separate, standalone method the IRS recognizes on its own. Instead, they're lot-selection strategies you carry out through valid Specific Identification. HIFO means choosing to sell your highest-cost units first, which tends to minimize your taxable gain. LIFO means selling your most recently acquired units first. Both are only defensible if your documentation shows you actually identified that lot ahead of the sale.

Average Cost Basis

Average cost basis takes every purchase of a given coin, adds up the total amount spent, and divides by the total units held, giving you one blended price per coin. It's simple to calculate and genuinely useful for understanding your overall position, which is exactly why it's such a common feature in portfolio trackers.

Here's the part that trips people up: average cost basis isn't currently accepted by the IRS as a method for calculating gains on individual crypto holdings in the United States. That's different from mutual funds, where average cost is explicitly allowed. Other countries take a different approach. Canada, for example, requires an average-cost method for identical property, including crypto, so which method is "correct" genuinely depends on where you file. Our companion guide on how to calculate your average cost basis in crypto walks through the calculation itself step by step.

Comparing FIFO, Specific Identification, and Average Cost

Each method changes both how much paperwork you need and how large your reported gain looks. Here's how they stack up side by side.

Crypto cost basis methods compared
Method How Lots Are Chosen Recordkeeping Needed Accepted by the IRS?
FIFO Oldest units sold first, automatically Low — the IRS default Yes, always
Specific ID (HIFO-style) Highest-cost units chosen first High — lot must be identified before the sale Yes, with documentation
Specific ID (LIFO-style) Most recently bought units chosen first High — lot must be identified before the sale Yes, with documentation
Average Cost One blended price across all identical units Low, but not a US tax method No, for US crypto filings

Whichever method you use within a given wallet, you need to apply it consistently for the whole tax year. You can use different methods across different wallets, and you're generally free to change your approach from one year to the next without seeking IRS approval first.

How to Calculate Your Average Cost Basis

Even though the IRS doesn't accept average cost as a US filing method, it's still one of the most useful numbers you can track. It tells you, at a glance, roughly what price a coin needs to reach before you're sitting on a paper profit.

Average Cost Basis Formula

Average Cost Basis = Total Amount Spent (including fees) ÷ Total Units Held

Total Amount Spent is every purchase price plus any fees paid to acquire those units.

Total Units Held is the number of coins or tokens you still hold from those purchases.

A Worked Example

Say you bought Ethereum three separate times over a few months:

Sample ETH purchase history
Date Amount Purchased Price per ETH Fees Total Cost
March 2 1.0 ETH $2,400 $12 $2,412
April 18 1.5 ETH $3,000 $18 $4,518
June 9 0.5 ETH $3,600 $8 $1,808

Add up the totals: $2,412 + $4,518 + $1,808 = $8,738 spent for 3.0 ETH total. Divide $8,738 by 3.0 and your average cost basis works out to roughly $2,912.67 per ETH. That's the number a portfolio tracker would show you as your "average buy price," even though your actual US tax return would still need to track each of those three lots separately under FIFO or Specific Identification.

Free Online Tool

Skip the manual math

100 Calculator's Crypto Average Cost Basis Calculator adds up every purchase you enter and returns your weighted average price per coin instantly, with no account or spreadsheet required.

If you bought in stages rather than all at once, our guide on how dollar cost averaging works for crypto investors explains how spreading purchases out over time shapes this same average, and our Crypto Dollar Cost Averaging (DCA) tool can help you plan future purchases with that average in mind.

Wallet-by-Wallet Tracking: What Changed in 2025

For years, many crypto investors used what's known as the universal method: every purchase of a given coin, no matter which exchange or wallet it sat in, was pooled into one combined cost basis. Final IRS regulations ended that option starting January 1, 2025. (IRS)

Under the current rules, you calculate cost basis separately for each wallet or exchange account. The same coin can legitimately carry a different basis depending on which wallet it happens to sit in, and you can no longer borrow a "better" cost basis from a different account when you sell.

Universal cost basis pooling compared with wallet-by-wallet tracking Diagram comparing the old universal cost basis method, where every wallet shared one combined pool, with the wallet-by-wallet method required since January 1, 2025, where each wallet or exchange account keeps its own separate cost basis. Before 2025: Universal Method Exchange A Exchange B Hardware Wallet One Shared Basis Pool All BTC counted as one pool, no matter which wallet held it Since 2025: Wallet-by-Wallet Exchange A Exchange B Hardware Wallet Basis A Basis B Basis C Each wallet keeps its own basis, tracked and reported separately
The universal method pooled every wallet together. Since January 1, 2025, each wallet or exchange account tracks its own cost basis instead.

The Transition From the Old Method

Because this change affected anyone who'd been pooling their cost basis for years, the IRS published Revenue Procedure 2024-28, offering a one-time safe harbor to reasonably reallocate existing basis across wallets before the new rule took effect. Taxpayers who used that transition window generally chose between allocating basis globally across all their holdings or allocating it to specific identified units. If you never made that reallocation and you're still using pooled numbers from before 2025, it's worth revisiting with a tax professional.

One more detail worth remembering: the method you choose for a wallet has to stay consistent for the entire tax year within that wallet. You're allowed to use FIFO in one exchange account and Specific Identification in another, but you can't switch methods mid-year inside the same wallet just to chase a better outcome on a single trade.

Transactions That Affect Your Cost Basis

Plenty of crypto activity beyond a simple buy-and-sell changes your cost basis. Here are the ones that trip people up most often.

Trading One Crypto for Another

Swapping Bitcoin for Ethereum is a disposal of the Bitcoin, calculated against its cost basis, at the moment of the trade. The fair market value of the Ethereum you receive then becomes the cost basis for that new holding going forward. If you build positions gradually rather than all at once, our guide comparing DCA versus lump sum investing is a useful companion read, since each staggered purchase becomes its own separate lot to track.

Staking Rewards, Mining, and Airdrops

Crypto you earn through staking, mining, or an airdrop is generally taxed as ordinary income at its fair market value the moment you receive it. That same value then becomes your cost basis for those specific units, so you're not taxed twice on the same value when you eventually sell.

Gifts and Transfers Between Your Own Wallets

Moving crypto from one wallet you own to another wallet you own isn't a taxable event by itself, but the cost basis needs to travel with the coins. This is exactly where the wallet-by-wallet rule creates friction: if the receiving platform has no way of knowing what you originally paid, your basis can effectively get lost in transit unless you keep your own records. Gifted crypto typically carries over the giver's original cost basis to the recipient, which is another reason a paper trail matters even when money never changes hands.

Common Cost Basis Mistakes to Avoid

Most cost basis problems come down to a handful of repeated habits. Here's what to watch for:

  • Leaving out fees. Exchange and gas fees belong in your cost basis, not just your purchase price.
  • Assuming your exchange knows everything. A platform only knows what happened on that platform. It can't see coins you transferred in from somewhere else.
  • Losing records during transfers. Moving crypto between wallets without noting the original purchase details is the single biggest cause of "orphaned" cost basis.
  • Switching methods mid-year. Using FIFO for one sale and cherry-picking Specific Identification for another, in the same wallet, in the same year, isn't consistent and isn't defensible.
  • Forgetting income events count too. Staking rewards and airdrops establish a new cost basis the moment you receive them, whether or not you ever sell them that year.

Many of these same habits also distort your reported profit, not just your basis. Our guide on common crypto profit calculation mistakes to avoid covers the downstream version of this same problem.

Record-Keeping Best Practices for Crypto Taxes

Good cost basis tracking is mostly a habit, not a one-time project. For every acquisition and every disposal, try to capture:

  • The exact date and time of the transaction
  • The amount and type of crypto involved
  • The fair market value in US dollars at that moment
  • Any fees paid, in dollars
  • Which specific wallet or exchange account the transaction happened in

Export your transaction history from every exchange and wallet you use on a regular schedule rather than waiting until tax season, since some platforms only keep detailed histories available for a limited time. The IRS generally recommends keeping records for at least three years after you report a taxable event, and longer if you're carrying basis forward on assets you still hold. (IRS)

If you've been buying the same coin steadily over time, running your purchase history through 100 Calculator's Crypto Average Cost Basis Calculator every few months is a simple way to keep a current snapshot of your average entry price while your fuller records stay organized in the background.

What Happens When Your Records Are Incomplete

Incomplete cost basis records don't make the tax question go away. They just shift the assumption against you.

The "Basis Gap" With Form 1099-DA

Starting with the 2025 tax year, digital asset brokers such as major exchanges are required to send taxpayers Form 1099-DA reporting their crypto sales. For 2025 transactions, most brokers report only your gross proceeds, not your cost basis, since broker-reported basis isn't required until 2026 transactions. (IRS) If you transferred crypto onto that exchange from somewhere else before selling, the exchange often has no way of knowing what you actually paid for it, and may report a cost basis of zero. Without your own records to correct that, your entire sale can look like pure profit.

The Real Cost of an Inflated Gain

An inflated gain isn't just an inconvenience. It directly increases the capital gains tax you owe, and if it pushes short-term gains into a higher bracket, the difference can be substantial. Rebuilding cost basis after the fact, digging through years of exchange statements and wallet histories, is far more work than keeping running records would have been in the first place.

Related Calculators

Put what you just read into practice, try these free tools instantly, no sign-up required.

When to Get Help From a Tax Professional

A handful of trades on a single exchange, with clean records and no transfers in or out, is often manageable on your own with a reliable calculator and a bit of organization. It's worth bringing in a tax professional who understands digital assets if any of the following sound familiar:

  • You've moved crypto between several exchanges or personal wallets over the years
  • You've used DeFi protocols, liquidity pools, or platforms that don't issue standard tax forms
  • You received a Form 1099-DA with numbers that don't match your own records
  • You need to amend a prior year's return to include crypto activity you missed
  • You've received an IRS notice related to digital asset transactions

Nothing in this guide is personalized tax advice. It's meant to help you understand the moving parts well enough to keep useful records and ask your preparer sharper questions, not to replace their judgment on your specific situation.

About the Author

This guide was prepared by the 100 Calculator Editorial Team. Before writing about crypto taxes, cost basis, or IRS reporting rules, we review guidance directly from the IRS and other official sources so the explanations here match how these rules actually work. We're not accountants or tax attorneys, and nothing in this guide replaces a conversation with a qualified tax professional about your specific situation. Crypto tax rules have changed significantly in the past two years, so we revisit our tax guides regularly to keep them accurate as new IRS guidance is issued. Our goal is simply to help you understand your own cost basis well enough to keep clean records and ask your tax preparer the right questions.

Tax disclaimer: This article is for general educational purposes only and isn't tax, legal, or financial advice. Cost basis rules for digital assets are complex, vary by jurisdiction, and continue to evolve. Always consult a qualified tax professional or accountant before filing your return or making decisions based on your crypto cost basis.

Sources & References

Still working through crypto strategy, profit tracking, or fee math? These related guides dig deeper into the topics covered above.

Frequently Asked Questions

What is cost basis in cryptocurrency?

Your cost basis is what you paid to acquire a unit of crypto, including the purchase price plus any transaction or network fees. When you later sell, trade, or spend that crypto, you subtract your cost basis from the proceeds to figure out your taxable gain or loss. Without an accurate cost basis, you can't calculate that gain or loss correctly.

Why does cost basis matter for crypto taxes?

In the US, crypto is treated as property, so nearly every time you sell, trade, or spend it, you create a taxable event. Your cost basis determines how much of that transaction counts as a gain. Get it wrong, and you either overpay tax on money you never actually made, or underreport gains and risk an IRS notice.

What cost basis methods does the IRS allow for crypto?

Current IRS guidance permits two methods: FIFO (first-in, first-out), which is the default, and Specific Identification, where you choose exactly which units you're selling and document that choice before the trade happens. If you can't support a specific identification, the IRS falls back to FIFO automatically.

Are HIFO and LIFO accepted crypto cost basis methods?

Not as standalone methods. HIFO (highest-in, first-out) and LIFO (last-in, first-out) are lot-selection strategies you can use only through valid Specific Identification, supported by records showing you identified that exact lot before the sale. Without that documentation, these approaches aren't defensible on a return.

Is average cost basis allowed for crypto taxes in the US?

No. The average cost basis method isn't currently accepted by the IRS for individual crypto holdings, even though it's a common and genuinely useful way to track your overall position. Some other countries, including Canada, do require an average-cost approach for identical crypto holdings, so the right method depends on where you file.

What is the wallet-by-wallet rule for crypto cost basis?

Since January 1, 2025, US taxpayers must calculate cost basis separately for each wallet or exchange account instead of pooling every purchase into one shared total. This replaced the older "universal" method and means the same coin can carry a different basis depending on which wallet it sits in.

What happened to the universal cost basis method?

The universal method let you treat all your crypto holdings of the same type as one combined pool, no matter which wallet or exchange held them. Final IRS regulations ended this option starting in 2025, and Revenue Procedure 2024-28 gave taxpayers a one-time window to reasonably reallocate their existing basis across wallets before the switch.

Do transaction fees count toward my cost basis?

Yes. Exchange fees, network fees, and gas fees you pay to acquire crypto are added to the purchase price to form your total cost basis. Leaving fees out understates your basis, which can make your eventual gain look larger than it really was.

What's my cost basis for crypto I earn from staking or an airdrop?

Crypto you receive from staking, mining, or an airdrop is generally taxed as ordinary income at its fair market value the moment you receive it. That same value then becomes your cost basis for those units going forward, so you won't be taxed on it twice when you eventually sell.

What is Form 1099-DA, and does it show my cost basis?

Form 1099-DA is a new IRS form that digital asset brokers, like exchanges, send starting with the 2025 tax year to report your sales and disposals. For 2025 transactions, most brokers report only your proceeds, not your cost basis, so you're still responsible for calculating and documenting it yourself.

What happens if I don't know my cost basis?

If a broker can't verify what you originally paid, it may report your cost basis as zero, which makes your entire sale look like pure profit. Without your own records to correct that, you could end up paying tax on money you already spent acquiring the asset.

Can I switch cost basis methods between tax years?

Yes, you can generally change your method from one tax year to the next without needing special IRS approval. Within a single wallet during a single year, though, you have to apply one method consistently. You can't switch back and forth mid-year to cherry-pick the best outcome.

Is trading one cryptocurrency for another a taxable event?

Yes. Swapping Bitcoin for Ethereum, or any crypto-to-crypto trade, counts as a disposal of the coin you gave up. You calculate a gain or loss on that coin using its cost basis, and the fair market value of what you received becomes the cost basis of your new holding.

What's the real difference between FIFO and Specific Identification?

FIFO automatically assumes the oldest units in a wallet are the ones you're selling, with no extra paperwork needed. Specific Identification lets you choose exactly which units to sell, which can help manage your gains, but only if you documented that choice before the trade and can prove it later.

Do I need a crypto tax professional, or can I handle this myself?

Simple situations, like a handful of trades on one exchange, are often manageable on your own with good records and a reliable calculator. If you trade across multiple wallets, use DeFi platforms, or have years of tangled history to untangle, a crypto-savvy tax preparer can save you far more than they cost.

How does a crypto average cost basis calculator help if the IRS doesn't accept average cost?

It gives you a clear, weighted average price per coin across all your purchases, which is genuinely useful for tracking your portfolio's performance and understanding your unrealized gain or loss at a glance. You'll still need FIFO or Specific Identification for your actual US tax filing, but the average helps you sanity-check your numbers along the way.

About 100 Calculator

100 Calculator is a free hub of online calculators and educational guides covering health, finance, trading, crypto, education, and more. Every tool is built to be fast, accurate, and genuinely free, with no account or signup required.

We built this guide, and tools like the Crypto Average Cost Basis Calculator referenced throughout it, to make everyday crypto questions a little easier to answer. Head back to the 100 Calculator homepage to explore the full library of tools, or learn more about the team behind them on our About Us page.