Crypto Profit Calculator: How to Calculate Your Gains, Losses, and ROI Accurately
beginner guides

Crypto Profit Calculator: How to Calculate Your Gains, Losses, and ROI Accurately

MediaCrypto AdminJuly 27, 2026Updated July 27, 202614 views9 min read

Calculating your crypto profit sounds simple until you factor in multiple buy prices, partial sells, fees, and tax implications. Most people either overestimate their gains by ignoring fees or underestimate their cost basis by forgetting earlier purchases. MediaCrypto's free Profit Calculator handles the maths instantly. Here is how crypto profit calculation actually works and how to use the tool correctly.

TL;DR: Crypto profit calculation is the process of determining how much you gained or lost on a crypto investment, expressed both in dollar terms and as a percentage return. The basic formula is straightforward: subtract your total cost (purchase price multiplied by quantity, plus fees) from your total proceeds (sale price multiplied by quantity, minus fees). The complications arise from multiple purchase events at different prices, partial sells, trading fees at both entry and exit, and the difference between unrealized gains (positions still open) and realized gains (positions closed). MediaCrypto's free Profit Calculator at mediacrypto.ai/tools/profit-calculator allows you to enter your buy price, sell price, investment amount, and fees to instantly calculate your profit or loss in dollar terms and as a percentage ROI. It supports calculations for any cryptocurrency and any time period. MediaCrypto note: understanding how profit is calculated, not just using a calculator, matters for two reasons. It helps you evaluate whether a trade actually performed well after fees, and it forms the basis for understanding your tax obligations, since crypto gains and losses are calculated using the same principles your tax authority uses.

The gap between what people think they made on a crypto trade and what they actually made is often significant. The most common sources of error are ignoring trading fees (which reduce both entry and exit), forgetting that multiple purchases at different prices change the effective cost basis, and confusing unrealized gains (the paper profit while still holding) with realized gains (the actual profit after selling).

Getting the calculation right matters beyond personal satisfaction. Tax authorities in virtually every major jurisdiction calculate your taxable crypto gain using cost basis minus proceeds, the same formula that tells you whether you made or lost money. An inaccurate profit calculation is often also an inaccurate tax calculation.

The Core Profit Calculation Formula

The fundamental profit calculation for a crypto trade involves four numbers: the purchase price per unit, the quantity purchased, the sale price per unit, and the fees at both entry and exit.

Total cost basis is your purchase price per unit multiplied by the quantity, plus the fees you paid to execute the buy. If you bought 0.5 Bitcoin at $60,000 per Bitcoin and paid $30 in exchange fees, your total cost basis is (0.5 multiplied by $60,000) plus $30, which equals $30,030.

Total proceeds is your sale price per unit multiplied by the quantity sold, minus the fees you paid to execute the sell. If you later sold that 0.5 Bitcoin at $70,000 and paid $35 in exchange fees, your total proceeds are (0.5 multiplied by $70,000) minus $35, which equals $34,965.

Profit or loss is total proceeds minus total cost basis. In this example: $34,965 minus $30,030 equals $4,935 profit.

Return on investment (ROI) as a percentage is profit divided by cost basis, multiplied by 100. In this example: ($4,935 divided by $30,030) multiplied by 100 equals approximately 16.43 percent ROI.

Without the fees in this calculation, the apparent profit would be $35,000 minus $30,000 equals $5,000, and ROI would appear to be 16.67 percent. The fee-adjusted calculation shows the actual profit is $4,935 and actual ROI is 16.43 percent. For small trades the difference is minor. For large trades or high-frequency trading, fee drag compounds significantly.

The Multiple Purchase Problem: Average Cost Basis

The calculation above works cleanly for a single buy and single sell. Real crypto investing involves multiple purchases at different prices, which requires calculating your average cost basis before you can determine profit on a sale.

If you bought 0.25 Bitcoin at $40,000 in January and another 0.25 Bitcoin at $60,000 in March, your average cost basis per Bitcoin is the total spent divided by total quantity: ($10,000 plus $15,000) divided by 0.5 Bitcoin equals $50,000 per Bitcoin average cost basis.

