Traditionally As are 4.0, Bs are 3.0, Cs are 2.0.. etc sum these up and divide by the number of classes. Some schools may give more points to certain classes.
GPA is basically total score divided by number of classes, where summed score is 4 for A, 3 for B, etc. AP, IB, and Honors classes are usually worth 5.