Gainbasis

Guides

Crypto-to-crypto trades and fees

Swapping one coin for another is a taxable sale, and the fee you paid belongs in the numbers too. Here is how each fee is treated, with the IRS source for each rule.

Not tax advice. This guide explains general rules from official sources, as they read on the review date. Your situation may differ: check your return with a qualified tax professional.

A swap is a sale

Exchanging one digital asset for another is a disposition of the asset you give up. Its proceeds are the fair market value, in dollars, of what you receive, and the gain or loss is that value less your basis in what you gave up. Selling for dollars and spending crypto work the same way (IRS digital asset FAQ). Each is a row on Form 8949.

Borrowing against crypto and repaying are not taxable by themselves.

Trading fees

  • A fee to acquire an asset adds to its basis.
  • A fee to dispose of an asset reduces its proceeds.
  • On a swap, the fee belongs to the asset you gave up, not to the one you received (Treas. Reg. 1.1012-1(h)).

Worked example: you sell 1 coin for $3,900 and pay a $12 fee. Your proceeds are $3,900 − $12 = $3,888; with a basis of $3,000, the gain is $888.

Network fees and paying a fee in crypto

Crypto you spend to pay any fee, a network fee included, is itself a disposition of those units: a small gain or loss against their basis (IRS digital asset FAQ, Q53). On a transfer between your own wallets, the network fee is a disposition of the fee units and is not added to the basis of the coins you moved (IRS FAQ 53, 81 and 62). Gainbasis treats it that way and shows it as its own row.

Short term and long term

The holding period starts the day after you acquire the asset. Held more than one year is long term, which has its own rates; one year or less is short term (IRS digital asset FAQ).

When you sell at a loss

Short-term and long-term gains and losses net against each other. A net loss deducts against other income up to $3,000 a year ($1,500 if married filing separately), and the rest carries forward with its character (IRC 1211, IRC 1212).

The wash sale rule does not apply to crypto under current law, because IRC 1091 covers stock or securities. H.R. 10357 would apply it to digital assets sold after 14 September 2026 if it passes; as of 25 November 2026 it had not had a floor vote (The Block). Gainbasis ships the rule switched off, with its effective date ready, so a change in law is a setting and not a rewrite.

How Gainbasis applies it

  • Fees go to basis or proceeds as above, on the asset given up in a swap.
  • A network fee on a transfer between your wallets is its own disposition and is never added to basis.
  • Gains and losses are netted by term, the $3,000 cap applied, and carryforwards you enter are kept with their character.
  • Each row opens into the transactions and prices behind it. See the sample (invented data).

Questions

Is swapping ETH for a stablecoin taxable?

Yes. It is a disposition of the ETH, with a gain or loss against its basis (IRS digital asset FAQ).

Does the gas fee of a swap count?

On a swap, the fee belongs to the asset you gave up (Treas. Reg. 1.1012-1(h)). If you pay it in crypto, paying it is also a disposition of those units (IRS FAQ 53).

Is moving coins to my own wallet taxable?

No, but the network fee you pay for it is a small disposition of the fee units (IRS FAQ 53).

Can I deduct a crypto loss if I buy back right away?

Under current law the wash sale rule does not reach crypto (IRC 1091). A pending bill would change that; see above.

Official sources

By Leonardo Lima · Reviewed on

See every fee where it belongs.

Gainbasis puts each fee on the right side of the trade and every row on Form 8949, with its trail. The United States opens in January 2027 for tax year 2026; join the list and we write once, when it is ready.