The easiest way to do it is by using a simple equation. You know that the number N you want to find the percentage of is the "total", which means it is 100%. Let's call X the result of the percentage you want to findBy writing N : 100 = X : % you can easily find what X is by rearranging the equationX = N*% : 100