Crypto Cost Basis FIFO Calculator
Consume the oldest available digital-asset units, allocate partial-lot basis and cash selling fees, and separate the resulting gain or loss by federal holding period.
Load one wallet’s lot queue
Do not combine lots held in another wallet or account. The label stays in your browser and is used only in the result note.
Record the disposition
A fee paid in crypto is a separate disposition and is not modeled as a cash fee here.
Estimated FIFO capital gain
The oldest 1.5 units in Exchange account A are consumed. This is a gain calculation, not a tax-liability estimate.
Lot-consumption ledger
What this crypto cost basis FIFO calculator does
This calculator matches one digital-asset disposition against the oldest available units in one wallet or account. It orders as many as four lots by their original acquisition date, consumes whole or partial lots until the disposition quantity is filled, and assigns a proportional share of each consumed lot’s total basis. It then subtracts cash selling fees from gross proceeds and separates the resulting gain or loss into short-term and long-term amounts.
The main result is a federal capital gain or loss estimate, not a tax estimate. A $10,000 long-term gain and a $10,000 short-term gain can produce different federal tax consequences because they flow through different rate structures. Capital losses can be limited, carried forward or netted against other transactions. State treatment can differ. The calculator intentionally stops before applying tax rates so its basis work remains visible and auditable.
How the four-lot FIFO queue works
FIFO means first in, first out. The queue sorts positive-unit lots by acquisition date, not by the row number you entered and not by the date assets were transferred into the current wallet. The earliest lot is consumed first. If it contains fewer units than the sale needs, the calculator consumes that lot completely and moves to the next date. If the final required lot contains more units than needed, only a fraction is consumed and the rest remains in inventory.
Each lot input asks for total units and total adjusted basis. When a partial lot is used, its basis is allocated proportionally. For example, using 0.25 unit from a 1-unit lot with $40,000 total basis consumes $10,000 of basis. This assumes the units within that entered lot share one basis-per-unit figure. If an exchange batch contains units with different acquisition dates or costs, split them into separate rows before calculating.
basis used = lot total basis × units used ÷ lot total units. Gain or loss for that piece = allocated net proceeds − basis used.
The calculator allocates net proceeds evenly per unit across the lots filled by one disposition. That is appropriate for a single sale of fungible units at one blended execution value. If an order filled at materially different prices and your records report separate dispositions, calculate those fills separately so the proceeds and timestamps stay aligned with the broker records.
Amount realized, transaction fees and adjusted basis
Gross cash proceeds are reduced by the cash fees directly connected with the disposition. The result is amount realized. The calculator allocates that net amount across the units disposed. A fee paid with the digital asset itself is different: transferring crypto to pay a fee can be a separate disposition of that fee asset. Entering its dollar value as a cash fee would omit the separate quantity and basis event, so this calculator expressly does not model it.
Acquisition basis generally starts with the cost paid in U.S. dollars, including qualifying transaction costs allocable to the purchase. Basis can also come from a prior taxable receipt, gift, inheritance, mining, staking, compensation or another transaction, each with its own rules. A transfer between wallets you own is not normally a sale, so it does not reset acquisition date or basis. Enter the carried original date and adjusted basis, not the later transfer-in date.
Broker information can be incomplete, particularly for transferred-in assets. Form 1099-DA reporting does not guarantee that every basis figure is correct or that a broker knows the history from another wallet. Reconcile exchange exports, purchase confirmations, on-chain transfer records and prior returns. The taxpayer remains responsible for reporting the correct basis even when an information return omits it.
Wallet-specific FIFO and specific identification
For dispositions after December 31, 2025, the IRS digital-asset FAQs describe adequate identification for units held in the custody of a broker. Identification must be communicated no later than the disposition date and time using the broker’s designated identifiers, and the taxpayer must retain confirmation. If adequate identification is not made, the disposed units are identified under FIFO within that wallet or account: the earliest acquired units are treated as sold first, regardless of when they arrived by transfer.
This is why the calculator asks for an account label and refuses to imply universal FIFO. It does not search another wallet for older units. Moving an old unit into an account can place it ahead of locally purchased newer units because original acquisition date controls the queue. At the same time, the basis record must travel with that transfer. A universal spreadsheet that sorts every coin owned everywhere may generate a different answer from the wallet-by-wallet default and should not be substituted without reviewing the current rules.
Specific identification is a different method, not an after-the-fact choice triggered by a favorable price. When the required timely communication and records exist, selected units may replace FIFO. This calculator is for the default FIFO result. If you validly identified specific units, use a lot-specific calculation reflecting the broker confirmation instead.
Short-term and long-term holding period split
A capital asset generally produces long-term gain or loss only when it is held for more than one year. The holding period starts the day after acquisition. A disposition exactly on the one-year anniversary is generally not more than one year; a disposition after that anniversary is long term. The calculator compares each consumed lot separately, so one sale can have both short-term and long-term components.
The split cards show gain or loss, not proceeds. For each consumed piece, net proceeds are allocated by units and reduced by the basis used. The long-term card adds only pieces whose disposition date is later than their one-year anniversary. All other valid pieces enter the short-term card. Edge cases involving inherited property, gifts, certain exchanges or tacked holding periods need manual treatment because their holding period may not follow the simple purchase-date rule.
| Queue fact | Calculator action | Reporting effect |
|---|---|---|
| Oldest lot covers the full sale | Consume only that lot, proportionally if partial | One holding-period category may result |
| Sale crosses multiple acquisition dates | Consume each lot in date order | Separate Form 8949 rows may be needed |
| Acquisition date is after sale date | Reject the input | Prevents an impossible holding period |
| Units sold exceed wallet inventory | Reject the input | Signals missing lots or the wrong account scope |
Worked FIFO example shown in the calculator
The opening example loads one unit acquired February 1, 2023 with $20,000 basis and one unit acquired August 15, 2026 with $40,000 basis. A September 1, 2026 sale disposes of 1.5 units for $75,000 and pays a $500 cash fee. Amount realized is $74,500, or $49,666.67 per disposed unit.
FIFO consumes the entire 2023 lot and half of the 2025 lot. Basis used is $20,000 from the first lot plus $20,000 from half of the second, totaling $40,000. Total gain is therefore $34,500. The older unit contributes approximately $29,666.67 of long-term gain. The half-unit from the later lot receives $24,833.33 of net proceeds and $20,000 of basis, producing approximately $4,833.33 of short-term gain. Half a unit remains in the account with the unconsumed half of the second lot’s basis.
Rounding in the displayed cards is for readability. The internal calculation retains decimal precision before formatting. Tax software may round each Form 8949 line to whole dollars, so the final return can differ by a few dollars from a combined calculation.
From the ledger to Form 8949 and Schedule D
A taxable sale, exchange, spending transaction or other disposition can require Form 8949 detail and Schedule D summary. Each line generally needs a description, acquisition date, disposition date, proceeds, basis and adjustment information. Because one FIFO disposition may consume several acquisition lots, it can require several reporting lines even when the exchange shows one order. The consumption ledger identifies the dates, quantities and allocated basis pieces that support those lines.
Digital assets received for services, mining, staking or certain rewards can create ordinary income when received and later capital gain or loss when disposed. This calculator calculates only the later disposition from the basis you supply. It does not decide the earlier income amount, self-employment status, backup withholding or information-return treatment. Likewise, it does not calculate wash-sale treatment, hard forks, charitable gifts, worthless assets, casualty losses or nonrecognition exchanges.
Keep the FIFO ledger separate because a general tax estimator cannot reconstruct missing wallet-level lots.
Records to retain for a defensible cost basis
- Broker confirmations and exports showing transaction time, asset, units, price, fees and the account where the units were held.
- Original acquisition records for every transfer-in, including transaction hashes that connect sending and receiving wallets.
- Documents supporting nonpurchase basis, such as fair market value reported as compensation, donor basis information or estate valuation.
- Any timely specific-identification instruction and broker confirmation; without adequate records, the default method may apply.
- Prior Form 8949 and Schedule D filings, loss carryforwards and adjustments that changed remaining basis.
- A reconciliation between remaining units in the calculator and actual wallet inventory immediately after the disposition.
Do not discard old lot records merely because the asset was moved. A self-transfer can preserve a much earlier acquisition date and a very different basis. The current account’s visible arrival date is not enough to establish either fact.
Frequently asked questions
Is crypto FIFO universal across all my wallets?
No. Under the current federal digital-asset identification framework, default FIFO is applied within the wallet or account containing the disposed units. This calculator therefore accepts one account inventory at a time. Combining every wallet can consume lots that were not available in the disposing account.
Does transferring crypto to another wallet reset its acquisition date?
A transfer between wallets you own is generally not a taxable disposition and does not ordinarily reset basis or acquisition date. Carry the original information into the destination wallet’s records. Network fees paid in crypto can create a separate issue and are outside this simple transfer statement.
Can I use HIFO or choose a high-basis lot after the sale?
Only a valid identification method supported by timely communication and records can displace default FIFO. Choosing a favorable lot after seeing the result is not adequate identification. Review the broker’s process and preserve its confirmation no later than the required disposition time.
Why are cash fees subtracted from proceeds?
Cash transaction costs directly connected with disposing of the units reduce amount realized in this estimate. A fee paid in digital assets can itself dispose of additional units, so it should not be entered as though it were merely a cash reduction.
Does this calculator determine the tax I owe?
No. It estimates capital gain or loss and its holding-period split. Federal tax depends on other gains and losses, taxable income, filing status, capital-loss limits, net investment income tax and other return facts. State taxation can also differ.
References
- IRS Frequently Asked Questions on Digital Asset Transactions — basis, transaction costs, specific identification and wallet/account FIFO guidance.
- IRS Digital Assets — taxable transaction overview and reporting responsibilities.
- IRS FAQs About Broker Reporting — Form 1099-DA and basis-reporting context.
- IRS Revenue Procedure 2024-28 — transition guidance for allocating previously unattached digital-asset basis.
- IRS About Form 8949 — official form and instructions access for capital-asset dispositions.
This educational calculator does not provide tax, legal or accounting advice. Confirm final transactions against current IRS forms and instructions and consult a qualified professional for transferred, inherited, gifted or high-volume inventories.