What Is DeFi and How Is It Taxed in the UK
DeFi, or decentralised finance, is one of the most innovative and fast-growing parts of the cryptocurrency world. It allows users to earn interest, borrow, lend, and trade digital assets without using traditional banks or intermediaries. While DeFi offers exciting opportunities, it also creates complex tax obligations. In the UK, HMRC treats most DeFi activity as taxable, and understanding how those taxes apply is essential for staying compliant. This guide explains what DeFi is, how it works, and how it is taxed under UK law.
Written by Christina Odgers FCCA
Director, Towerstone Accountants
Last updated 23 February 2026
At Towerstone, we provide specialist crypto accountancy services for UK investors and businesses. We have written this article to explain how DeFi activities are taxed, helping you understand the tax and reporting position.
In my experience, DeFi is one of the most exciting and at the same time one of the most misunderstood areas of crypto. I regularly speak to people who are deeply involved in decentralised finance from a technical or investment perspective, yet have very little clarity on how it is treated for tax in the UK. Others have dipped their toe in without even realising that what they were doing counted as DeFi at all.
In my opinion, DeFi is not inherently more complex than other forms of crypto activity, but it does create far more taxable events, often without people realising it. Because everything happens on chain, automatically, and often without cash changing hands, it feels detached from the real world tax system. Unfortunately, HMRC does not see it that way.
In this article, I am going to explain what DeFi actually is , how the most common DeFi activities work, and how they are taxed in the UK based on current HMRC guidance and real world practice. I will also explain where the grey areas are, because honesty matters here, and where I see people make the most expensive mistakes.
What Is DeFi in Simple Terms?
DeFi stands for decentralised finance.
At its core, DeFi is a collection of financial services built on blockchain technology that operate without traditional intermediaries such as banks, brokers, or exchanges.
Instead of a bank holding your money, smart contracts hold and manage assets according to coded rules.
From experience, the easiest way to think about DeFi is this. It is traditional financial activity like lending, borrowing, trading, and earning yield, but carried out using blockchain based protocols rather than institutions.
How DeFi Differs From Traditional Finance
In traditional finance:
• A bank holds your funds
• A broker executes trades
• A company pays interest or dividends
• Contracts are enforced legally
In DeFi:
• You control your wallet
• Smart contracts execute transactions
• Yield is generated through protocols
• Enforcement is done by code
In my opinion, this shift is what makes DeFi powerful, but it is also what makes tax treatment harder to understand.
Common DeFi Activities People Engage In
From experience, most people involved in DeFi are doing one or more of the following, often without seeing them as separate tax events.
Common DeFi activities include:
• Token swaps on decentralised exchanges
• Providing liquidity to pools
• Yield farming
• Staking through protocols
• Lending crypto and earning yield
• Borrowing against crypto
• Wrapping and unwrapping tokens
Each of these activities can have different tax consequences.
HMRC’s Overall View on DeFi
HMRC does not have a single DeFi tax regime. Instead, it looks at the underlying activity and applies existing tax principles.
In my experience, this is where confusion starts. People expect a simple DeFi tax rule. What actually exists is a set of interpretations based on whether something looks like income, a disposal, or a change in ownership.
HMRC focuses on substance over labels.
The Core Tax Question HMRC Asks
For every DeFi transaction, HMRC is effectively asking:
• Has ownership of a cryptoasset changed
• Has value been realised
• Has income arisen
If the answer to any of these is yes, tax consequences usually follow.
In my opinion, understanding this mindset helps everything else fall into place.
DeFi Token Swaps and Tax
Let us start with the most common DeFi activity, swapping one token for another on a decentralised exchange.
From a tax perspective, this is treated in exactly the same way as swapping tokens on a centralised exchange.
That means:
• You are disposing of the token you give up
• The disposal is valued in GBP at that time
• Capital Gains Tax may apply
It does not matter that no fiat currency is involved.
In my experience, this is the single biggest source of undeclared gains.
Why DeFi Swaps Are Taxable
When you swap Token A for Token B, you have given up ownership of Token A in exchange for value.
From HMRC’s perspective, that is a disposal.
In my opinion, people often assume DeFi swaps are internal movements, but legally and economically, they are exchanges of property.
Liquidity Pools and Providing Liquidity
Providing liquidity is where things start to feel less intuitive.
When you add tokens to a liquidity pool, you usually receive liquidity provider tokens in return.
From a tax perspective, this often involves:
• Disposing of the original tokens
• Acquiring a new token representing your pool share
In many cases, HMRC treats this as a disposal of the original tokens, triggering Capital Gains Tax.
From experience, this surprises almost everyone.
Yield Farming and Liquidity Rewards
Yield farming often involves earning additional tokens as a reward for providing liquidity.
These rewards are usually treated as income.
This means:
• The GBP value when received is taxable as income
• That value becomes the cost for future capital gains
In my opinion, this dual tax treatment is one of the most confusing aspects of DeFi.
Staking Through DeFi Protocols
Staking through a DeFi protocol is different from traditional proof of stake staking, but the tax treatment is often similar.
In most cases:
• Staking rewards are taxed as income when received
• The GBP value at receipt is used
• Future disposals may trigger Capital Gains Tax
Whether the act of staking itself is a disposal depends on whether ownership is considered to have changed.
From experience, this is a grey area and depends heavily on the specific protocol mechanics.
Lending Crypto Through DeFi
Many DeFi platforms allow you to lend crypto and earn yield.
The key tax questions here are:
• Do you retain ownership of the crypto
• Are you receiving income
• Is there a disposal on deposit or withdrawal
In many cases, HMRC treats lending rewards as income, taxable when received.
If the protocol issues a different token in return for your deposit, that may also trigger a disposal.
In my opinion, lending is often far more tax heavy than people expect.
Borrowing Against Crypto
Borrowing against crypto usually does not create a tax charge on its own.
Borrowing is not income.
However, complications arise if:
• Crypto is disposed of to repay a loan
• Collateral is liquidated
• Wrapped or derivative tokens are involved
From experience, borrowing itself is often tax neutral, but the surrounding activity is not.
Wrapping and Unwrapping Tokens
Wrapping tokens such as ETH to WETH or BTC to WBTC is another area of debate.
In many cases, HMRC treats wrapping as a disposal and acquisition because you are exchanging one token for another.
Some argue that wrapping is merely a technical transformation, but HMRC’s approach is conservative.
In my opinion, assuming wrapping is tax free is risky.
Capital Gains Tax in DeFi
Most DeFi disposals fall under Capital Gains Tax.
This includes:
• Token swaps
• Entering and exiting liquidity pools
• Wrapping tokens
• Using DeFi tokens to acquire other assets
Each disposal must be valued in GBP at the time it occurs.
Pooling and matching rules apply in the same way as with other crypto activity.
Income Tax in DeFi
Many DeFi activities generate income rather than capital gains.
This includes:
• Yield farming rewards
• Staking rewards
• Interest like returns
• Incentive tokens
Income is taxed at the point it is received, based on its GBP value at that time.
From experience, people often forget that income tax applies long before any cash is withdrawn.
Capital Losses in DeFi
Losses can arise in DeFi, especially where token values fall or impermanent loss occurs.
Capital losses can usually be:
• Set against capital gains
• Carried forward
However, impermanent loss itself is not a tax concept. It only matters when a disposal occurs.
In my opinion, people often assume impermanent loss is automatically deductible, which is not always the case.
Record Keeping for DeFi
DeFi creates a huge record keeping challenge.
From experience, people underestimate the number of transactions they have made.
HMRC expects records of:
• Dates and times of transactions
• Tokens disposed of and acquired
• GBP values
• Fees paid
• Wallet addresses
Blockchain transparency does not remove the need for organised records.
Valuing DeFi Transactions in GBP
Every DeFi transaction must be valued in GBP at the time it occurs.
This includes:
• Token swaps
• Rewards received
• Fees paid
In my opinion, consistency in valuation sources is essential.
Using the same pricing source throughout the year is far safer than switching between sources.
DeFi and the Annual Capital Gains Allowance
DeFi gains count towards your annual Capital Gains Tax allowance.
If total gains exceed the allowance, tax is payable.
However, reporting may still be required even if no tax is due.
From experience, people often ignore reporting because they believe gains are covered by the allowance.
DeFi and Trading Versus Investing
In rare cases, extremely active DeFi activity could be classed as trading rather than investing.
This would bring profits into Income Tax instead of Capital Gains Tax.
HMRC looks at factors such as:
• Frequency
• Organisation
• Intention
• Level of sophistication
In my experience, most individuals are still treated as investors, but heavy DeFi users should be cautious.
Common DeFi Tax Mistakes I See
Over the years, I see the same errors repeatedly.
These include:
• Assuming DeFi is outside the tax system
• Ignoring crypto to crypto swaps
• Not recording income at receipt
• Failing to value transactions in GBP
• Underestimating the number of disposals
In my opinion, most of these mistakes come from misunderstanding rather than intent.
HMRC Enquiries Into DeFi Activity
HMRC is increasingly aware of DeFi.
From experience, enquiries often focus on:
• Wallet addresses
• Exchange entry and exit points
• On chain transaction history
• Consistency of reporting
Blockchain analysis tools make DeFi activity far more visible than people expect.
What If the Rules Are Unclear?
There are genuine grey areas in DeFi taxation.
HMRC guidance continues to evolve, and not every scenario is covered explicitly.
In these cases, HMRC expects:
• A reasonable interpretation
• Consistent treatment
• Clear documentation
In my opinion, doing nothing because the rules are unclear is the worst option.
Practical Advice Based on Experience
If you are involved in DeFi, I would strongly recommend:
• Treating every token movement as potentially taxable
• Recording GBP values at the time
• Separating income from capital activity
• Reviewing your position regularly
In my opinion, DeFi tax is manageable, but only with discipline.
My Professional View
In my opinion, DeFi is not tax free, not invisible, and not unregulated from a tax perspective.
It is simply new technology layered on top of existing tax principles.
From experience, the people who struggle most are those who assume DeFi operates outside the system.
Those who approach it methodically tend to avoid serious issues.
Where this leaves you
So, what is DeFi and how is it taxed in the UK?
DeFi is decentralised finance, allowing people to lend, borrow, trade, and earn yield using blockchain protocols. For tax purposes, HMRC looks through the technology and taxes the underlying activity.
Token swaps usually trigger Capital Gains Tax. Rewards are often taxed as income. Many actions create disposals without people realising it.
In my experience, DeFi tax problems are rarely about the size of the gains. They are about volume, complexity, and lack of records.
In my opinion, the safest way to approach DeFi is to assume that every meaningful action has tax consequences until proven otherwise.
If you would like to explore related investing and crypto guidance, you may find What is HMRC’s view on crypto mining income and What is the best accounting software for tracking crypto transactions useful. For broader investing context, visit our stocks and shares guidance hub.