This requirement may vary school-by-school, but the University of California defines residency as living in the state continuously for 366 days before the start of classes. You must also establish intent to stay in the state. For a thorough guide to the process and requirements, check out our article on how to get in-state tuition as an out-of-state student.