Explore more topics
Editable crypto scenario

Crypto spot trade calculator

Calculate fractional coin units, entry and exit fees, and net P&L for an editable spot trade.

As of 2026-10-10

Jump to a section

Edit the assumptions to see how the result changes. These example values are hypothetical.

Coin units: 0.0198609731877Purchase fee: $6.95Sale fee: $8.34Net P&L: $183.32The values reflect the assumptions entered above. Fees and the selected model affect the result.

Follow the fractional quantity and its fee

  1. 2024-01-01T14:30:00.000Z

    Pair

    BTC-USD

    Side

    Buy

    Units

    0.22279508898062086

    Submitted price

    $42640.08

    Filled price

    $42640.08

    Fee

    $66.50

  2. 2024-01-14T21:00:00.000Z

    Pair

    BTC-USD

    Side

    Sell

    Units

    0.22123552335775648

    Submitted price

    $42505.61

    Filled price

    $42505.61

    Fee

    $65.83

  3. 2024-01-15T14:30:00.000Z

    Pair

    BTC-USD

    Side

    Sell

    Units

    0.001559565622864384

    Submitted price

    $42474.15

    Filled price

    $42474.15

    Fee

    $0.46

Recorded rows in source order; spacing does not represent elapsed time.

Show the table · 3 rows, 7 columns

Scroll sideways to compare all columns. Select a heading to sort.

2024-01-01T14:30:00.000ZBTC-USDBuy0.22279508898062086$42640.08$42640.08$66.50
2024-01-14T21:00:00.000ZBTC-USDSell0.22123552335775648$42505.61$42505.61$65.83
2024-01-15T14:30:00.000ZBTC-USDSell0.001559565622864384$42474.15$42474.15$0.46

The opening notional is 0.22279508898062086 BTC × $42640.08 = $9,500.00. At the declared 0.7% rate, its calculated fee rounds to $66.50, matching the recorded $66.50. The following sale fills together close 0.22279508898062086 BTC. All three displayed fees sum to $132.79.

The entry uses 95% of buying power, and fees are a separate cash flow. Read both exit fills rather than assuming the first sale closed every fractional unit. The full source retains the remaining orders and their timestamps.

Explore the calculation

The budget includes the purchase fee. Units = budget / (entry price × (1 + fee rate)). Sale proceeds = units × exit price. Subtract the sale fee and the original budget to calculate net P&L. All prices are USD per coin; fractional units are retained.

These editable prices and fees are hypothetical. Compare them with the recorded quantities and fees in a completed backtest.

Explore completed crypto backtests

Continue exploring

Discussion

Sign in or create a free account to join the discussion.

No comments yet.