DeFi Crypto Tax Guide: Analyzing Lending, Yield Farming, Liquidity Pools, Borrowing, and Earning
The DeFi space that exists within the larger crypto industry has seen explosive growth in 2020. Fueled by yield farmers and crypto holders seeking opportunities to put their crypto to work, billions of dollars of cryptocurrency have been poured into DeFi and the Ethereum ecosystem at large.
With this flurry of new crypto activity comes the fated question: What are the tax implications for DeFi? How do DeFi transactions work from a tax perspective?
In this article, we dive into these questions and share the fundamentals of DeFi taxes as they relate to lending, borrowing, yield farming, liquidity pools, and earning.
Crypto Taxes 101
In the U.S. and many other countries, cryptocurrencies are treated as property for tax purposes. Similar to other forms of property like stocks and bonds, you incur capital gains and capital losses when you sell, exchange, or otherwise dispose of your cryptocurrency. Capital gains and losses need to be reported on your taxes.
Additionally, when you earn cryptocurrencies through any means whether that is mining, staking, or forms of interest, you recognize income at the fair market value of the cryptocurrency at the time it is received. This income needs to be reported on your taxes.
While the IRS has not released any direct guidance on DeFi specifically, they have released general guidance on cryptocurrency. The tax implications for DeFi can be inferred from these guidelines. As more updates from a tax legislative perspective come out, this guide will be updated to reflect those changes.
If you are just starting to learn about the tax implications of crypto, we recommend starting out with our article: The Complete Guide To Cryptocurrency Taxes.
What is Decentralized Finance (DeFi)?
DeFi, short for decentralized finance, is an area of cryptocurrency focused on enabling access to financial services such as trading, lending, and borrowing without incurring the costs or delays associated with traditional rent-seeking middlemen (i.e. banks, financial institutions, etc).
The vast majority of popular DeFi platforms today are built within the Ethereum ecosystem. Some unique technological advancements such as Automated Market Making (AMM) and Liquidity Pools enable the “decentralized” capabilities of many of the most popular DeFi platforms today.
These new advancements create some unique tax situations which we address below.
DeFi Lending and Liquidity Pool Taxes
When you lend your cryptocurrency out, you are liable to pay taxes on any income that you receive as a result of your lending activity.
The income that you receive as a result of your lending activity can take one of two forms. Depending on the DeFi platform you are using, your income will either be:
- Ordinary income (like income received from a salary) or
- Capital gains income
The distinction between capital gains income vs. ordinary income is an important one to understand because they carry different tax implications.
Capital Gains vs Ordinary Income
Ordinary income (like income from a salary) is simply taxed at your marginal tax bracket. Because of this, ordinary income doesn’t carry significant tax savings opportunities.
Capital gains income on the other hand does have significant tax savings benefits. The first benefit of capital gains income is the long-term capital gains tax rates, which you qualify for if you held your asset for longer than 12 months. Long term capital gains tax rates are significantly less than short term capital gains rates and can save you a lot of money in taxes owed if you strategically plan for them.
Additionally, capital gains income can be completely offset by capital losses—whereas capital losses cannot fully offset ordinary income (they can only offset up to $3,000 of ordinary income).
Let’s now take a look at ordinary income vs. capital gains as they apply within the DeFi space.
Ordinary Income within DeFi
In the traditional world, and even in the centralized cryptocurrency space, lending platforms often pay out interest in the same currency that you lent them (like interest you receive from a bank or like crypto interest you receive from a crypto lending platform like BlockFi). For example, if you lent ETH, the interest payments that you earn from a deposit would often also be in ETH.
When this is the case, the interest that you are earning qualifies as ordinary income.
In other words, if you earn crypto tokens for lending (e.g. your wallet balance directly increases when you earn the interest income), then you recognize this as ordinary income.
Capital Gains Income within DeFi
Many new DeFi protocols issue Liquidity Pool Tokens (LPTs) when you lend them your crypto. These LPTs represent the portion of your stake in the liquidity pool.
In this case, you may recognize capital gains income, not ordinary income, from interacting with the protocol.
This is because adding your tokens to a liquidity pool and receiving LPTs is actually structured as a trade/token swap.
As the liquidity pool accrues interest, the value of your stake in the pool increases—such as with cTokens. However, you aren’t actually paid out this interest directly (like you were in the ordinary income example). Rather, the value of your LPTs (cTokens) increases as interest accrues while the amount of LPTs you own stays constant. When you swap your LPTs back for the underlying asset, you trigger a capital gain equal to the amount that the LPTs have accrued in value, and this is treated as capital gains income.
DeFi Examples - Ordinary Income vs. Capital Gains
DeFi platforms such as Compound and yearn.Finance and their associated cTokens and yTokens are good examples of protocols in which the “interest accruing” actually gets treated as capital gains because transactions are structured as token swaps/trades.
On the other hand, on platforms such as Aave the interest accrued from lending gets paid out to you directly in the form of aTokens and is thus treated as ordinary income, not capital gains.
As Compound states on its website: “As a market earns interest, its cToken becomes convertible into an increasing quantity of the underlying asset.” Put another way, as the crypto you lent into Compound earns interest, your cTokens (which represent your stake in the pool) become convertible for an increased quantity of the underlying asset (i.e. the crypto you lent into Compound).
This means that you aren’t actually earning disbursements of interest rewards from Compound directly. From a tax perspective, this means that the income associated with your cTokens is capital gains income (not ordinary income) recognized when you convert your cTokens back to the underlying asset.
Contrary to cTokens, aTokens are minted at a 1:1 ratio to the underlying asset. This means that you are paid out in aTokens as the cryptocurrency that you lent earns interest. These aToken interest payments are treated as ordinary income equal to the fair market value of the aToken at the time it is received.
Full DeFi Lending Example:
We’ve covered a lot of ground so far, so let’s stop to look at a full example of the step-by-step tax treatment for a common interaction with a DeFi protocol like Aave.
- Lucas buys 1 ETH for $300. Months later when that 1 ETH is worth $400, Lucas uses it to mint 1 aETH. At this point, Lucas recognizes a $100 capital gain when he “trades” his 1 ETH for 1 aETH.
- Lucas now lends via his aETH, and earns 0.1 aETH as interest on June 12 which is worth $30 at the time. Lucas recognizes $30 worth of ordinary income.
- One month later, Lucas converts 1 aETH back to 1 ETH. At the time of conversion, 1 aETH is worth $300. Here, Lucas would incur a $100 capital loss when he trades his aETH for ETH—as his cost basis in that 1 aETH was $400 (400 - 300 = 100).
In summary, Lucas first recognized a $100 capital gain, then $30 of ordinary income, and then a $100 capital loss. Because Lucas’s capital loss would fully deduct from his capital gain, he would only owe taxes on his $30 of ordinary income in this example.
As you can see, it’s easy for things to get complicated very quickly from a tax reporting perspective. This is where cryptocurrency tax software can be beneficial for automating all of your income tax reporting.
Yield Farming and Liquidity Mining Taxes
Advancements in the way decentralized exchanges enable crypto-to-crypto trading (via automated market making and liquidity pools) has brought on a wave of new cryptocurrency activity focused on earning yield. “Yield Farmers” or “Liquidity Miners” seek to earn rewards by using their crypto holdings as collateral to earn yield/interest.
The tax implications of this activity is no different than the examples walked through above.
The interest rewards received from loaning out your cryptocurrency are subject to income tax, and depending on the specifics of the protocol, they will either be capital gains income or ordinary income (see section above).
DeFi Governance and Incentive Tokens
Governance tokens used to incentivize cryptocurrency holders to use their assets as collateral to fund liquidity pools have become common and have allowed “Yield Farmers” to ramp up their potential earnings.
Popularized by Compound’s COMP governance token, COMP is distributed to anyone who supplies or borrows crypto to/from Compound.
You recognize income when you receive governance and incentive tokens similar to COMP. The amount of income you recognize is equal to the market value of COMP (or whatever the governance token) at the time it is received.
Additionally, when you sell your COMP (or related governance token), you trigger a taxable event and recognize a capital gain or capital loss depending on COMP’s fluctuation in value since you earned it.
- Mitchell buys 0.5 ETH for $100. Two months later, he converts 0.5 ETH (which is now worth $150) to cETH. Mitchell recognizes a $50 capital gain when exchanging his ETH for cETH.
- Mitchell also receives 1 COMP as an incentive for lending out his ETH. At this time, 1 COMP is worth $100. Mitchell recognizes $100 of income on the day he receives the 1 COMP.
- One month later, Mitchell sells his 1 COMP for $500. At this time, Mitchell incurs a $400 capital gain from selling his COMP as his cost basis in the token was $100 (500 - 100).
Borrowing / Taking Out a Crypto Loan
So far we have focused on the tax implications for one side of the market, the lender. But what if you are the borrower? What are the tax implications of taking out a loan?
If you take out a loan using cryptocurrency as collateral, you do not trigger a taxable event. This is different from “trading” your crypto for another crypto, and it has tax advantages due to this fact.
John takes out a stablecoin loan on his ETH holdings. John receives 1,000 DAI as a loan based on his ETH he put up as collateral. John does not trigger any tax event when borrowing 1,000 DAI.
Are Crypto Loan Interest Payments Tax Deductible?
The IRS has yet to issue specific guidance surrounding interest payments in crypto lending. However, you can get a better idea for how they may be treated by looking at traditional lending. To understand whether your interest payments are tax-deductible, it is necessary to consider whether a loan is used for personal, investment, or business-related purposes.
If a business takes out a loan for a commercial purpose, the interest is treated as a legitimate tax-deductible business expense.
If a loan is taken out for personal reasons, interest expense is usually not considered tax-deductible.
If you use the borrowed funds for investment purposes (yield farming for example) the interest expense you incur is classified as investment interest expense. Investment interest expenses are subject to special tax rules and are deductible only up to your net investment income.
DeFi Platforms - Tax Treatment Overview
Below we have summarized the high level tax implications relating to specific DeFi protocols. Keep in mind, the IRS has not passed any specific DeFi tax guidance to date. The below descriptions represent conservative tax treatment inferred from the current IRS crypto guidelines.
Uniswap is a decentralized exchange that allows users to trade/swap between cryptocurrencies as well as contribute crypto to liquidity pools to earn income.
- Swapping one cryptocurrency for another on Uniswap is a taxable event and triggers associated capital gains or losses
- When you contribute to a liquidity pool, You receive UNI tokens representing your share of the pool. This triggers a taxable event upon contributing to a liquidity pool and capital gains/losses apply (disposal of crypto into pool, receipt of UNI)
- UNI tokens increase in value as the pool accrues interest. When you divest from the liquidity pool, you give back the UNI tokens and realize any capital gains on those UNI tokens
Compound is a decentralized protocol that enables borrowing, lending, and the earning of interest.
- Exchanging tokens like ETH for cETH is a taxable trade (you dispose of your ETH when exchanging it for cETH)
- Your cTokens increase in value as you lend. You incur capital gains when you convert your cTokens back for the underlying asset.
- Any COMP earned is taxable income valued at the fair market value of COMP at the time of earning
Aave is a DeFi protocol that allows users to provide liquidity, earn interest, and borrow funds.
- You incur capital gains/losses on the crypto asset you exchange away when minting aTokens
- Interest received from lending accrues to you in the form of additional aTokens. This is taxable income at the fair market value of the aTokens at the time of receipt
Maker and their Oasis platform allow users to trade between assets as well as earn DAI either by locking ETH or other cryptocurrencies as collateral or via DAI savings.
- Trades are treated as normal cryptocurrency trades, capital gains and losses apply
- Earned DAI is subject to income taxes at the fair market value of DAI at the time of receipt
Similar to Uniswap, Balancer allows you to trade or swap cryptocurrencies as well as contribute to liquidity pools.
- Trades are treated as normal cryptocurrency trades and trigger capital gains or losses
- Income earned from liquidity pools is treated as capital gains because “Balancer Pool Tokens” increase in value as the pool earns. You incur capital gains when you trade your BPTs back to the underlying asset.
- The governance token BAL is distributed to liquidity providers and is subject to income tax at the fair market value of BAL at the time of receipt
Disclaimer - This post is for informational purposes only and should not be construed as tax or investment advice. Please speak to your own tax expert, CPA or tax attorney on how you should treat taxation of digital currencies.