Fees look small one at a time. Across a few hundred swaps, bridges and transfers, they add up to real money, and real money belongs on the return.
For transactions on or after January 1, 2025, the Treasury regulations spell out how digital asset transaction costs are handled. The two key rules are in Treas. Reg. 1.1001-7, which governs the amount you realize when you dispose of crypto, and Treas. Reg. 1.1012-1(h), which governs the basis of crypto you acquire. They are more specific than most people expect, and in one respect they are stricter: paying a fee with crypto is itself a disposition.
What counts as a transaction cost
Treas. Reg. 1.1001-7(b)(2)(i) defines digital asset transaction costs as amounts paid in cash or property, including digital assets, to effect the sale, disposition or acquisition of a digital asset. The definition expressly includes transaction fees, transfer taxes and commissions. On-chain network fees paid to complete a swap or a purchase fit that description, as do exchange trading fees.
The regulation then says how to allocate those costs, and it adds that any other allocation or specific assignment is disregarded. You do not get to choose where a fee lands.
Buying crypto with dollars
When you buy crypto with cash, Treas. Reg. 1.1012-1(h)(1)(i) says your basis is the cash you paid plus the allocable transaction costs. Buy $1,000 of a token and pay a $10 fee, and your basis is $1,010. That fee will reduce your gain, or increase your loss, when you eventually sell.
For transactions before 2025, the IRS virtual currency FAQs reached a similar result for purchases: basis includes fees, commissions and other acquisition costs.
Selling crypto for dollars
When you sell crypto for cash, Treas. Reg. 1.1001-7(b)(1) computes the amount realized as the cash received reduced by the transaction costs allocable to the sale. Sell for $5,000, pay a $25 fee, and your amount realized is $4,975.
Form 1099-DA reports gross proceeds after reduction for allocable transaction costs in many cases. If your broker's figure does not reflect a cost you paid, the Form 8949 instructions for 2025 tell you to use adjustment code E and enter the cost as a negative number in column (g). See Form 1099-DA explained.
Swapping one token for another
Crypto-for-crypto swaps are where the 2025 rules differ from many people's habits. Under Treas. Reg. 1.1012-1(h)(2)(ii)(B), the total transaction costs paid to effect an exchange of one digital asset for another are allocated entirely to the disposition of the asset you gave up. None of it goes into the basis of the asset you received.
The regulation's example: you exchange 10 units of token A, worth $2 each, for 20 units of token B, worth $1 each, and pay a $2 fee in cash. Your amount realized on token A is $18 ($20 of token B received minus the $2 fee). Your basis in the 20 units of token B is $20, their fair market value. If your basis in token A was $5, your gain is $13.
The economic result is close to what you would get by splitting the fee, but the timing is different. The full fee reduces gain now, on the asset you disposed of, rather than being split between now and later.
Paying the fee in crypto is a disposition
Treas. Reg. 1.1001-7(b)(1)(ii) says that when digital assets are used or withheld to pay transaction costs, that use or withholding is a disposition of those digital assets for services. In other words, paying a network fee in ETH is a tiny sale of ETH.
The regulation's Example 3 shows the effect. You pay a swap fee using 2 units of token C, plus 1 more unit of C to cover the fee for disposing of C. You have disposed of 3 units of C, and you recognize gain or loss on them based on their basis. With a basis of $0.50 per unit and a value of $1 per unit, that is a $0.50 gain on the fee tokens, on top of the gain on the swap itself.
Individually these amounts are trivial. Across a year of active on-chain activity they are not, and they are reportable. The IRS digital assets page also says that if you paid a transfer fee with digital assets, you should answer Yes to the digital asset question on Form 1040. See how to answer the digital asset question.
When the fee is withheld from what you receive
Some platforms take their fee out of the tokens you receive. The regulations call these cascading costs. Under Treas. Reg. 1.1001-7(b)(2)(ii)(B) and 1.1012-1(h)(2)(ii)(C), the total costs to effect both the original exchange and the disposition of the withheld units are allocated to the disposition in the original exchange. And under 1.1012-1(j)(3)(iii), the withheld units are deemed to come from the units you just received, regardless of any other identification you made.
In the regulation's Example 5, 3 units of token B were withheld from 20 received. The amount realized on the token A given up was $17, and the withheld units of B produced no gain or loss because their basis equaled their value at that moment.
Fees to move crypto between your own wallets
A transfer between wallets you own is not a sale or exchange of the coins being moved. But the network fee for that transfer is usually paid in crypto, and paying it is a disposition of the units used under 1.1001-7(b)(1)(ii).
The regulations define transaction costs as amounts paid to effect a sale, disposition or acquisition. A self-transfer is neither, so do not assume the fee for moving coins can be added to the basis of the coins moved or subtracted from some later sale. Treat the fee units as disposed of, compute gain or loss on them, and keep the record. The wallet transfer guide covers the rest of the transfer rules.
Practical record-keeping for fees
- Capture the fee for every transaction, in the token it was paid in and its dollar value at that moment.
- Tag each fee by purpose: purchase, sale, swap, transfer, or contract interaction.
- Keep the transaction hash. It is the cleanest proof of what was paid.
- Run the fee units through your lot method like any other disposition. They come out of a specific wallet and carry a specific basis.
Small numbers handled consistently are not a problem. Small numbers ignored for years become a reconciliation project, usually at the worst possible time. See crypto record-keeping requirements.
Putting it together: one swap, three entries
Picture a single on-chain swap in 2026. You trade 1 unit of token A for 3,000 units of token B on a decentralized exchange, and pay the network fee with 0.002 ETH. That one click produces three tax entries.
- A disposition of token A. The amount realized is the value of the token B you received, reduced by the transaction costs allocated to the swap, which include the value of the ETH used for the fee.
- A disposition of 0.002 ETH used to pay the fee, with its own gain or loss based on the basis of those ETH units.
- An acquisition of 3,000 units of token B, with a basis equal to their fair market value at the time of the swap and a new holding period.
Most software captures the first and third entries. The second is the one that tends to disappear, and it is the one the regulation added on purpose.
Pre-2025 transactions
Treas. Reg. 1.1001-7 and 1.1012-1(h) apply to acquisitions and dispositions on or after January 1, 2025. For earlier years, the general rules of sections 1001 and 1012 and the IRS FAQs apply. If you are amending an older return, apply the rules in effect for that year, and document the approach you took. See amending a return to report crypto.
Frequently asked questions
Are gas fees deductible?
Not as a separate deduction in the usual case. Fees paid to buy crypto are added to basis, and fees paid to sell or swap crypto reduce the amount realized, under Treas. Reg. 1.1012-1(h) and 1.1001-7 for transactions on or after January 1, 2025.
Is paying a gas fee in ETH a taxable event?
Yes. Treas. Reg. 1.1001-7(b)(1)(ii) treats using or withholding digital assets to pay transaction costs as a disposition of those digital assets, so you recognize gain or loss on the units used.
Do swap fees increase the basis of the token I receive?
No. For crypto-for-crypto exchanges, Treas. Reg. 1.1012-1(h)(2)(ii)(B) allocates the costs entirely to the disposition of the asset you transferred. The new token's basis is its fair market value.
How do I report a fee my 1099-DA missed?
The 2025 Form 8949 instructions direct you to use adjustment code E and enter the transaction costs as a negative number in column (g) when they are not reflected on the form.
Want a second set of eyes on your crypto return?
Bring the exchange exports, the wallet addresses and the questions. The first consultation is free and the conversation is privileged.