Withdrawals from your HSA are not subject to federal (or in most cases, state) taxes if you use them for qualified medical expenses. 10 However, HSAs can be used as investment accounts, allowing you to purchase stocks and other securities to potentially boost your returns.