Categorize and calculate crypto gas fee deductions by activity type. Determine whether gas fees add to basis, reduce proceeds, or are non-deductible expenses.
Gas fees (transaction fees) paid on blockchains like Ethereum represent a real cost of interacting with the network. The tax treatment of gas fees depends on the type of activity. Gas fees paid when buying crypto increase your cost basis. Gas fees paid when selling reduce your proceeds. Gas fees for other activities (transfers, approvals, failed transactions) have less clear treatment.
For active DeFi users, gas fees can add up to hundreds or thousands of dollars per year. Properly categorizing these fees by activity type ensures you claim every available deduction and maintain accurate cost basis records. Each category has different implications for your tax return.
This calculator helps you categorize gas fees by activity type and determine the proper tax treatment for each category. It estimates the total tax benefit from correctly accounting for gas fees. This tool is for educational purposes only and is not tax or financial advice.
Gas fees are an often-overlooked tax deduction opportunity. Properly categorizing them by activity type can reduce your capital gains and therefore your tax bill. This calculator helps you sort your gas spending and understand the deduction rules for each type. Real-time recalculation lets you model different market scenarios quickly, so you can act with confidence rather than relying on rough mental estimates.
Buy Gas Fees → Added to cost basis (reduces future capital gain) Sell Gas Fees → Subtracted from proceeds (reduces current capital gain) DeFi Gas Fees → May be added to cost basis of received tokens Transfer Gas Fees → Potentially non-deductible (no clear IRS guidance) Tax Benefit = (Sell Gas + Buy Gas) × Capital Gains Rate
Result: $150 estimated tax benefit from gas fee deductions
Buy gas ($500) increases cost basis; sell gas ($300) reduces proceeds. Both reduce capital gains. DeFi gas ($200) may also be deductible. Transfer gas ($150) has unclear treatment. Direct benefit = ($500 + $300 + $200) × 15% = $150.
The IRS hasn't provided explicit guidance on every type of gas fee. However, general tax principles allow transaction costs associated with acquiring or disposing of property to be factored into basis and proceeds. Always categorize gas fees by the underlying activity.
Accurately tracking and categorizing gas fees can save money on every crypto transaction. The effort is worthwhile if you're an active DeFi user who pays hundreds or thousands in gas per year. Even small per-transaction gas fees add up.
Maintain records that link each gas fee to a specific transaction. Blockchain explorers provide the exact gas fee for every transaction. Export this data or use tax software to automate the process.
Gas fees directly associated with buying or selling crypto are generally deductible as part of the transaction cost. Buy-side fees increase your cost basis; sell-side fees reduce your proceeds. Both reduce your capital gains.
When you pay gas to acquire crypto (buy, swap, claim rewards), the gas fee is added to the cost basis of the acquired tokens. This means you'll recognize a smaller capital gain when you eventually sell those tokens.
This is a gray area. Some tax professionals argue failed transaction gas fees are a capital loss (proceeds of $0, basis = gas fee). Others treat them as non-deductible personal expenses. Consult a tax professional.
Token approval transactions don't directly buy or sell an asset. Some argue the approval gas fee should be added to the basis of the subsequent trade. The IRS hasn't provided specific guidance on this.
Use crypto tax software that imports on-chain data to automatically track gas fees. Tools like Koinly, CoinTracker, and TokenTax can extract gas fees from your wallet addresses and categorize them.
Yes. Transaction fees on Layer 2 networks like Optimism, Arbitrum, and Base follow the same general tax treatment principles. The fee is categorized based on the activity type, just like Ethereum mainnet gas fees.