There’s nothing wrong with investing while you still have outstanding debt, be it student loans, credit cards or a mortgage. However, you need to examine the cost of the debt in comparison to the potential of the investment. Example: I have a credit card debt of $5,000 with an interest rate of 17% versus investing with a potential return of 8%. You may want to consider paying off the debt first. Another scenario would be having a student loan at 6% versus investing in my company’s 401k, which matches 100% on the first 5% of my salary. Here you have free money (5%) on the table, plus the potential to earn more than the 6% cost of the student loan. I would recommend, in this case, you invest.