# Crypto Profit Calculator

Estimate cryptocurrency trading profit, exchange fees, and percentage return based on your buy and sell prices instantly.

---

- **Canonical URL:** https://dothecalculation.com/calculators/crypto-profit-calculator
- **Category:** Financial calculators
- **Publisher:** Do The Calculation (https://dothecalculation.com)
- **Cost:** Free, no account or sign-up required
- **Privacy:** Runs entirely in the browser; inputs are never sent to a server
- **Methodology:** https://dothecalculation.com/methodology

---

## Crypto Profit Calculator — DCA Cost Basis, Fees, and After-Tax ROI

Blend multiple dollar-cost-averaged purchase lots into one weighted average cost basis, then calculate exchange fees, break-even price, net profit, ROI, and an estimated after-tax result based on your holding period.

- Multi-lot DCA cost-basis averaging
- Short-term vs. long-term tax estimate
- Break-even price and annualized ROI
- Optional liquidation price & risk-based position sizing

## Cryptocurrency Trading Mathematics

Calculating profitability in cryptocurrency trading requires tracking the exact purchase cost (cost basis) and selling value (gross proceeds), while accounting for exchange transaction fees.

Because crypto assets can be highly volatile, trading fees, network gas charges, and spreads can quickly consume profits on small price movements. This tool separates fees from gross proceeds to calculate your net ROI.

## How to Use This Calculator

Enter each purchase as its own lot — quantity and price — in up to three lot fields; leave a lot at zero quantity if you only made one or two purchases. Then enter how many units you sold, your sale price, and your buy-side and sell-side fee rates as percentages.

Add how many days you held the position and a short-term and long-term tax-rate assumption. The calculator blends your lots into a weighted average cost, applies fees, classifies the holding period at the 365-day mark, and walks from gross cost basis through fees and estimated tax to a final net profit, after-tax profit, ROI, annualized ROI, and break-even price — so you can see exactly what a trade actually nets you before you place it.

## The Crypto Trade Profit Formulas

To calculate a crypto trade's net profit and ROI, the tool applies the following math:

Step 1: Calculate Gross Cost Basis: \(C_{\text{gross}} = \text{Quantity} \times \text{Buy Price}\).

Step 2: Calculate Buy Fee: \(F_{\text{buy}} = C_{\text{gross}} \times \text{Fee}\%\).

Step 3: Calculate Total Cost Basis: \(C_{\text{total}} = C_{\text{gross}} + F_{\text{buy}}\).

Step 4: Calculate Gross Proceeds: \(P_{\text{gross}} = \text{Quantity} \times \text{Sell Price}\).

Step 5: Calculate Sell Fee: \(F_{\text{sell}} = P_{\text{gross}} \times \text{Fee}\%\).

Step 6: Calculate Net Proceeds: \(P_{\text{net}} = P_{\text{gross}} - F_{\text{sell}}\).

Step 7: Calculate Net Profit & ROI: \(\text{Net Profit} = P_{\text{net}} - C_{\text{total}}\), and \(\text{ROI (\%)} = \frac{\text{Net Profit}}{C_{\text{total}}} \times 100\).

## Worked Example: 1.5 Units, $30,000 to $42,000

1.5 units bought at $30,000 and sold at $42,000, with a 0.5% fee charged on both the buy and sell side.

Gross cost basis: 1.5 × $30,000 = $45,000.

Gross proceeds: 1.5 × $42,000 = $63,000.

Total fees (0.5% of cost basis plus 0.5% of proceeds): ($45,000 + $63,000) × 0.5% = $540.

Net profit: $63,000 − $45,000 − $540 = $17,460.

ROI: $17,460 ÷ $45,000 × 100 ≈ 38.8%.

Even at a modest-looking 0.5% fee rate, the combined buy-and-sell fee took $540 off the top of a 40% gross price move — a reminder that fees apply to both legs of every trade, not just one.

## Understanding Exchange Fees: Maker vs. Taker

Most cryptocurrency exchanges use a **Maker-Taker fee structure** to determine transaction costs:

**Maker Fees**: Charged when you add liquidity to the order book (e.g., placing a limit order that is not filled immediately). Maker fees are typically lower.

**Taker Fees**: Charged when you remove liquidity from the order book (e.g., placing a market order that fills immediately). Taker fees are higher and directly increase trading costs.

## Break-Even Price: How Far Must the Price Move to Cover Fees?

Because fees apply on both the buy and the sell leg, a trade needs the price to move by more than "zero" just to break even — it has to clear the round-trip fee cost first.

Break-even sell price formula: \(\text{Sell}_{\text{break-even}} = \text{Buy Price} \times \frac{1 + \text{Fee}\%}{1 - \text{Fee}\%}\).

Using the same 0.5% fee rate on a $30,000 buy price: break-even sell price ≈ $30,000 × (1.005 / 0.995) ≈ $30,301.51 — meaning the price only needs to rise about 1.0% before the trade turns profitable, since the 0.5% fee is charged twice (once on the way in, once on the way out).

Knowing your break-even price before entering a trade helps you judge whether a small expected move is even worth the fee drag, especially for short-term or scalping strategies.

## Hidden Costs: Spreads, Slippage, and Gas Fees

In addition to exchange fees, crypto traders face other transaction costs:

**Slippage**: The difference between the expected price of a trade and the actual execution price, common during high volatility or low liquidity.

**Gas Fees**: Network transaction fees required to move tokens on blockchains (e.g., Ethereum or Bitcoin). Gas fees are flat rates independent of trade size, making small decentralized trades expensive.

## Dollar-Cost Averaging: Blending Multiple Purchase Lots

Most crypto positions are not built from a single buy — they are built from several purchases at different prices over time. This calculator accepts up to three separate purchase lots (quantity and price each) and blends them into one weighted-average cost per unit before running the profit math.

Weighted average cost per unit: \(\bar{P} = \frac{\sum (\text{Lot Quantity} \times \text{Lot Price})}{\sum \text{Lot Quantity}}\). If you are selling only part of your combined position, that average cost is applied to the units sold, and any buy-side fees are allocated proportionally to the portion sold.

This is a blended average-cost model, not lot-by-lot FIFO or LIFO matching. If you need to know which specific purchase lot a partial sale is matched against — which can change your realized gain — see the [FIFO vs. LIFO for Crypto Taxes guide](/blog/finance/fifo-vs-lifo-crypto-taxes) for that method, or the Tax Lots sheet in the [Crypto Portfolio Tracker template](/excel-templates/crypto-portfolio-tracker) for a full lot-by-lot calculation.

## Short-Term vs. Long-Term: Why Holding Period Changes Your Tax Estimate

How long you hold a coin before selling it typically determines which tax rate applies to the gain. This calculator uses the common 365-day threshold: enter the number of days between your (average) purchase and the sale, and it classifies the trade as short-term (365 days or fewer) or long-term (more than 365 days), then applies whichever tax-rate assumption you enter for that bucket.

Estimated tax: \(\text{Tax} = \max(0, \text{Net Profit}) \times \text{Rate}\%\), where Rate is your long-term rate if held past 365 days, otherwise your short-term rate. After-tax profit is simply net profit minus that estimated tax.

This is a planning estimate built from the rate you supply — it does not determine your actual tax bracket, does not know your jurisdiction's specific rules, and does not replace a tax return. For the broader framework behind short-term versus long-term treatment, see the [Capital Gains Tax Guide](/blog/finance/capital-gains-tax-guide).

## Liquidation Price: How Leverage Sets Your Danger Zone

The optional Leverage & Liquidation panel estimates the price at which a leveraged position gets force-closed, using your DCA-blended average cost above as the entry price so both panels describe the same position.

Long liquidation price: \(P_{\text{liq}} = P_{\text{entry}} \times \left(1 - \frac{1}{L} + M\right)\). Short liquidation price: \(P_{\text{liq}} = P_{\text{entry}} \times \left(1 + \frac{1}{L} - M\right)\), where \(L\) is leverage and \(M\) is your maintenance margin rate.

Higher leverage pulls the liquidation price closer to your entry — at 10x with a 0.5% maintenance margin rate, a long position's estimated liquidation sits about 9.5% below entry; at 50x, that shrinks to roughly 1.5% below entry. This is why the calculator also shows your stop-loss price next to the liquidation price and flags whether your stop would trigger first.

Actual liquidation formulas, maintenance margin tiers, and fee handling vary by exchange — treat this as a planning estimate to size and place stops around, not the exact number your exchange will use.

## Risk-Based Position Sizing: How Big Should This Trade Actually Be?

Separately from leverage, the panel also answers a different question: given your account size and how much you're willing to risk on one trade, how large should the position be?

Maximum risk in dollars: \(R = \text{Account Size} \times \text{Risk}\%\). Suggested position value: \(V = \dfrac{R}{\text{Stop-Loss Distance}\%}\). Suggested units: \(V \div \text{Entry Price}\). This is the same position-sizing model used by the Scenario & Risk Lab in the [Crypto Portfolio Tracker template](/excel-templates/crypto-portfolio-tracker).

The calculator compares that risk-appropriate size against your actual position size (margin × leverage) and flags it when your position is meaningfully larger than what your own risk settings suggest — a quick check against the most common way leverage causes damage: sizing a position off of conviction instead of account risk.

## Why Fee Tier Shopping Matters

Fee rates vary widely between exchanges and often depend on your 30-day trading volume or whether you hold the platform's native token. On the same $45,000 cost-basis trade used above, dropping the fee rate from 0.5% to 0.1% raises net profit from $17,460 to $17,892 (ROI from 38.8% to 39.76%), while a higher 1.0% fee rate cuts net profit to $16,920 (ROI 37.6%).

The spread between a 0.1% and a 1.0% fee tier is nearly $1,000 on a single mid-size trade — over dozens of trades per year, fee-tier shopping can matter more than picking slightly better entry and exit points.

## Related Calculators, Guides, and Templates

When it comes time to sell, estimate what you'll owe with the [capital gains calculator](/calculators/capital-gains-calculator), or offset gains from other trades using the [tax loss harvesting calculator](/calculators/tax-loss-harvesting-calculator).

For the lot-by-lot method behind a partial sale, read [FIFO vs. LIFO for Crypto Taxes](/blog/finance/fifo-vs-lifo-crypto-taxes). If this trade is part of getting an overweight coin back to target, see [How Crypto Portfolio Rebalancing Works](/blog/finance/crypto-portfolio-rebalancing-guide).

To track every DCA purchase, hold multiple coins, and estimate FIFO/LIFO tax lots in one connected workbook instead of a single-trade estimate, download the [Crypto Portfolio Tracker Excel template](/excel-templates/crypto-portfolio-tracker). If you're evaluating mining rather than trading, the [crypto mining profitability calculator](/calculators/crypto-mining-profitability-calculator) works out daily profit and break-even electricity rate from your hardware's hashrate and power draw.

## Frequently asked questions

### How do exchange fees affect crypto profit?

Exchanges charge transaction fees (usually 0.1% to 0.5%) when buying and selling. These fees increase your cost basis and reduce your net proceeds, lowering your net profit.

### What is the difference between a maker and a taker fee?

Maker fees are charged when you place a limit order that adds liquidity to the book. Taker fees are charged when you place a market order that executes immediately, removing liquidity.

### What is slippage in crypto trading?

Slippage is the difference between the price you request for a trade and the price at which the order actually executes, often occurring during high volatility.

### Does this calculator include taxes?

Yes, as an estimate. Enter your days held plus a short-term and long-term tax-rate assumption, and the calculator classifies the trade at the 365-day mark and applies the matching rate to show an estimated after-tax profit alongside the pre-tax net profit. It is a planning estimate, not a filed tax figure — confirm your actual rate and treatment with a tax professional.

### What is cost basis in crypto?

Cost basis is the total price paid to acquire a cryptocurrency, including the asset purchase price plus any exchange transaction fees.

### Are blockchain gas fees included in this calculator?

No. Gas fees are flat network transaction fees determined by blockchain congestion. You should add gas fees to your purchase/sale costs manually for on-chain trades.

### How is crypto taxed?

In many countries (including the US), crypto is treated as property. Selling, trading, or spending crypto triggers capital gains taxes based on holding periods.

### What is a stablecoin?

A stablecoin is a cryptocurrency whose value is pegged to another asset (usually the US Dollar, like USDT or USDC) to minimize volatility.

### Can I calculate margin trading profits here?

This calculator is for standard spot trading. Margin trading involves leverage, interest fees on borrowed capital, and liquidation thresholds which require specialized calculations.

### How do I reduce my crypto trading fees?

You can lower fees by using limit orders (qualifying for maker rates), trading higher volumes, holding the exchange's utility token, or using low-fee platforms.

### Does this calculator handle multiple buys (dollar-cost averaging)?

Yes. Enter up to three separate purchase lots (quantity and price each) and the calculator blends them into one weighted-average cost per unit automatically, then allocates buy-side fees to the portion of that position you sell. This is an average-cost model, not lot-by-lot FIFO/LIFO matching — see the FIFO vs. LIFO guide linked in this page's related articles for that distinction.

### How does the short-term vs. long-term classification work?

The calculator compares your entered holding period (in days) against the common 365-day threshold: 365 days or fewer is treated as short-term, more than 365 days as long-term. Whichever tax-rate assumption matches that bucket is applied to your net profit to estimate the after-tax result.

### How do decentralized exchange (DEX) fees differ from centralized exchange fees?

Centralized exchanges (like Coinbase or Binance) charge a percentage-based maker/taker fee similar to the fee rate modeled here. Decentralized exchanges (like Uniswap) instead charge a liquidity-pool swap fee plus a separate blockchain gas fee that varies with network congestion — both should be added together when estimating your true DEX trading cost.

### Why does my break-even price matter more in crypto than in stocks?

Crypto fee rates and spreads are often higher than equity trading costs, and crypto assets are typically far more volatile intraday. That combination means the price has to clear a larger round-trip fee hurdle before a short-term trade becomes profitable, so checking the break-even price first is a useful habit for active crypto traders.

### How is the liquidation price calculated?

It uses a standard isolated-margin approximation: entry price adjusted by (1 divided by leverage) and your maintenance margin rate — lower for a long position, higher for a short. Real exchanges apply their own formula, fee handling, and maintenance margin tiers, so treat this as a planning estimate and confirm the exact figure on your exchange before opening a leveraged position.

### What is a maintenance margin rate, and what should I set it to?

It's the minimum equity percentage an exchange requires you to keep in a leveraged position before liquidating it. It varies by exchange, coin, and leverage tier — commonly a fraction of a percent to a few percent. If you don't know your exchange's exact figure, check your exchange's margin tier table; the default here (0.5%) is a reasonable planning assumption, not a universal number.

### Why does the calculator show my stop-loss price next to the liquidation price?

Because the entire point of knowing your liquidation price is setting a stop-loss before it, not after. The calculator compares the two distances directly and warns you when your stop-loss sits past the estimated liquidation price — meaning liquidation would likely trigger first, before your own stop-loss order gets the chance to.

### Is the risk-based position size the same as my actual position size?

Not necessarily, and that gap is the point. Your actual position size comes from your margin amount times leverage. The suggested position size comes independently from your account size, risk-per-trade percentage, and stop-loss distance. When your actual position is meaningfully larger than the suggestion, that's a sign the trade is sized off leverage availability rather than account risk.

### Is leveraged crypto trading safe?

No leveraged position is risk-free, and higher leverage moves your liquidation price closer to your entry price, shrinking the room for normal price volatility before you're forced out. This calculator is an educational planning tool, not a recommendation to use leverage — confirm your exchange's actual margin rules and only risk capital you can afford to lose.

## Related concepts

- **Maker-Taker Fees** — The standard exchange tier model pricing orders based on whether they add or remove liquidity.
- **Slippage** — The price execution gap caused by high volatility or low order book liquidity.
- **Cost Basis** — The total acquisition cost of an asset, including purchase price and transactional charges.
- **Break-Even Price** — The exit price at which a trade's net profit reaches zero after accounting for round-trip fees.
- **Liquidation Price** — The estimated price at which a leveraged position's losses consume the maintenance margin and the position is force-closed by the exchange.
- **Risk-Based Position Sizing** — Sizing a trade from account size, risk-per-trade percentage, and stop-loss distance, instead of from leverage availability or conviction.

## Related guides

- [Capital Gains Tax Guide: Basis, Selling Costs, and After-Tax Sale Proceeds](https://dothecalculation.com/blog/finance/capital-gains-tax-guide) — Estimate taxable gain more accurately by separating sale price, adjusted basis, selling costs, tax assumptions, and after-tax proceeds.
- [ROI Calculation: Formula, Annualized Return, and Examples](https://dothecalculation.com/blog/business/roi-calculation) — Calculate ROI and annualized return with total costs included, compare opportunities consistently, and understand what a simple ROI result leaves out.
- [FIFO vs. LIFO for Crypto Taxes: How Tax-Lot Method Changes Your Gain](https://dothecalculation.com/blog/finance/fifo-vs-lifo-crypto-taxes) — The same crypto sale can produce very different taxable gains depending on which purchase lot you treat as sold. A worked FIFO vs. LIFO example, plus the 2025 rule change that limits how freely you can pick.
- [How Crypto Portfolio Rebalancing Works (With a Worked Allocation-Drift Example)](https://dothecalculation.com/blog/finance/crypto-portfolio-rebalancing-guide) — Your target allocation does not stay put just because you did not trade. A worked example showing exactly how much a single coin's rally can drag a portfolio out of balance — and how to calculate the trade that fixes it.

## Related calculators

- [Stock Profit Calculator](https://dothecalculation.com/calculators/stock-profit-calculator) — Calculate stock trade profit or loss, brokerage fees, and overall return on investment based on your purchase and sale prices.
- [Inflation Calculator](https://dothecalculation.com/calculators/inflation-calculator) — Estimate how inflation erodes purchasing power over time and see what past or future prices are worth in current dollars.
- [Markup Calculator](https://dothecalculation.com/calculators/markup-calculator) — Calculate markup percentage and profit margin from cost and selling price to set prices that guarantee your target profit on every sale.
- [Auto Loan Calculator](https://dothecalculation.com/calculators/auto-loan-calculator) — Estimate monthly car payments, total financing cost, and interest owed based on vehicle price, down payment, and loan term.
- [Bond Yield Calculator](https://dothecalculation.com/calculators/bond-yield-calculator) — Estimate bond yield to maturity, current yield, and Macaulay and modified duration to gauge interest rate sensitivity risk.
- [Capital Gains Calculator](https://dothecalculation.com/calculators/capital-gains-calculator) — Estimate capital gains and the resulting tax impact from selling stocks, property, or other investment assets that you own.

---

_This tool is for educational purposes only. Asset returns, trading fees, capital gains tax liabilities, dividend payments, and bond yields depend on market conditions, broker commissions, local tax codes (e.g. IRS short vs. long-term classifications), and individual credit/holding terms. Leveraged trading carries a high risk of liquidation and is not suitable for all investors — liquidation price, maintenance margin requirements, and fee handling vary by exchange and leverage tier, so the leverage figures here are planning estimates, not guaranteed trigger prices. Always consult a certified financial planner, licensed CPA, or tax professional before making major investment or liquidation transactions._

---

_Source: [Do The Calculation](https://dothecalculation.com/calculators/crypto-profit-calculator). Quote freely with attribution and a link to this page._
