Leverage does not directly affect your Profit and Loss (PNL). Instead, it comes into play when determining the amount of Margin allocated to your position; higher Leverage requires less Margin, allowing you to open larger positions with a smaller backing. So, while Leverage itself does not affect your PNL, it can impact your Position Size, which in turn can influence PNL.
What actually affects my PNL?
Aside from Position Size, PNL is affected by the difference between your Average Entry Price and Exit Price, Trading Fees, and the Contract's Multiplier.
How is PNL Calculated?
The calculation for it is the following:
Unrealised PNL = Number of Contracts * Multiplier * (1/Average Entry Price - 1/Exit Price)
Realised PNL = Unrealised PNL - taker fee + maker rebate -/+ funding payment
To understand further how Realised PNL is calculated, you can refer to the links below: