An arbitrary set of semester grades:
English, 3 credits, A
Physics (including lab), 5 credits, B+
History, 3 credits, A-
Organic Chem, 5 credits, B
Economics, 3 credits, C+
For my undergrad, A=4, B=3, C=2, D=1. A- is 3.67, B- is 2.67, and so on. B+ is 3.33, C+ is 2.33, and so on. I'm pretty sure AMCAS does the same, as my GPAs that I calculated matched what they calculated when I entered in my grades.
Basically the same mathematical formula as PhT used
English: 3 x 4 = 12
Physics: 5 x 3.33 = 16.67
History: 3 x 3.67 = 11
Organic Chem: 5 x 3 = 15
Economics: 3 x 2.33 = 7
TOTAL = 61.67
The sum of the credits is (3 + 5 + 3 + 5 + 3) = 19
Divide the total above by the sum of credits:
61.67 / 19 = 3.2456
So, when rounding, the GPA for the semester is a 3.25
But luckily, on the AMCAS application, they figure GPA out for you! 😀