According to the Education Data Initiative, the average cost of attendance for a student living on campus at an in-state public four-year institution is $27,146 per year or $108,584 over four years.