What is the tax treatment of earnings on amounts in an HSA?

Earnings on amounts in an HSA are not taxable when credited, nor when the funds are withdrawn, if the withdrawal is for qualified medical expenses. If the withdrawal is for non qualified expenses, the accountholder will owe income taxes and a 20 percent penalty.