Student loans are not automatically forgiven after 20 to 25 years but the student loan can be forgiven when 25 years is up if you're using a program called the Income based repayment program and are making an effort to make payments on the student loans during those 25 years.