# How can i calculate the breakeven price for buying and reselling on cryptocurrency exchange?

Assume that one side of the position will be charged the TAKER fee (0.25%), and the other will be charged the MAKER fee (0.10%).

I have tried using this formula, but when selling at the break even price, the result does not sum to zero.

Marking up the MAKER & TAKER fees: Break Even Price = Buy Price * 1.0035.

There is two issues with your calculation:

• You are assuming that you are both a Maker and Taker (either maker when buying and Taker when selling, or taker on the buy and maker on the sell) which could be true, but might not always be the case
• You are calculating both fees based on the Buy Price (which is not accurate because the corresponding maker/taker fee is a percentage of the selling price too).

Your calculation only makes sense if you are being charged both maker- and taker-fees AND your buyPrice == sellPrice. Which will never = 0 because if you are buying and selling at the same price then you lose out on the fees.

If both orders were maker orders your calculation would be: Break Even would be when: (sellPrice * (1 + maker)) - (buyPrice * (1 + maker)) = 0

If the buy was a maker order and the sell a taker order: Break Even would be when: (sellPrice * (1 + taker)) - (buyPrice * (1 + maker)) = 0

You would need to extend these scenarios for all 4 possible permutations of the maker/taker fees.

``````Sell Rate = (Fee + 1) / ((1 / Buy Rate) - (1 / Buy Rate) * Fee)
``````

Key:

• Sell rate = Minimum sell rate required to break even