Are gas fees deductible when you buy or sell crypto?
The short answer is: no, gas fees paid to execute a crypto transaction are generally not directly deductible as a separate expense. Instead, they are treated as part of the cost basis of the asset you acquire or as an adjustment to the proceeds when you sell. This means gas fees affect your capital gain or loss calculation but are not a standalone deduction like a business expense.
How gas fees factor into your tax calculation
When you pay a gas fee to buy crypto, that fee adds to your total cost for the asset. For example, if you spend $100 on Ether plus a $5 gas fee, your cost basis for that Ether becomes $105. When you later sell, your gain or loss is computed using that $105 basis.
Similarly, when you sell crypto and pay a gas fee to execute the trade, the fee reduces your net proceeds. If you sell $200 worth of tokens but pay $4 in gas, your proceeds for tax purposes are $196. The gas fee effectively lowers your realized gain or increases your realized loss.
The key principle: gas fees are transaction costs, not separate deductible items. They get absorbed into the cost basis or proceeds of the trade itself.
When gas fees might be treated differently
Gas fees for transfers between your own wallets
If you move crypto from one wallet you control to another, the gas fee is not a deductible expense. It does not adjust your cost basis or create a taxable event. The IRS views transfers between your own accounts as non-taxable events, and the gas fee is simply a cost of moving your property, not a trade or sale.
Gas fees in defi transactions
Complex DeFi actions - like swapping tokens, providing liquidity, or interacting with smart contracts - often involve multiple gas fees. Each fee generally adjusts the cost basis of the asset you receive or the proceeds of the asset you give up. The IRS has not issued specific guidance on every DeFi scenario, but the prevailing interpretation is that gas fees are transaction costs, not separate deductions.
Gas Fees for Staking or Yield Farming
If you pay gas to stake tokens or enter a yield farming contract, that gas fee is not deductible as an expense. It may become part of your cost basis for the staked asset, but staking rewards themselves are taxed as income when received. The gas fee does not reduce that income directly.
Common mistakes to avoid
- Treating gas fees as a separate deduction on Schedule A or C. Unless you are a professional trader or miner with a properly established business, gas fees are not itemized or business deductions.
- Ignoring gas fees entirely. Failing to include gas fees in your cost basis or proceeds can lead to overstating gains or understating losses.
- Double-counting gas fees. Do not deduct them as a transaction cost and also include them in your cost basis. Pick one method and apply it consistently.
- Assuming all gas fees are the same. Fees vary by network and time. You must track the actual fee in USD at the time of the transaction.
How to Record Gas Fees for Tax Purposes
- Log every transaction with its gas fee. Use a spreadsheet or tax software that captures the network fee in USD at the time of the trade.
- Add the gas fee to your cost basis when buying. For each purchase, your cost basis equals the amount paid for the crypto plus the gas fee.
- Subtract the gas fee from proceeds when selling. For each sale, your proceeds equal the amount received minus the gas fee.
- Do not adjust cost basis or proceeds for transfers. Simply note the transfer as a non-taxable event, and do not alter your basis.
- Keep records of the gas fee in USD. Exchange APIs and blockchain explorers often show the fee in the native token (e.g., ETH). You need the USD equivalent at the time of the transaction.
What About Gas Fees in a Business or Mining Context?
If you are a professional trader (meeting IRS criteria for trader tax status) or run a crypto mining operation as a business, gas fees might be deductible as ordinary business expenses. This is a narrow exception. Most individual investors do not qualify. If you think you might, consult a CPA familiar with crypto tax rules.
The Bottom Line
For most people, gas fees are not a separate deduction. They simply adjust your cost basis or proceeds on the trade. The IRS views them as part of the transaction cost, not a standalone expense. Track them carefully, include them in your gain/loss calculations, and do not expect to claim them as a separate write-off. If you are unsure about your specific situation, especially if you are a frequent DeFi user or a professional trader, ask a tax professional who understands crypto.
Not financial advice. babybuilder.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.