Crypto Portfolio Calculator
Calculate cryptocurrency portfolio value and profit/loss. Track investments, average buy price, ROI percentage. Support for multiple coins
Tracking a cryptocurrency portfolio means watching multiple coins at different cost bases across multiple wallets — the math is straightforward but tedious to do by hand. This calculator tracks holdings across coins, computes average buy price, current value, profit/loss per coin and total, and unrealized vs realized gains. It runs locally; wallet addresses and balances are never transmitted to a server.
What the calculator actually computes
- Total portfolio value — current market price × quantity, summed across all holdings.
- Average buy price per coin — total cost / total quantity (weighted by transaction sizes).
- Unrealized P/L — current value minus cost basis for held positions.
- Realized P/L — sum of (sale price − cost basis) × quantity sold, across all closed transactions.
- Allocation breakdown — % of total value in each coin. Useful for rebalancing.
- ROI — total return ÷ total invested, as a percentage.
- Tax basis options — FIFO (first-in-first-out), LIFO, HIFO (highest cost basis), or specific identification. Each produces different realized-gains numbers; check your jurisdiction's rules.
Working example
Input
Holdings: 0.5 BTC bought at $40,000 (Jan 2024) 0.3 BTC bought at $65,000 (Apr 2024) 2 ETH bought at $2,800 (Feb 2024)
Output
Total BTC: 0.8
Average BTC price: (0.5 × 40000 + 0.3 × 65000) / 0.8
= (20000 + 19500) / 0.8
= 49,375 USD/BTC
Total cost (BTC): $39,500
Current value at $60,000/BTC: $48,000
Unrealized BTC P/L: +$8,500 (+21.5%)
Total ETH: 2.0
Average ETH price: $2,800
Total cost (ETH): $5,600
Current value at $3,200/ETH: $6,400
Unrealized ETH P/L: +$800 (+14.3%)
Portfolio summary:
Total cost basis: $45,100
Total current value: $54,400
Unrealized P/L: +$9,300 (+20.6%)
Allocation: BTC 88.2%, ETH 11.8%Average buy price tells you the price the market needs to reach for you to break even (ignoring fees). For long-term holders this matters less than total dollar P/L; for traders it sets exit thresholds.
Tax basis methods and what each implies
- FIFO (First-In, First-Out) — sell oldest holdings first. Default in many jurisdictions (US, UK). Generally produces higher gains in a rising market because oldest coins have lowest cost basis.
- LIFO (Last-In, First-Out) — sell newest first. Lower gains in a rising market. Allowed in fewer jurisdictions.
- HIFO (Highest-In, First-Out) — sell highest-cost holdings first. Minimizes gains; useful for active tax management.
- Specific Identification — pick exact lots being sold. Most flexible; requires meticulous record-keeping.
- Polish KSeF / "podatek od dochodu z kapitałów pieniężnych" — flat 19% on net gains. Specific identification is common.
- US — short-term (held <1 year) taxed as regular income; long-term taxed at capital gains rate. Always check the holding period.
When to reach for this tool
- You hold crypto across multiple exchanges and wallets and want a unified view.
- You are preparing tax returns and need cost basis / realized gains figures.
- You are considering rebalancing and want to see current allocations.
- You are doing post-mortem on a trade or holding strategy.
What this tool will not do
- It will not pull data from your exchanges automatically. Manual entry of transactions; for automation use Koinly, CoinTracker, or exchange-specific tax reports.
- It will not file taxes. The numbers are inputs to your tax software / accountant; they are not the return itself.
- It will not advise on investment strategy. The math is mechanical; "should I buy / sell" is your call.
- It will not handle DeFi complexity (LP positions, staked tokens, yield farming, lending). Specialized DeFi accounting tools are needed for those.
All calculations happen in your browser. Transaction details, wallet addresses, and amounts are stored in localStorage on your device and never transmitted.
Frequently asked questions
Are crypto-to-crypto trades taxable?
In most jurisdictions, yes. Trading BTC for ETH is a sale of BTC (taxable event) and purchase of ETH (new cost basis). Even though no fiat changed hands, gains/losses on the disposed asset are realized. Maintain records of every trade.
How is staking income taxed?
Most jurisdictions: as income at fair market value when received. Then any subsequent gain/loss is capital gain. Some jurisdictions tax at "constructive receipt"; others (Israel) wait until disposal. Check your country's specific rules.
What is "cost basis"?
The amount you paid for an asset, plus fees. When you sell, gain/loss = sale price minus cost basis. For crypto bought across multiple transactions at different prices, your method (FIFO, LIFO, HIFO, Specific ID) determines which "lot" you are selling, and thus your cost basis per sale.
How long must I hold for long-term capital gains?
Depends on jurisdiction. US: more than 1 year. Germany: more than 1 year (full tax exemption). Poland: no holding-period distinction; flat 19%. UK: capital gains tax applies based on transaction, not duration. Always verify with current local rules.
Should I track every transaction?
Yes. Tax authorities can audit historical transactions. Records typically need to be kept for 5-7 years. Cost-basis lookup years later without records is painful and may default to assumptions that hurt you (e.g., zero cost basis = treat the entire sale as gain).
Are airdrops taxable?
Usually yes, at fair market value at time of receipt. Treated as income. Subsequent sale is then a capital gain/loss based on that value. Some jurisdictions defer until the airdrop is "claimed" or sold; check yours.
Related tools
Convert cryptocurrency units. Satoshi to Bitcoin, Wei to Gwei to Ether, and more. Live price conversion between crypto and fiat currencies
Validate cryptocurrency wallet addresses. Check if Bitcoin, Ethereum, Solana, Litecoin addresses are valid. Detect address type and network
Real-time currency converter with live exchange rates. Convert USD, EUR, GBP, PLN, JPY and 150+ world currencies. Free forex calculator online
Calculate compound interest with visual growth chart. Compare simple vs compound interest. Monthly contributions support. Free online investment calculator
Check cryptocurrency wallet balance by address. View Bitcoin, Ethereum, Solana balances. See transaction history and token holdings. Real-time blockchain data
Last updated · E-Utils editorial team