Crypto Profit/Loss Calculator

Calculate crypto P&L with FIFO, LIFO, or average cost

Buy transactions

Rp

Sell transactions

Rp
Cost basis method
%
%
%
Net gain
IDR 11,940.00
Imbal hasil
39.76%
Gross gain
IDR 14,925.00
Tax owed
IDR 2,985.00
Cost basis
IDR 30,030.00
Proceeds
IDR 44,955.00
Avg buy price
IDR 30,000.00
Avg sell price
IDR 45,000.00

Hasil adalah perkiraan dan mungkin tidak mencerminkan situasi keuangan Anda yang sebenarnya. Ini bukan saran keuangan, pajak, atau hukum. Konsultasikan dengan profesional yang memenuhi syarat.

Cara penggunaan

Enter your cryptocurrency buy and sell transactions. For each purchase, enter the amount of coins and the price per coin. Do the same for your sales. Select your cost basis method (FIFO, LIFO, or average), set your trading fee percentage and capital gains tax rate. The calculator instantly shows your total profit or loss, including a breakdown of each lot disposal and the tax owed.

Rumus

Net Gain=(Psell×Qi×(1fs))(Pbuyi×Qi×(1+fb))Tax\text{Net Gain} = \sum (P_{sell} \times Q_i \times (1 - f_s)) - \sum (P_{buy_i} \times Q_i \times (1 + f_b)) - \text{Tax}

Contoh

Simple Bitcoin trade

You bought 0.5 BTC at $30,000 and sold at $45,000 with 0.1% trading fees and 20% tax. Cost basis: $15,015. Proceeds: $22,477.50. Net gain after tax: $5,970.

Multiple buys, one sell (FIFO)

You bought 1 ETH at $1,500 and 1 ETH at $3,000. You sell 1 ETH at $2,500. Using FIFO, the $1,500 lot is sold first, giving you a $1,000 gain. With LIFO, the $3,000 lot sells first, resulting in a $500 loss.

DCA with average cost

You made 4 weekly purchases of 0.01 BTC at $40,000, $38,000, $42,000, and $36,000. Your average cost is $39,000 per BTC. Selling 0.04 BTC at $45,000 gives a gain of $240 on the total 0.04 BTC position.

Pertanyaan yang sering diajukan

What is the difference between FIFO, LIFO, and average cost?

FIFO (First-In, First-Out) sells your oldest coins first, which often results in higher gains during rising markets. LIFO (Last-In, First-Out) sells your newest coins first, which can minimize short-term gains. Average cost uses the weighted average price of all your holdings as the cost basis for every sale.

Which cost basis method should I use for crypto taxes?

In the US, the IRS allows FIFO, LIFO, and specific identification. FIFO is the default if you do not specify. Average cost is accepted in some countries (UK, Australia) but not for US stock trades, though the IRS has not explicitly prohibited it for crypto. Consult a tax professional for your jurisdiction.

Is cryptocurrency taxed?

In most countries, cryptocurrency is treated as property. You owe capital gains tax when you sell, trade, or spend crypto at a profit. In the US, short-term gains (held under 1 year) are taxed as ordinary income (10-37%), while long-term gains (over 1 year) are taxed at 0%, 15%, or 20%. Losses can offset gains.

How are trading fees handled in the calculation?

Trading fees increase your cost basis (buy fees) and reduce your proceeds (sell fees). This means fees reduce your taxable gain. For example, a 0.1% buy fee on a $10,000 purchase adds $10 to your cost basis, and a 0.1% sell fee on $15,000 proceeds reduces them by $15.

Can I track multiple cryptocurrencies?

This calculator handles one cryptocurrency at a time. Each crypto asset (BTC, ETH, SOL, etc.) should be calculated separately since cost basis is tracked per asset. Add multiple buy and sell lots for the same coin to see the full picture.

Tentang alat ini

Calculate cryptocurrency trading profit or loss with FIFO, LIFO, and average cost basis methods. Supports multiple buy/sell lots, fees, and capital gains tax.

Semua perhitungan dilakukan secara lokal di browser Anda. Data Anda tidak pernah meninggalkan perangkat Anda.