Crypto P&L Calculator

Track crypto profit and loss. Log buys and sells and get average cost, total invested, current value, realized and unrealized P&L.

All calculations happen locally in your browser. Your trade history never leaves your device.

Add a trade
No trades yet — add your first buy to start tracking.
Average cost
—
Total invested
—
Current value
—
Realized P&L
—
Unrealized P&L
—
Total P&L
—
Total P&L %
—

Average Cost Method

Instead of tracking each lot you bought, the average cost method folds every purchase into a single number: the mean price you paid for the coins in your position, fees included. Sells are then measured against that average, which makes it easy to see at a glance whether a position is profitable overall — even if you bought at several different prices.

Average Cost vs FIFO
With FIFO (first in, first out), each sell is matched to your earliest purchase, so the P&L depends on the order of your trades. Average cost ignores order entirely and uses one blended price. FIFO is the default for US tax reporting; average cost is the common choice for tracking performance.
Realized vs Unrealized
Realized P&L exists only after you sell: (sell price − average cost) × coins sold, minus sell fees. Unrealized P&L is the mark-to-market value of what you still hold: (current price − average cost) × coins held. Total P&L = realized + unrealized.
Why Fees Are Included
Buy fees increase your true cost per coin and sell fees reduce your net proceeds. This calculator adds buy fees into the average cost and subtracts sell fees from realized gains, so the numbers reflect what actually hits your balance.

Frequently Asked Questions

What is the average cost method?

Every buy raises the average price of your whole position: total cost of all buys (including fees) divided by the total coins bought. When you sell, you compare the sale price against that average — the difference is your realized profit or loss. It's simpler than FIFO and is what most traders use for a quick health check of a position.

What is the difference between realized and unrealized P&L?

Realized P&L comes from coins you have already sold — the gain or loss is locked in. Unrealized P&L is the paper gain or loss on coins you still hold, based on the current price. Your total P&L is the sum of the two.

Why are fees included in the calculation?

Fees are a real cost of trading. Buy fees increase what you paid, so they raise your average cost. Sell fees reduce what you actually received, so they lower your realized gain. Ignoring fees overstates your true profit, and the effect grows the more you trade.

What does 'Total invested' mean?

It is your net capital still in the position: everything you spent buying (cost plus buy fees) minus everything you received from selling (revenue minus sell fees). It's the base the total P&L percentage is measured against. If you've sold everything, it drops to zero and the percentage is shown as —.

Is my trade history sent anywhere?

No. The trade list lives only in your browser's memory while the page is open. Nothing is transmitted, stored or uploaded — close the page and the list is gone.