If you then sell all 0.5 Bitcoin at $65,000, your profit calculation uses the $50,000 average: ($65,000 minus $50,000) multiplied by 0.5 Bitcoin equals $7,500 profit before fees.

This average cost basis method, also called FIFO (First In First Out) in its most common variant, is the default that most tax authorities apply and most exchange reporting uses. The alternative HIFO (Highest In First Out) method, discussed in MediaCrypto's crypto tax guide, applies your highest-cost purchases first to minimize taxable gains, which can legitimately reduce your tax bill but requires more careful record-keeping.

Unrealized vs Realized Gains: A Critical Distinction

Unrealized gain is the profit you would make if you sold right now, without having actually sold. If you hold Bitcoin worth $70,000 that you bought for $50,000, you have a $20,000 unrealized gain. This gain exists on paper but has not been converted to cash and, critically, is not yet taxable in most jurisdictions.

Realized gain is the profit from a position you have actually closed by selling. The same $20,000 becomes a realized gain the moment you sell. At that point it becomes a taxable event in virtually every major jurisdiction.

The psychological trap of unrealized gains is treating them as money you have. Bitcoin at $109,000 in January 2026 created enormous unrealized gains for long-term holders. Those same holders watching Bitcoin fall to $59,500 by July 2026 saw those unrealized gains shrink by approximately 45 percent. Nobody lost realized money unless they sold. But the lesson is that unrealized gains are not the same as realized profit, and portfolio decisions made assuming peak unrealized gains will persist are often regretted.

Using the MediaCrypto Profit Calculator

MediaCrypto's free Profit Calculator at mediacrypto.ai/tools/profit-calculator is designed to handle the core calculation instantly without requiring you to work through the formula manually.

The calculator accepts four inputs: your investment amount in dollars, your buy price per coin, your sell price per coin, and optionally your trading fee percentage. From these inputs it calculates your profit or loss in dollar terms, your ROI as a percentage, and the total value of your position at both entry and exit.

The calculator works for any cryptocurrency. Whether you are calculating gains on Bitcoin, Ethereum, Solana, or any other asset, the underlying formula is identical. Enter the numbers relevant to your trade and the calculator handles the arithmetic.

For multiple purchase scenarios, calculate the average cost basis first using the method described above, then enter that average as your buy price. For partial sells, enter only the quantity sold and the proportional cost basis for that portion.

For tax purposes, the calculator's output gives you the raw gain or loss figure that forms the input to your tax calculation. The tax rate that applies depends on your jurisdiction and holding period (short-term versus long-term capital gains) as covered in MediaCrypto's crypto tax guide. The profit calculator tells you the gain amount. The tax guide tells you what percentage of that gain you owe.

Use the calculator at: https://mediacrypto.ai/tools/profit-calculator

Common Calculation Mistakes That Change Your Numbers

Forgetting fees is the most common error and consistently makes profits appear larger than they are. Exchange fees of 0.1 to 0.5 percent at entry and exit are small per transaction but compound across frequent trades. A trader making 100 trades per year at 0.2 percent fee each way pays 40 percent of their gross profit in fees at the break-even point where their strategy barely covers its costs.

Ignoring the cost basis of coins received as income is a mistake that creates tax problems. If you received staking rewards, mining income, or airdrops, each received amount establishes a cost basis at its fair market value on the day received. When you later sell those coins, your gain is calculated from that original income-day cost basis, not from zero. Treating these as zero-cost coins overstates your gain.

Mixing up price per coin with total investment is a common mental arithmetic error. Entering $5,000 total investment at a coin price of $0.05 means you bought 100,000 coins. The percentage gain is calculated on the $5,000 investment, not on the coin price movement alone. The MediaCrypto calculator uses total investment amount rather than coin count as the primary input, which is the most intuitive framing for most users.

About the Author

This article was researched and written by the MediaCrypto editorial team. MediaCrypto is a cryptocurrency news and market analysis publication covering Bitcoin, Ethereum, altcoins, regulatory developments, and market trends. Follow us on X at @MediaCrypto_AI and on Instagram.

FAQ — Crypto Profit Calculator 2026

