This is a short introduction to the use of margin and leverage. After defining the relevant terms and clarifying common misconceptions I present a simple formula for calculating the amount of capital that is required for minimizing the probability of ruin when trading highly volatile markets such as ETFs, futures or forex.