Crypto Cost Basis Calculator

LIFO and weighted-average cost basis for your Coinbase transaction history

Crypto Cost Basis Calculator
LIFO and weighted-average cost basis from your Coinbase transaction history

How to export from Coinbase:

  1. Go to Coinbase → Manage account → Statements
  2. Transactions → Generate custom statement
  3. Select date range and download CSV

Your CSV stays in this browser. Nothing is uploaded or stored on a server.

LIFO vs WAC: which method applies in Italy?

The right method depends on the Italian tax regime that applies to you. This calculator lets you switch between both without re-uploading the CSV.

MethodRegimeTypical situationHow it works
LIFORegime dichiarativo
self-declared foreign holdings
Crypto held on a foreign exchange or in self-custody, with gains declared by you.Last in, first out. The newest units are treated as sold first, so each disposal has its own cost basis and the remaining position keeps older lots.
WACRegime amministrato
Italian intermediary
Crypto held through an Italian intermediary or Italian branch, which applies the tax treatment.Weighted average cost. One average cost pool per asset; each disposal consumes the pool at that average.

Informational only. Regime classification is fact-specific. Verify the applicable method with a qualified Italian tax advisor or commercialista before filing.

Transfers between your own wallets are not taxable

A Send from Coinbase to another wallet you own is a transfer, not a sale. The Realized disposals report therefore labels it Transfer and shows the cost carried over separately from taxable gains. That carried-over figure is the cost basis to give to your Italian intermediary when the assets enter an amministrato account.

The CSV records the EUR market value of the transfer, but market value is not proceeds for tax purposes when the transfer is non-taxable. The useful number is the cost basis of the exact units debited, which the LIFO lot stack calculates for you.

Estimated Italian tax and ravvedimento operoso

When LIFO is selected, the calculator also estimates the Italian substitute tax on the taxable disposals in your CSV. Gains and losses are netted per calendar year, unused losses can offset the next four tax years, and the €2,000 annual exemption applies to tax years 2023 and 2024 only. The standard rate is 26% through 2025 and 33% from 2026.

The estimate is framed as a voluntary correction: it adds a graduated 12%–24% reduced penalty (1/10 to 1/5 of the 120% omitted-return penalty, by days late) and legal interest running from 30 June of the year after each tax year. It assumes no other crypto gains, losses, or tax filings, and it does not include the 0.2% IVCA, the RW monitoring section, fixed minimum penalties, or the old pre-2023 foreign-currency threshold. It is an information estimate, not tax advice; confirm the applicable treatment with a commercialista before filing.

How to use this Coinbase cost basis calculator

Export your transaction history from Coinbase as a CSV file and upload it here. The calculator processes Buy, Sell, Convert, Send, Receive, and Card Spend rows. It keeps the CSV in your browser, computes the selected method, and shows both the remaining position and every realized disposal.

  • LIFO is selected by default. It tracks individual lots newest-first.
  • WAC reproduces the weighted-average calculation used by Italian intermediaries.
  • Use the year-end position or a disposal's View position before button to see the position before a transfer.

Remaining cost vs lifetime invested

Remaining cost is the EUR cost of the units you still hold. Lifetime invested is the EUR cost of every unit ever acquired, including Coinbase Earn and conversion inflows. The old ambiguous “Total Paid” column is gone: the two numbers are now separate.

Frequently asked questions

Why does the LIFO result need my complete history?

LIFO matches the newest acquisitions to each disposal. If the CSV starts after some units were acquired, the calculator warns you that the cost basis is incomplete. Add an earlier export or enter the missing cost.

How are conversions handled?

A conversion is treated as a disposal of the source asset and an acquisition of the target asset. The target asset enters at the EUR total actually given up on the source leg, which keeps LIFO and WAC comparable. Coinbase's duplicate target row is skipped.

How is the Italian tax estimate calculated?

The LIFO results are grouped by calendar year. Gains and losses are netted, unused losses are carried forward for up to four years, and the applicable rate is applied. The estimate then adds the graduated ravvedimento operoso penalty (1/10 to 1/5 of the 120% omitted-return penalty, by days late) and legal interest from each year's 30 June deadline. It is a what-if figure that assumes no other filing was made, not a tax return.

Does this tool replace a tax return?

No. It produces cost-basis figures from the CSV you provide. It does not file returns, net gains and losses, or apply every rule that may apply to your situation.

Is my CSV uploaded anywhere?

No. Parsing and calculation run entirely in your browser. There is no backend, account, or analytics on the uploaded file.

Disclaimer

This software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

This tool is for informational purposes only and does not constitute financial, tax, or legal advice. It is not a substitute for a qualified Italian tax advisor or commercialista. Always consult a professional before making financial decisions or filing a tax return.