Cost Basis 101April 29, 2026

Ethereum Gas Fees and Your Tax Basis: Every Wei Counts

Ethereum gas fees are more than a nuisance — they can legally adjust what you owe in taxes. Here's how transaction costs fold into your cost basis.

Every time you interact with the Ethereum network, you pay gas. Sometimes a few cents, sometimes hundreds of dollars during peak congestion. Most traders track price and forget the fees — but that's a costly mistake at tax time. Gas fees are a direct input into your cost basis crypto calculations, and ignoring them means you're likely overpaying taxes on gains you never actually realised. This guide breaks down exactly how transaction costs interact with your tax basis, what official guidance says, and why every wei genuinely counts.

What Is Cost Basis, and Why Does It Matter?

Your cost basis is the amount you're treated as having paid for an asset — the starting line from which gains and losses are measured when you eventually sell or swap. Under IRC §1001, gain or loss on a disposition equals proceeds minus adjusted basis. Get the basis wrong and your reported gain is wrong — either too high (you overpay) or too low (you risk an audit).

Ethereum and other crypto assets are treated as property in most major jurisdictions. The IRS confirmed this in Notice 2014-21, and HMRC and the ATO have adopted substantially the same position. Property treatment means the general rules for basis — costs you incur to acquire an asset are added to it — apply directly.

How Gas Fees Affect Your Crypto Cost Basis

IRS Publication 551 (Basis of Assets) is the key document here. It states that the cost of an asset includes not just the purchase price but also all costs properly allocable to acquiring it — commissions, transfer taxes, and other transaction expenses. Gas fees are Ethereum's version of a brokerage commission or settlement fee. Under this framework, they fold into your basis.

The treatment differs slightly depending on what kind of transaction you're executing:

  • Buying ETH or a token: Gas paid to execute the purchase is added to your cost basis for that asset.
  • Selling or swapping: Gas paid to complete a disposal reduces your net proceeds, effectively increasing any loss or reducing any gain.
  • DeFi interactions (liquidity provision, staking, bridging): These are more nuanced — covered below.

A Simple Example

You buy 1 ETH for $2,000. The gas fee to confirm the transaction is $15. Your cost basis isn't $2,000 — it's $2,015. Later, you sell that ETH for $3,000 and pay $20 in gas. Your net proceeds are $2,980. Your taxable gain is $2,980 − $2,015 = $965, not the $1,000 a naive calculation would suggest. On a single trade, that's a $35 difference. Across hundreds of DeFi transactions, the gap can be substantial.

DeFi Gas Fees: Where It Gets Complicated

Simple buy/sell transactions are relatively clean. DeFi complicates the picture because gas is often paid to perform actions that don't directly acquire or dispose of a single identifiable asset:

  • Approving token contracts: You pay gas just to grant a protocol permission to move your tokens. This doesn't constitute a purchase or sale, so it's less clear how to assign it. Many tax professionals treat it as a miscellaneous investment expense — though under current US law, the deductibility of investment expenses for individuals is suspended through 2025 under the Tax Cuts and Jobs Act.
  • Adding or removing liquidity: Gas paid when depositing into a liquidity pool could be allocated to the cost basis of the LP tokens received. Gas paid on withdrawal is tied to the disposal.
  • Failed transactions: This is a particularly harsh scenario — the transaction fails, you receive nothing, but you've still paid gas. The IRS FAQ on virtual currency transactions doesn't address failed transactions directly, but many practitioners treat this as an investment loss or an expense with no associated asset acquisition.

In each case, the key question is whether the gas fee is properly allocable to acquiring or disposing of an asset, per Publication 551's framework. Where it is, it adjusts basis. Where it isn't, it may be a deductible expense (if deductibility applies in your jurisdiction) or simply a sunk cost.

What Tax Authorities Say: A Global View

The property-plus-transaction-costs framework is broadly consistent across major crypto jurisdictions:

United States: IRS Publication 551 and Publication 544 together establish that acquisition costs — including transaction fees — are part of basis, and that selling expenses reduce proceeds. Notice 2014-21 confirms crypto is property, so these rules apply.

