Defi Yield Tax Calculator
Calculate tax on DeFi yield farming, staking, and lending income by jurisdiction. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Defi Yield Tax Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Total Tax = (DeFi Income x Tax Bracket) + (Income x 0.9235 x 15.3% SE Tax) + (Income x State Rate)
Worked example โ Total Tax: $4,313 | Effective Rate: 43.1% | After-Tax: $5,687 | Quarterly: $1,078
Formula
Total Tax = (DeFi Income x Tax Bracket) + (Income x 0.9235 x 15.3% SE Tax) + (Income x State Rate)
Where DeFi Income includes yield farming, staking, and lending rewards taxed as ordinary income. Self-employment tax of 15.3% applies in the US if activity constitutes a trade or business. The 0.9235 multiplier accounts for the deductible portion of SE tax. State tax rates vary by jurisdiction.
Worked Examples
Example 1: US DeFi Investor Tax Estimate
Problem:A US-based DeFi investor earns $5,000 from yield farming, $3,000 from staking, and $2,000 from lending. They are in the 24% federal tax bracket with 5% state tax. Calculate total tax liability.
Solution:Total DeFi income = $5,000 + $3,000 + $2,000 = $10,000 Federal income tax = $10,000 x 0.24 = $2,400 Self-employment tax = $10,000 x 0.9235 x 0.153 = $1,413 State tax = $10,000 x 0.05 = $500 Total tax = $2,400 + $1,413 + $500 = $4,313 Effective rate = 43.1% After-tax income = $10,000 - $4,313 = $5,687
Result:Total Tax: $4,313 | Effective Rate: 43.1% | After-Tax: $5,687 | Quarterly: $1,078
Example 2: Germany vs US Tax Comparison
Problem:Compare tax on $8,000 of staking income for a US investor (24% bracket, 5% state) versus a German investor (42% bracket, assets held under 1 year).
Solution:US calculation: Federal tax = $8,000 x 0.24 = $1,920 Self-employment = $8,000 x 0.9235 x 0.153 = $1,130 State = $8,000 x 0.05 = $400 US total = $3,450 (43.1% effective) Germany calculation: Income tax = $8,000 x 0.42 = $3,360 Solidarity surcharge = $3,360 x 0.055 = $184.80 Germany total = $3,544.80 (44.3% effective)
Result:US Tax: $3,450 (43.1%) | Germany Tax: $3,545 (44.3%) | US saves $95 on $8,000 income
Frequently Asked Questions
How is DeFi yield farming income taxed in the United States?
In the United States, DeFi yield farming income is treated as ordinary income by the IRS and taxed at your marginal income tax rate when received. This means that every time you harvest yield farming rewards, receive liquidity provider fees, or claim token rewards, you create a taxable event. The fair market value of the tokens at the time of receipt determines the income amount. Additionally, if you later sell those reward tokens for a higher price, you owe capital gains tax on the appreciation. DeFi yield farming income may also be subject to self-employment tax of 15.3% if it constitutes a trade or business. Many tax professionals recommend treating all DeFi income as self-employment income to be conservative.
Are staking rewards taxed when received or when sold?
The IRS has clarified through Revenue Ruling 2023-14 that crypto staking rewards are taxable as ordinary income when the taxpayer gains dominion and control over the tokens, meaning when they are received and available to dispose of. This applies whether you are staking directly on a proof-of-stake network, through a centralized exchange, or in a DeFi protocol. The taxable amount is the fair market value of the tokens at the moment of receipt. If you subsequently sell the staking rewards at a different price, you also owe capital gains or can claim a capital loss on the price difference between receipt and sale. In the UK, staking rewards are similarly taxed as miscellaneous income when received, with capital gains applying on subsequent disposal.
Does lending crypto create a taxable event?
Depositing crypto into a lending protocol like Aave or Compound does not typically create a taxable event itself, as it is considered a deposit rather than a sale. However, the interest earned from lending is taxed as ordinary income when received, similar to traditional interest income from a bank savings account. The value of the interest tokens at the time of receipt determines the taxable amount. If you receive interest in a different token than you deposited (such as receiving COMP tokens as incentive rewards), each receipt is a separate taxable event at fair market value. Withdrawing your original deposit from a lending protocol is also generally not a taxable event, provided you receive the same type and amount of crypto you deposited.
How do impermanent loss and liquidity pool exits affect taxes?
Impermanent loss in DeFi liquidity pools creates a complex tax situation. When you provide liquidity to an AMM like Uniswap, you deposit two tokens and receive LP tokens in return. The initial deposit may or may not be taxable depending on whether the LP token is treated as a new asset (taxable exchange) or a receipt (non-taxable). When you withdraw from the pool, you often receive different proportions of the original tokens, and this rebalancing may trigger capital gains or losses. The impermanent loss itself is only realized when you exit the pool. Many tax advisors recommend tracking the cost basis of LP tokens carefully and using specialized crypto tax software that can handle AMM transactions. The tax treatment of LP positions remains an area of significant ambiguity in most jurisdictions.
What records do I need to keep for DeFi tax reporting?
Proper record-keeping for DeFi taxes requires documenting every transaction across all protocols you use. Essential records include the date and time of each transaction, the type and amount of tokens received or sent, the fair market value in your local currency at the time of each transaction, the blockchain transaction hash for verification, and the specific protocol and chain used. For yield farming and staking, record each harvest or claim event separately. For lending, track interest accrual and receipt dates. Tools like Koinly, CoinTracker, TokenTax, and ZenLedger can automatically import DeFi transactions from blockchain data. However, many DeFi protocols interact across multiple chains, requiring manual reconciliation. Maintaining a spreadsheet as a backup record is recommended in case automated tools miss transactions.
How does self-employment tax apply to DeFi income?
In the United States, if DeFi activity constitutes a trade or business rather than passive investment, the income may be subject to self-employment tax of 15.3% (12.4% Social Security up to the wage base of $168,600 in 2024, plus 2.9% Medicare with no limit). The IRS has not provided specific guidance on when DeFi activity crosses the line from investing to self-employment, but factors include frequency of transactions, time spent managing positions, reliance on the income as a primary source of earnings, and the level of sophistication involved. Active yield farming across multiple protocols with daily management likely qualifies as a trade or business. Casual staking of a single asset likely does not. The self-employment tax applies on top of regular income tax, significantly increasing the total tax burden.
Are there any tax-advantaged strategies for DeFi investors?
Several legitimate strategies can reduce the tax burden on DeFi income. Tax-loss harvesting involves selling crypto assets at a loss to offset gains from DeFi activities. Unlike stocks, crypto is not subject to wash sale rules in most jurisdictions (though proposed US legislation may change this). Holding reward tokens for over one year before selling converts the subsequent gain from ordinary income rates to long-term capital gains rates (0%, 15%, or 20% in the US). Contributing to a self-directed IRA or solo 401(k) that allows crypto investments can defer or eliminate taxes entirely. Timing harvests and claims strategically around year-end can shift income between tax years. Charitable donations of appreciated crypto to qualified organizations allow deduction of fair market value without paying capital gains tax. Always consult a crypto-experienced tax professional before implementing these strategies.
How does Germany treat DeFi income differently from the US?
Germany has notably different crypto tax rules compared to the United States. Germany treats crypto as private assets rather than financial instruments, which means capital gains from selling crypto held for more than one year are completely tax-free. This is a significant advantage for long-term holders. However, staking and lending income reduces the tax-free holding period to 10 years instead of 1 year under recent legislative clarification. Short-term capital gains (under one year) are taxed at 26.375% (25% plus solidarity surcharge). There is also a de minimis exemption of 600 EUR per year on short-term gains. DeFi yield farming income is generally treated as other income and taxed at the individual's marginal rate. Germany's favorable long-term holding rules have made it an attractive jurisdiction for crypto investors willing to adopt a buy-and-hold strategy.
What penalties exist for not reporting DeFi income?
Failure to report DeFi income can result in severe penalties across jurisdictions. In the United States, the IRS imposes a failure-to-file penalty of 5% per month (up to 25%), a failure-to-pay penalty of 0.5% per month, plus interest on unpaid taxes. For substantial understatement of income (generally more than 25% of reported income), an additional 20% accuracy-related penalty applies. In cases of willful tax evasion involving crypto, criminal penalties can include fines up to $250,000 and imprisonment up to 5 years. The IRS has been increasing enforcement in crypto through John Doe summonses to exchanges and blockchain analysis tools that can trace DeFi transactions. The UK HMRC and German tax authorities have similarly increased crypto enforcement. Voluntary disclosure programs may reduce penalties for those who come forward before an audit begins.
How do airdrops and governance token rewards affect my DeFi taxes?
Airdrops and governance token rewards received through DeFi protocol participation are generally taxed as ordinary income at fair market value when received. For example, if you received UNI tokens in the Uniswap airdrop, the value at the time of claim was taxable income. Similarly, governance tokens earned through protocol participation, voting incentives, or retroactive distributions create immediate tax liability. The cost basis for these tokens is established at the fair market value on the date of receipt, which means if you sell them later for a higher price, you owe additional capital gains tax on the appreciation. If the tokens have no established market value when received (such as tokens from a brand-new protocol), determining fair market value becomes challenging and may require professional valuation. Some taxpayers have argued that unsolicited airdrops should not be taxable until sold, but the IRS has not endorsed this position.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎCrypto Portfolio Allocation Calculator
Build a crypto portfolio allocation from risk tolerance, market cap tiers, and sector exposure.
๐งฎStaking Compound Calculator
Calculate staking rewards with auto-compounding vs manual claiming at different frequencies.
๐งฎCrypto Grid Bot Calculator
Calculate grid bot parameters including grid levels, investment per grid, and expected returns.
๐งฎCrypto Rebalancing Calculator
Calculate buy/sell amounts to rebalance a crypto portfolio to target allocations.
๐งฎCrypto Tax Lot Calculator
Calculate capital gains using FIFO, LIFO, HIFO, and specific identification for crypto trades.
๐งฎCrypto Airdrop Tax Calculator
Calculate tax liability on crypto airdrops based on fair market value at time of receipt.
๐งฎLending APY Calculator
Compare crypto lending rates across Aave, Compound, and MakerDAO by token and duration.
๐งฎAsic Mining ROI Calculator
Calculate ASIC miner return on investment from hash rate, power, electricity cost, and BTC price.