Skip to content
IntermediateTax and safety

Thinking about tax on DeFi transactions

Author
CRYPTO PORT Editorial
Published
Updated
Reading time
8 min

In short

A swap on a DeFi protocol fits the established framework: exchanging one crypto asset for another realises a gain or loss. Liquidity provision and more composite operations are different — what happened, and when, is often not clearly established. Separate what is settled from what is not, check National Tax Agency guidance, and consult a tax professional.

Key points

  • A DEX swap is a crypto-to-crypto exchange and, as a baseline, realises a gain or loss
  • Providing liquidity and receiving LP tokens sit in territory without clear established treatment
  • Gas fee treatment also has open questions and is not uniform
  • There is no consolidated statement as with an exchange — you must gather the history yourself

Definition

Exchanging, depositing or borrowing crypto through smart contracts, and the tax consequences. With no intermediary, record-keeping is entirely your responsibility.

The clearest point in DeFi is the swap. Exchanging one token for another is a crypto-to-crypto exchange: the token you gave up is treated as sold at its value at that moment. No yen needs to move for a gain or loss to arise. This is settled ground.

Everything else is harder. Depositing two tokens into a liquidity pool and receiving an LP token in return can be viewed as a mere deposit or as an exchange for the LP token, and the conclusions differ. How to describe a withdrawal whose composition has shifted — impermanent loss — is another open question. This is genuinely unsettled territory, and it would be wrong to present a confident answer.

Similar questions attach to depositing into a lending protocol and receiving an interest-bearing token, to wrapping an asset into another form, and to borrowing against collateral. What they share is that the on-screen action and what actually happens on chain are not always the same thing. The starting point is being able to describe technically what you did.

Gas fees have no single answer either. There is room to treat them as costs tied directly to a transaction, while fees spent on a failed transaction are harder to place. Again, this is decided case by case.

The biggest practical obstacle is history. No annual statement arrives; you assemble it yourself from wallet addresses, block explorers or analysis tools, repeating the work for every chain you use. If your volume is high, build the aggregation process during the year — leaving it until just before a deadline makes it unworkable.

Watch out for

  • · This page is a general orientation, not tax advice
  • · Many points — liquidity provision, wrapping and more — remain without clear established treatment; be wary of confident claims online
  • · If you use DeFi regularly, engage a tax professional early

Frequently asked questions

  • DEXs have no identity checks — does that mean records are unnecessary?

    Whether a venue verifies identity has nothing to do with whether income is reportable, and the transaction history stays on chain permanently. If anything, the absence of an operator statement makes your own records more important. Confirm treatment with a tax professional.

Source

Read next

Crypto quizzes

Answer a few questions and get your result instantly.

Start