Which GPA do UC's look at for transfer?

Do UC’s look at major gpa or overall GPA for transfers or both? If both, which one do they look into more? Do they also look at your GPA that includes nontransferable courses? Such as math prerequisites like algebra.

The UCs look at your GPA in all UC transferable courses. Depending on your major and the particular UC, they may pay more attention to your GPA in the classes related to your major. But your overall UC transferable GPA definitely matters.