You can invest in mutual funds and shit, similar to an IRA. Pre-tax money goes in and, as long as it is for qualified medical expenses, it is not taxed when it comes out (nor are any gains). If you are over 65, then you can take money out for any reason without penalty - you just pay your income...