Crypto Gas Fee Deduction Calculator

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 Fee Categories

Added to cost basis
Reduces sale proceeds
Swaps, staking, LP entry/exit
Added to NFT cost basis
Cross-chain transfers
May be deductible as loss
Personal transfers โ€” may not be deductible

Tax Settings

%
Total Gas Spent
$1,415.00
All gas fees across every category this tax year
Deductible Gas
$1,265.00
89.40% of total โ€” reduces your taxable gains
Non-Deductible Gas
$150.00
Personal transfers generally cannot offset gains
Federal Tax Benefit
$189.75
Savings at 15% federal rate
State Tax Benefit
$63.25
Savings at 5% state rate
Total Tax Savings
$253.00
Combined 20.00% effective rate on deductible fees
Effective Gas Cost
$1,162.00
Total gas minus tax benefit โ€” your real out-of-pocket
Deductible Ratio
89.40%
Share of gas fees you can use to reduce taxable income

Gas Fee Breakdown

CategoryAmountDeductible?Tax TreatmentShare
Buy / Acquire$200.00YesAdded to cost basis
Sell / Trade$350.00YesReduces sale proceeds
DeFi (swaps, staking, LP)$500.00YesAdded to cost basis or deducted
NFT Mint / Purchase$75.00YesAdded to NFT cost basis
Bridge Fees$100.00YesPart of transfer cost basis
Failed Transactions$40.00YesPotentially deductible as loss
Wallet-to-Wallet Transfers$150.00NoPersonal use โ€” generally not deductible
Total$1,415.00

Deductible vs Non-Deductible

Deductible: $1,265.00 (89.40%)Non-Deductible: $150.00 (10.60%)
IRS Gas Fee Deduction Reference
ActivityDeductible?TreatmentIRS Guidance
Buying cryptoYesAdd to cost basisRev. Rul. 2019-24
Selling cryptoYesReduce proceedsRev. Rul. 2019-24
Token swaps (DeFi)YesCost basis adjustmentAnalogized to exchange fees
NFT mintingYesPart of acquisition costGeneral asset basis rules
Bridge / cross-chainLikelyAdded to basis if taxable eventNo specific guidance
Failed transactionsPossiblyInvestment lossSec. 165 casualty/theft rules
Personal transfersNoNon-deductible personal expenseSec. 262

Disclaimer: This calculator provides estimates only. Tax treatment of gas fees varies by jurisdiction and individual circumstances. Consult a qualified tax professional.

Planning notes, formulas, and examples

About the Crypto Gas Fee Deduction Calculator

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 calculator is for educational purposes only and is not tax or financial advice.

When This Page Helps

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.

How to Use the Inputs

  1. Enter gas fees paid for buying/acquiring crypto (adds to cost basis).
  2. Enter gas fees paid for selling/trading crypto (reduces proceeds).
  3. Enter gas fees paid for DeFi activities (claiming rewards, LP entry/exit).
  4. Enter gas fees for wallet transfers and other non-deductible activities.
  5. Enter your capital gains tax rate.
  6. Review the deductible amounts and estimated tax benefit.
Formula used
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

Example Calculation

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.

Tips & Best Practices

  • Track which transaction each gas fee is associated with for proper categorization.
  • Buy-side gas fees increase your cost basis โ€” reducing future gains.
  • Sell-side gas fees reduce your proceeds โ€” reducing current gains.
  • Failed transaction gas fees are a gray area โ€” some tax professionals consider them deductible.
  • Use gas fee tracking tools or blockchain explorers to aggregate your gas spending.
  • Approval transactions (token approvals) have no clear deduction path under current guidance.
  • Layer 2 fees (Optimism, Arbitrum) follow the same general principles as L1 gas.

Gas Fee Categories and Tax Treatment

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.

Maximizing Your Gas Fee Deductions

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.

Record-Keeping for Gas Fees

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.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • 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.