How do You Calculate a Percentage?

Percentage is calculated by taking the times something happens divided by the total tries and multiplying by 100. So if you flip a coin 50 times and get 20 heads you would calculate as 20/50*100 or a heads percentage of 40 percent.