CCalclabhub

Trading & Investing

Total fees

The commission is charged on both sides of the trade.

The Formula

Fees = (Entry x Qty + Exit x Qty) x Fee rate

The commission is charged on both sides of the trade.

SymbolMeaning
EEntry price
XExit price
QQuantity
rFee rate

What Each Symbol Means

Ecurrency

Entry price

Price the trade was opened at.

Xcurrency

Exit price

Price the trade was closed at.

Qcount

Quantity

Units traded.

rrate

Fee rate

Commission per side.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate trading profit page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate Trading Profit, filed under Finance. Every number the guide produces comes from substituting into this one line.