How do I calculate crypto profit? Subtract your total cost basis (purchase price per unit multiplied by quantity, plus entry fees) from your total proceeds (sale price per unit multiplied by quantity, minus exit fees). The result is your profit or loss. Divide profit by cost basis and multiply by 100 for your ROI percentage.

What is cost basis in crypto? Cost basis is the total amount you paid for a crypto asset, including the purchase price and any transaction fees. It is the starting point for calculating your gain or loss. If you made multiple purchases at different prices, your cost basis is the average paid per unit across all purchases.

What is the difference between unrealized and realized gains? Unrealized gain is the profit you would make if you sold now, without having actually sold. Realized gain is the profit from a position you have actually closed by selling. Only realized gains are taxable in most jurisdictions. Unrealized gains can disappear if prices fall before you sell.

How does MediaCrypto's Profit Calculator work? MediaCrypto's free Profit Calculator at mediacrypto.ai/tools/profit-calculator accepts your investment amount, buy price per coin, sell price per coin, and fee percentage. It instantly calculates your profit or loss in dollar terms and your ROI as a percentage for any cryptocurrency.

Do trading fees affect my profit calculation significantly? Yes. Exchange fees of 0.1 to 0.5 percent at both entry and exit reduce your net profit. For frequent traders, fee drag compounds significantly. The MediaCrypto calculator accepts a fee percentage input to give you the accurate fee-adjusted profit figure rather than the gross pre-fee profit that overstates actual returns.

Calculate your crypto profit now: https://mediacrypto.ai/tools/profit-calculator

Read also: How to Legally Reduce Your Crypto Taxes in 2026 — https://mediacrypto.ai/news/how-to-legally-reduce-your-crypto-taxes-in-2026-six-strategies-that-actually-wor

Read also: Dollar Cost Averaging Crypto Explained — https://mediacrypto.ai/news/dollar-cost-averaging-crypto-explained-the-strategy-that-beats-most-active-trade

This article is for informational purposes only and does not constitute financial advice. Always do your own research before making investment decisions.

#crypto profit calculator#how to calculate crypto gains#crypto ROI calculator#Bitcoin profit calculator#crypto loss calculator 2026
Share

/ Related Stories

Binance Agent OS Explained: How AI Agents Can Now Trade Crypto on the World's Largest Exchange

Binance Agent OS Explained: How AI Agents Can Now Trade Crypto on the World's Largest Exchange

Binance launched Agent OS on August 20 2026, a developer platform letting AI agents access market data, monitor accounts, and execute crypto trades across spot, margin, convert, and futures. Supported tools include ChatGPT, Claude Code, Codex, and Cursor. Agents operate in isolated subaccounts with no withdrawal scope. BNB rose 3.99 percent to $674.62 on announcement day. Binance joins Coinbase, Kraken, and OKX in opening exchange rails to autonomous AI agents. Here is the complete explainer.

Telegram Gram Wallet Explained 2026: The Largest Non-Custodial Crypto Wallet Rollout in History Is Happening Right Now

Telegram Gram Wallet Explained 2026: The Largest Non-Custodial Crypto Wallet Rollout in History Is Happening Right Now

Telegram began rolling out its Gram Wallet to an initial group of users on August 31 2026, with gradual expansion planned across its billion-plus user base through September. The wallet is non-custodial, uses a 24-word seed phrase, and settles transactions in under three seconds with zero fees between linked accounts. Toncoin was rebranded to Gram on June 15 2026 with 81.22 percent community vote. GRAM surged 8 percent on the announcement. Here is everything you need to know.

What Is the Crypto Fear and Greed Index? How Smart Traders Use It in 2026

What Is the Crypto Fear and Greed Index? How Smart Traders Use It in 2026

The Crypto Fear and Greed Index measures market sentiment on a scale from 0 (Extreme Fear) to 100 (Extreme Greed). Warren Buffett's rule applies: be greedy when others are fearful, fearful when others are greedy. The index hit 8 in June 2022 at Bitcoin's $17,000 low. It hit 90 in November 2024 near Bitcoin's $99,000 price. August 2026 reading is 28, Fear territory. Here is exactly how it is calculated and how traders use it.