United Kingdom: The HMRC Cryptoassets Manual explicitly states that transaction fees paid as part of buying or selling a crypto asset can be added to the acquisition cost or deducted from disposal proceeds respectively. HMRC also applies a pooling rule (Section 104 pool) that averages costs across all units of the same asset — gas fees paid on each transaction still feed into that pool calculation.

Australia: The ATO's crypto guidance treats acquisition costs — including fees paid to acquire the asset — as part of the cost base under the general capital gains tax framework. Similarly, disposal costs reduce your capital proceeds.

The common thread: fees directly related to acquiring or disposing of an asset affect basis or proceeds. The principle is jurisdiction-agnostic even if the precise mechanics differ.

Which Accounting Method You Use Changes Everything

Gas fee tracking doesn't exist in a vacuum — it intersects with how you're identifying which units of an asset you're selling. The three main methods used in crypto tax software are FIFO (first in, first out), LIFO (last in, first out), and HIFO (highest in, first out). Each produces a different cost basis for any given disposal:

  • FIFO: You sell your oldest tokens first. In a rising market, this often produces the highest gain (oldest = cheapest basis).
  • LIFO: You sell your most recently acquired tokens first. Currently not permitted under US GAAP for individuals, but the IRS has not explicitly prohibited crypto LIFO — though many practitioners are cautious.
  • HIFO: You sell the highest-basis tokens first, minimising gains. This requires specific identification — you must be able to identify and document which exact tokens you're disposing of at the time of sale.

Specific identification (the method underlying HIFO) gives you the most flexibility and typically the lowest tax bill, but it requires meticulous record-keeping. Every gas fee paid on every acquisition must be logged against the specific lot it relates to. This is exactly the kind of granular tracking that tax tools built for DeFi — tools that parse on-chain data and auto-assign fees to lots — handle far better than spreadsheets.

Note: there is currently no wash sale rule equivalent in crypto under US law (IRC §1091 applies to securities, not property). This means you can sell ETH at a loss, immediately rebuy, and still claim the loss — though this is an active area of legislative discussion. Check the latest guidance before relying on this strategy.

Practical Takeaways for Ethereum Traders

  1. Log every gas fee at the time of the transaction. The ETH value of gas fluctuates constantly. Reconstruct it later from block explorers if you must, but contemporaneous records are cleaner and more defensible.
  2. Classify gas by transaction type. Acquisition gas → add to cost basis. Disposal gas → reduce proceeds. Other gas (approvals, failed transactions) → document separately and consult a professional on treatment.
  3. Don't conflate gas with the asset being traded. Gas is paid in ETH. If you're buying a token and paying gas in ETH, you have two simultaneous events: an ETH disposal (spending ETH on gas) and a token acquisition. Both need basis tracking.
  4. Use software that handles this automatically. Tools like crypto tax platforms designed for DeFi parse your on-chain history and allocate gas fees to the correct lots — something that becomes nearly impossible to do manually once you're running dozens of transactions a month.

The Bottom Line

Gas fees are not just a cost of doing business on Ethereum — they're a legitimate tax input that, if properly tracked, reduces your taxable gains. Official guidance from the IRS, HMRC, and the ATO all support including transaction fees in your cost basis or deducting them from proceeds. The math isn't dramatic on any single trade, but across a year of active DeFi usage it adds up to real money. In a space where every basis point of return matters, every wei of gas fee deserves the same attention.

Sources

  1. https://www.irs.gov/pub/irs-drop/n-14-21.pdf
  2. https://www.irs.gov/publications/p551
  3. https://www.irs.gov/publications/p544
  4. https://www.irs.gov/individuals/international-taxpayers/frequently-asked-questions-on-virtual-currency-transactions
  5. https://www.law.cornell.edu/uscode/text/26/1001
  6. https://www.law.cornell.edu/uscode/text/26/1091
  7. https://www.gov.uk/hmrc-internal-manuals/cryptoassets-manual
  8. https://www.ato.gov.au/individuals-and-families/investments-and-assets/crypto-asset-investments

This article is for informational purposes only and does not constitute legal, tax, or financial advice. Defitax is not a law firm, CPA, or licensed tax advisor. Always consult a qualified tax professional before making decisions based on this content.

Related Articles