This is a brief introduction to margin and leverage. After the relevant terms are defined and common misconceptions are clarified I present simple formulas for calculating the trading capital size that is required for minimizing the probability of ruin when trading highly volatile markets such as ETFs, futures or forex.