Health savings accounts (HSAs) are investment accounts that allow you to set aside pre-tax dollars for “qualified medical expenses” to pay for outlays not covered by your health insurance plan. By setting aside money pre-tax, your contributions don’t count toward your adjusted gross income at the end of the year. But in order to take advantage of HSAs, you’ll need to understand how they work and the rules that apply.