What Is HIFO?
HIFO stands for Highest-In-First-Out. When a disposal event occurs, Cryptoworth matches the sale against eligible acquisition lots ordered by unit cost, highest first.
The key principle: a higher cost basis reduces taxable gain on profitable disposals. Unlike FIFO, HIFO ignores acquisition date when selecting lots. It always picks the most expensive lot available at the time of sale.
|
Why HIFO Matters for Tax Optimization
When you hold multiple purchase lots at different prices, your accounting method determines which lot is 'used' first on a sale. HIFO is typically the most tax-efficient choice because:
It matches the highest-cost lot first, minimizing taxable gain immediately.
It is more flexible than FIFO — it selects by price, not by age.
It outperforms LIFO when the highest purchase price is not necessarily the most recent one.
It reduces overall capital gains across multiple sales, not just the first.
HIFO is especially powerful when your portfolio contains a mix of low-cost early purchases and higher-cost later purchases. By consuming the expensive lots first, you preserve your cheap lots — and the gains attached to them — for as long as possible.
Cost Basis Methods Compared
The three most common methods differ in which purchase lot they assign to a sale first:
Method | Selection Rule | Best When |
FIFO | Oldest lot first | Prices have fallen since purchase |
LIFO | Most recent lot first | Most recent purchases are highest cost |
HIFO | Highest-cost lot first | You want to minimize gain regardless of timing |
How Cryptoworth Applies HIFO
Cryptoworth automatically applies HIFO lot matching when you select it as your cost basis method. The engine follows these rules:
Only lots acquired before the sale date are eligible.
Each asset is matched separately — ETH sales only consume ETH lots.
Lots can be fully or partially consumed.
Once a lot is consumed, its remaining quantity is reduced for future sales.
If two lots share the same unit cost, the engine falls back to ledger order (chronological for live transactions, cached lot ID order for imported data).
Cryptoworth automatically logs everything the IRS requires to support a HIFO election: the date, time, and fair market value of each acquisition; the date, time, and fair market value of each disposal; and the proceeds received. No manual spreadsheets needed. |
Step-by-Step Example: Bob's ETH
The following walkthrough shows exactly how Cryptoworth calculates HIFO gains. Bob buys and sells Ethereum over several months.
1. Purchase Lots
Date | Price per ETH | Quantity | Total Cost |
2024-01-10 | $100 | 10 ETH | $1,000 |
2024-02-15 | $200 | 5 ETH | $1,000 |
2024-03-20 | $150 | 8 ETH | $1,200 |
2024-04-25 | $300 | 4 ETH | $1,200 |
2024-05-30 | $250 | 6 ETH | $1,500 |
2. Sales
Date | Sale Price per ETH | Quantity Sold |
2024-06-10 | $400 | 12 ETH |
2024-07-20 | $350 | 10 ETH |
3. First Sale 2024-06-10 (12 ETH at $400)
All five lots were acquired before the sale date and are eligible. Cryptoworth sorts them by unit cost, highest first:
Priority | Lot Date | Unit Cost | Available Qty |
1 | 2024-04-25 | $300 | 4 ETH |
2 | 2024-05-30 | $250 | 6 ETH |
3 | 2024-02-15 | $200 | 5 ETH |
4 | 2024-03-20 | $150 | 8 ETH |
5 | 2024-01-10 | $100 | 10 ETH |
The engine fills the 12 ETH sold by consuming lots top-down:
Matched Lot | Qty Used | Sale Proceeds | Cost Basis | Gain |
2024-04-25 @ $300 | 4 ETH | $1,600 | $1,200 | $400 |
2024-05-30 @ $250 | 6 ETH | $2,400 | $1,500 | $900 |
2024-02-15 @ $200 | 2 ETH | $800 | $400 | $400 |
Total | 12 ETH | $4,800 | $3,100 | $1,700 |
The $300 and $250 lots are fully consumed. Only 2 of 5 ETH from the $200 lot are used, leaving 3 ETH at $200 for future sales. |
Inventory After First Sale
Lot Date | Unit Cost | Original Qty | Sold Qty | Remaining Qty |
2024-04-25 | $300 | 4 ETH | 4 ETH | 0 ETH |
2024-05-30 | $250 | 6 ETH | 6 ETH | 0 ETH |
2024-02-15 | $200 | 5 ETH | 2 ETH | 3 ETH |
2024-03-20 | $150 | 8 ETH | 0 ETH | 8 ETH |
2024-01-10 | $100 | 10 ETH | 0 ETH | 10 ETH |
4. Second Sale — 2024-07-20 (10 ETH at $350)
No new purchases between sales. Three lots remain:
Priority | Lot Date | Unit Cost | Remaining Qty |
1 | 2024-02-15 | $200 | 3 ETH |
2 | 2024-03-20 | $150 | 8 ETH |
3 | 2024-01-10 | $100 | 10 ETH |
Matched Lot | Qty Used | Sale Proceeds | Cost Basis | Gain |
2024-02-15 @ $200 | 3 ETH | $1,050 | $600 | $450 |
2024-03-20 @ $150 | 7 ETH | $2,450 | $1,050 | $1,400 |
Total | 10 ETH | $3,500 | $1,650 | $1,850 |
Final Inventory After Both Sales
Lot Date | Unit Cost | Remaining Qty |
2024-03-20 | $150 | 1 ETH |
2024-01-10 | $100 | 10 ETH |
HIFO Result Summary
Sale Date | Qty Sold | Sale Proceeds | HIFO Cost Basis | Taxable Gain |
2024-06-10 | 12 ETH | $4,800 | $3,100 | $1,700 |
2024-07-20 | 10 ETH | $3,500 | $1,650 | $1,850 |
Total | 22 ETH | $8,300 | $4,750 | $3,550 |
HIFO vs FIFO — Side-by-Side Comparison
Under FIFO, the oldest lots are consumed first, resulting in a significantly higher taxable gain for the same trades.
1. FIFO First Sale (12 ETH at $400)
FIFO Lot | Qty Used | Cost Basis |
2024-01-10 @ $100 | 10 ETH | $1,000 |
2024-02-15 @ $200 | 2 ETH | $400 |
Total | 12 ETH | $1,400 |
Sale proceeds $4,800 minus cost basis $1,400 = FIFO gain of $3,400.
2. FIFO Second Sale (10 ETH at $350)
FIFO Lot | Qty Used | Cost Basis |
2024-02-15 @ $200 | 3 ETH | $600 |
2024-03-20 @ $150 | 7 ETH | $1,050 |
Total | 10 ETH | $1,650 |
Sale proceeds $3,500 minus cost basis $1,650 = FIFO gain of $1,850.
3. Method Comparison
Method | Total Proceeds | Total Cost Basis | Total Taxable Gain |
HIFO | $8,300 | $4,750 | $3,550 |
FIFO | $8,300 | $3,050 | $5,250 |
In this example, HIFO reduces taxable gain by $1,700 compared with FIFO ($5,250 FIFO gain minus $3,550 HIFO gain). The sale proceeds are identical — only the lot-matching method changes the tax outcome. |
Advantages and Limitations of HIFO
Advantages
Directly reduces taxable gain: because the highest-cost lot is always consumed first, your gain on each disposal is as small as it can be under the available inventory.
Method-agnostic timing: unlike FIFO, HIFO is not penalised by old low-cost lots sitting at the front of the queue. It finds the best lot regardless of when it was acquired.
Compounds across multiple sales: each disposal removes an expensive lot from inventory, which in turn improves the cost basis profile for future disposals.
Produces a $1,700 lower total gain than FIFO in the Bob/ETH example above — and the gap widens with larger, more varied portfolios.
Limitations
Record-keeping is non-negotiable. Without accurate per-lot acquisition data — date, time, fair market value — a HIFO election cannot be supported and the IRS defaults to FIFO.
Tie-breaking is implicit. When two lots share the same unit cost, Cryptoworth resolves the tie by ledger order. This is consistent but means the outcome depends on how transactions were loaded.
Capital losses have a cap. If HIFO produces a net capital loss, only $3,000 per year can offset ordinary income; the remainder carries forward.
Cryptoworth automates all IRS-required record-keeping, eliminating the manual documentation burden and ensuring your HIFO elections remain fully compliant. |
Important Disclaimer
This document is provided for informational purposes only and does not constitute tax, accounting, or financial advice. Consult a qualified tax professional before making any decisions based on this material. Cryptoworth disclaims any liability arising from the use of this document.