The time it takes to pay off a student loan can depend on how much student loan debt you owe.
The more student loan debt you owe the longer it will take to pay off.
For me I've been paying on my student loan for 10 years now and I still have another 10 years before I get it paid off hopefully.
I would have had the student loan debt paid off but I lost my job for awhile and couldn't make any payments on the student loan debt.
If you can pay more than the minimum monthly payment on the student loan debt to get it paid off you will pay the student loan debt off sooner.
But for most people it takes at least 21 to 22 years to pay off the student loan debt.