You can withdraw leftover funds from a 529 plan for any reason. However, the earnings portion of a non-qualified withdrawal will be subject to taxes and a 10% penalty. To avoid the tax and penalty, you can change the beneficiary and utilize the remaining funds for his or her education. Alternatively, you could leave the money in the 529 plan, and pass it on to your heirs for future utilization.