You may withdraw funds from your 529 account for any qualified education expenses. If you withdraw funds for any additional costs, you will need to pay taxes on your earnings of the amount withdrawn and will incur a 10% penalty on those earnings. You can learn more about 529 withdrawal penalties here.