You can take the CPA exam as many times as you need to. You only have to wait 24 hours to retake the CPA exam if you are not satisfied with your score. It's not uncommon for candidates to take it two or more times since it is challenging and materials are frequently updated.