Global edition
Delayed data · 15 min
S&P 5007,704.13+0.87%Nasdaq 10030,478.86+3.50%Dow Jones51,349.98-0.83%Shanghai Comp3,888.37-0.60%Nikkei 22565,513.99+3.20%FTSE 10010,679.99-1.26%DAX25,266.53-1.75%CAC 408,081.43+0.20%Hang Seng24,761.13+0.64%ASX 2008,702.00-0.35%Sensex73,580.54-0.96%
← Back to briefing Publication information

Crypto Profit/Loss Calculator

Crypto trades around the clock and moves in percentages that would be career events in equities. That volatility makes position math harder than it looks: buys at different prices, fees on every trade, and a portfolio that is worth a different number every time you check it. Most holders cannot say, on demand, what their average entry price is or what a sale would actually clear.

This calculator keeps the bookkeeping straight. Enter up to five purchase lots — quantity, buy price, and any fee paid — plus the current market price and how much you intend to sell. It returns your total cost basis including fees, the current value of the amount being sold, your gain or loss in dollars and percent, and your average buy price.

More tools live in our Cents & Sense: the inflation calculator translates your crypto gains into real purchasing power, and the income tax estimator models the ordinary-income side of your finances.

Crypto Profit / Loss Calculator

LotQuantityBuy price per coinFee (optional)
1
2
3
4
5

Example — enter the current market price.

Leave blank to use your total holding.

Gain / loss ($)
$0
Gain / loss (%)
0%
Total cost basis (incl. fees)
$0
Current value of sold amount
$0
Average buy price
$0

Simplified estimate. How crypto gains are taxed — short term vs. long term — varies by holding period and jurisdiction. Not tax advice.

For education only — not financial/tax advice.

What it measures

The calculator measures the profit or loss on a crypto position across up to five purchase lots. It aggregates every lot into a single cost basis — quantity times buy price, plus fees — and values the sold quantity at the current price you enter. The difference is your gain or loss, shown in dollars and as a percentage of the cost of what you sell. The average buy price tells you your breakeven: the price at which the position neither gains nor loses.

Because each lot keeps its own entry price, the calculator handles the realistic case — buying the dip three times at three different prices — rather than assuming one clean entry.

How it works

Three totals are built from your lots: total quantity held, total cost basis (each lot’s quantity × buy price, plus that lot’s fee), and the average buy price, which is total basis divided by total quantity. The sell quantity defaults to your full holding; if you sell only part, the calculator assigns it a proportional share of the basis at the average buy price — equivalent to average-cost accounting.

Gain or loss is then (sell quantity × current price) − (sell quantity × average buy price), and the percentage is that gain divided by the basis of the sold amount. Fees are included in basis, which is why two investors with the same entry prices can show different breakevens: the one who paid more in fees needs a higher exit to clear zero.

Each input, explained

Purchase lots (up to 5). Each row is one buy: how many coins, the price per coin at the time, and any fee paid on that trade. Empty rows are ignored. Defaults to one lot: 0.5 BTC at $60,000, no fee.

Current price per coin. The market price you are measuring against. Defaults to $83,000, labeled as an example — crypto prices move constantly, so enter the current market price before reading anything into the result.

Sell quantity. How much of the holding the gain/loss applies to. Defaults to your total holding. Lower it to model a partial sale — the calculator values the sold slice at the current price against its proportional share of basis.

Worked example

Start with the defaults: one lot of 0.5 BTC bought at $60,000 per coin, no fee; current price $83,000; selling the full 0.5.

Total cost basis is 0.5 × $60,000 = $30,000. Current value of the sold amount is 0.5 × $83,000 = $41,500. Gain: $41,500 − $30,000 = +$11,500, or +$11,500 / $30,000 = +38.33%. Average buy price: $30,000 / 0.5 = $60,000 — the breakeven. Add a $50 fee to the lot and the basis becomes $30,050, the breakeven ticks up to $60,100, and the gain trims to $11,450: small fees, visible effect.

Limitations

This is a simplified economic measure, not a tax computation. How crypto gains are actually taxed — short-term versus long-term treatment, which depends on holding period, plus state rules and the wash-sale question that remains unsettled for crypto — varies and is not modeled here. It also ignores staking rewards, airdrops, and transfers between wallets, each of which can create separate taxable events.

The calculator takes the current price as given; it forecasts nothing and assumes you can actually trade at that price, which is not guaranteed in a fast market. Fees are a single per-lot entry, so spread costs embedded in quoted prices need to be added manually. For a broader look at where bitcoin sits as an asset, read Bitcoin vs Gold: The “Digital Gold” Claim, Tested; for the dollar-pegged corner of the market, Stablecoins Explained: How They Work and Where the Risk Sits.

FAQs

Why does my average buy price differ from what my exchange shows?
Exchanges differ in how they treat fees — some fold them into the displayed entry price, some do not — and some use FIFO or specific-lot accounting rather than the average-cost method used here. For tax filing, follow your exchange’s export and your accountant’s method, not this calculator.

Is the gain shown here realized or unrealized?
It is unrealized until you actually sell. The “sell quantity” frames the number as a sale for planning purposes, but nothing is locked in until the trade executes — and the price can move between reading this and clicking sell.

Why include fees in the cost basis?
Because fees are real money spent to acquire the position. Ignoring a 1% fee on entry and exit quietly overstates returns by about two percentage points. Serious position tracking always includes them.

Does holding period affect the tax rate on crypto gains?
In the US, generally yes: assets held over a year typically qualify for lower long-term capital gains rates than short-term gains, which are taxed like ordinary income. The exact treatment depends on your situation, and crypto-specific rules continue to evolve — this is squarely a question for a tax professional.

Can I use this for stocks or other assets?
The math is the same — cost basis, current value, gain, average entry — so it works for any asset bought in lots. The tax note differs by asset class, which is why the framing here stays crypto-specific.

This calculator is for education only and is not financial or tax advice. Crypto is volatile and can lose value rapidly; never risk money you cannot afford to lose, and consult a qualified professional for tax treatment of your trades.