In more detail
The required margin is the position size times the margin percentage; leverage is 100 / margin %. A $50,000 position at 25% margin needs $12,500 of equity and is 4 times leveraged. Gains and losses are both magnified, and a margin call forces you to add money or sell. Not to be confused with Profit margin.