Start with risk amount
Many traders use a fixed percent of account balance, such as 1%. Others prefer a fixed amount, such as $25 or $100. Both approaches work as long as the lot size is calculated from that risk.
Then use the stop loss
A wider stop means a smaller lot size. A tighter stop means a larger lot size. The calculation keeps the money at risk the same.
That is why the Pips calculator asks for entry and stop before showing the final position size.
Use R:R to see the target
After the risk is set, target R:R shows the take-profit price and potential profit amount. A 2.0 R:R setup risks 1 part to make 2 parts, so $50 risk would show $100 potential profit.