A - History (2 years)
B - English (4 years)
C - Mathematics (3 years required/4 years recommended)
D - Laboratory Science (2 years required/3 years recommended)
E - Language other than English (2 years required/3 years recommended)
F - Visual and Performing Arts (1 year required)
G - College Preparatory Elective (1 year required)
Keep in mind that taking approved high school (A-G) courses isn't the only way to satisfy these requirements. You also may meet them by completing college courses or earning certain scores on SAT, Advanced Placement or International Baccalaureate exams.
Rules for calculating GPA
Only academic (a.k.a. "A-G") courses count toward your GPA. This includes things like history and theater, but not things like gym. If you're a California student, you can look up the list of A-G courses for your school using https://hs-articulation.ucop.edu/agcourselist/institution/2728.
Pluses and minuses do not matter. A grade of A+ or A- count as an A.
Only count courses taken after the 9th grade. If you took a summer class before 10th grade, you should count that.
*Students can see their calculated A-G GPA on their High School Transcript.