Math says invest, but it's not an all-or-nothing question. You could split the difference, and put half of any extra money toward paying down the loan, and half toward investing. Obviously this would be more for peace of mind of having the loan off your back, but since I tend toward being a little more debt-averse, that's what I would do. YMMV.