About this tool
Calculate crypto profit or loss from buy price, sell price, quantity, exchange fees, slippage, and tax.
The Crypto P&L Calculator works out what a single spot trade actually returns once costs are taken out. Your buy fee is added to the entry, the sell fee and slippage are subtracted from the exit, flat network and extra charges come off on top, and your tax rate is applied to whatever profit is left — so net P&L is exit value minus the total capital deployed, and ROI is that figure over entry cost plus fees. The break-even sell price is solved directly rather than searched for: total capital ÷ (quantity × (1 − sell fee % − slippage %)). The same arithmetic is then re-run across a ladder of sell prices from 70% of your buy price upward and plotted as a Recharts bar curve. Every number is computed in a React useMemo inside your browser tab — the tool makes no network requests, fetches no live prices, and stores nothing.
Open Crypto P&L Calculator on AltFTool — it loads instantly in your browser.
Pick the asset label, then enter your buy price, sell price and quantity — quantity steps in units of 0.000001, so fractional positions are fine.
Set the cost assumptions: buy fee %, sell fee %, slippage %, tax rate %, plus the flat network fee and extra charges, and a target ROI. Load Sample or Simple Trade fills in a working set if you want to see the shape first.
Read Net P&L, ROI and break-even sell price at the top, scan the scenario curve for where the bars turn from red to green, then Copy Summary or Export CSV.
The buy fee loads the entry, the sell fee and slippage come off the exit, and the network fee plus extra charges are deducted as flat amounts — so trading costs and the price move are never blended into one figure.
Break-even sell price is total capital ÷ (quantity × (1 − sell fee % − slippage %)), and the risk buffer beside it is simply your sell price minus that number, showing how much room the trade has before it goes underwater.
The full calculation is repeated over roughly a dozen sell prices spanning 70% to 140% of your buy price, drawn as green and red bars against a zero line, with up to nine of those outcomes also listed as cards.
Nothing is uploaded: there is no network request, no account and no signup, and the CSV and clipboard summary are both generated locally from the numbers already on screen.
Net P&L = exit value − total capital − tax. Exit value is (sell price × quantity) minus the sell fee and slippage; total capital is (buy price × quantity) plus the buy fee, network fee and extra charges. On the sample trade — 0.08 BTC from ₹52,00,000 to ₹61,00,000 with 0.2% fees each side, 0.15% slippage and ₹700 in flat costs — that is ₹68,760 before tax, ₹20,628 tax at 30%, and ₹48,132 net.
Divide the total capital you put in by the quantity you hold, adjusted for the costs of getting out: total capital ÷ (quantity × (1 − sell fee % − slippage %)). For the sample trade that is ₹52,37,481 — above the ₹52,00,000 entry, because the exit fee and slippage still have to be covered. The tool shows it as Break-even Sell alongside the buffer between it and your current sell price.
No. You type both the buy price and the sell price yourself. The asset dropdown — BTC, ETH, SOL, BNB, XRP, DOGE, ADA and MATIC — only labels the quantity and the summary; it does not connect to an exchange, call a price API, or read a wallet.
Indian rupees. All amounts are formatted with Intl.NumberFormat in en-IN with INR, so figures appear in lakh grouping with a ₹ symbol, and there is no currency switcher. The arithmetic itself is unit-agnostic — enter dollars consistently across every field and the profit, ROI and break-even figures are still correct, just labelled with a ₹.
The tax rate is applied only after every cost, and only to a positive result: tax = max(0, profit before tax × rate). A losing trade therefore shows zero tax rather than a negative one. The field defaults to 30% and accepts anything from 0 to 100. This is an arithmetic estimate for the numbers you enter, not tax advice or a filing calculation.
No — it models one spot entry and one spot exit at a single price each. There is no averaging across multiple lots, no leverage or margin, no funding rates, and no holding-period logic. Slippage is charged on the exit only (sell price × quantity × slippage %), so entry slippage has to be folded into the buy price you type.
Yes, both offline. Copy Summary puts a twelve-line plain-text block on your clipboard — asset, prices, quantity, gross values, total fees, tax, net P&L, ROI and break-even. Export CSV downloads crypto-pnl-summary.csv, which carries the trade header plus a three-column scenario table: Scenario Sell Price, Net P&L Before Tax, Net P&L After Tax.
Yes — free, with no signup, no account and no cap on how many trades you run. Every figure, chart, clipboard summary and CSV is produced by JavaScript in your own tab, so there is no backend to meter and no trade data leaves your device or gets saved.
Add the Crypto P&L Calculator widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/crypto-pnl-calculator"
title="Crypto P&L Calculator — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/crypto-pnl-calculator?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>