The way it generally works, regardless of your residency status, is you have a "cost of attendance" that is one figure, an "expected family contribution", and then an aid package that makes up the difference. The aid package may be Pell grants, university grants, state grants, as well as loans. It would seem likely that if you didn't have in-state residency, your total cost of attendance would be significantly higher and loans might be a bigger part of your aid package.
For me, I was considered an independent student (and I was single with very little income) so my total cost of attendance was fairly high, and my expected family contribution quite low. My tuition, books, and a bit extra was fully funded by grants, however some of my living expenses, like my health insurance premiums and transportation expenses, were expected to come out of loans.