Divide the points you earned by the points possible, then multiply by 100:
If you know how many you got wrong instead, subtract first: 3 wrong on a 25-question test is 22 right, and 22 ÷ 25 × 100 = 88%. When questions are worth different points, always use points, not the number of questions.