School- and state-dependent. Also, certain circumstances seem to allow a change in residency status, like if you have a spouse and they are working, or kids that enroll in local schools.
Some schools (University of Colorado) have rules that say if you are incoming as OOS and apply for and get state residency, then you still pay an amount that is almost on par with the original OOS tuition.