You Can Leave the HSA Money Invested and Pay Yourself Back Later

An HSA is a health savings account for medical bills, and the money in it can be invested so the balance can grow. You can pay a bill from the HSA on the day it arrives, or you can pay with other money, such as a checking account, and leave the HSA money invested. Taking the money out that day means it leaves the account and can no longer grow, so paying with other money leaves it invested, where the balance can keep growing until you pay yourself back. You keep the receipt from the bill, and years later that receipt lets you take out the same amount you paid. You do not owe federal income tax on that payback as long as the HSA is allowed to cover the bill, the bill came after you opened the HSA, you still have the receipt, nobody else has already paid you for it, and you did not already claim the bill as a tax write-off.

Published on

Share:

A medical bill often feels like something the HSA should pay the same day. You can use it that way. You can also pay the bill with other money, keep the receipt, and leave the HSA money invested, then take that same amount out years later and pay yourself back. There is no deadline on that wait, because the money left invested can grow. Growth inside the HSA is not included in your federal income while it stays there.

A note on these rules: This is general information about federal rules, not a reading of one job's plan. A flexible spending account follows a deadline that job sets. Medicare, including when contributions stop and which premiums the HSA can pay, depends on the coverage you have and on when it starts. The dentist bills and the extra 20% tax in this post are examples, and another bill or another health situation can come out differently. California and New Jersey do not follow the federal treatment of an HSA, so the state tax there can come out differently. Your HSA company can also set its own steps for investing and for taking money out.

Pay from the HSA today, or leave the money invested

You can pay the doctor, or the dentist, from the HSA on the day the bill arrives. Many accounts give you a card for that payment. The bill is then paid, and that amount has left the HSA, so it cannot stay invested and that piece of the balance cannot grow.

The other path is to pay with money that is not in the HSA. A checking account is one example, and a savings account is another. You could also put the bill on a card and pay that card from money outside the HSA. What matters is that the HSA itself stays untouched, so the money left there can be invested and the balance can grow. Your HSA company decides whether the money can be invested, and it may ask you to keep some of the balance in cash first. Cash may earn a little interest. Invested money is the part that can grow, and that growth is a possibility, not a promised result.

The screenshot below is from one HSA company. Some companies require a set amount of cash to stay uninvested before the rest can be invested. That amount is a rule the company sets. The tax rules do not set it, and some companies do not require that cash amount.

One HSA company: cash and invested money

Swipe horizontally or scroll to the right to view the full capture.

A screenshot from one HSA company. The name, the total account value, the deposit balance, the invested balance, the amount contributed, and the year-to-date interest are covered. A bar shows a short dark-blue piece labeled HSA deposit account balance and a long blue piece labeled HSA investment account balance. The blue invested piece is longer. A button says View investment dashboard. For tax year 2026, the contribution limit shown is $4,400. A link says View IRS contribution limits for individual and family coverage. Another link says Manage HSA interest rate. A box at the bottom says have money sitting in another HSA, and offers to transfer those funds.
This is a screenshot from one company, and the dollar amounts are covered. The short dark-blue piece of the bar is the cash deposit. The long blue piece is the invested money, and in this screenshot that invested piece is the larger share. The $4,400 figure is the public self-only contribution limit for 2026, not a balance from the account. The box at the bottom is that company's prompt to transfer money from another HSA.

If the HSA card is what pays the bill, that swipe is already the withdrawal. The receipt from that visit does not let you take the same amount out again later, because the money left the account on the day the card was used.

The same bill, paid from the HSA today or paid with other money.
Two ways to pay a medical bill. On the left, an HSA card lies on the bill and the flower pot is empty, because that money has left the account. On the right, other money pays the bill and the HSA plant is still growing in its pot. A checking account is one example of the other money. Either card can pay the bill. Paying with other money leaves the HSA invested. Keep the receipt and pay yourself back later.The HSA card spends it. Other money does not.A checking account is one example of the other money.Pay with the HSA cardLeave the HSA investedMedical billHSA cardThe pot is empty. The money left.Medical billOther moneyThe HSA plant is still growing.Either card can pay the bill.Paying with other money leaves the HSA invested.Keep the receipt and pay yourself back later.

The receipt lets you take out the same amount you paid

You do not have to take HSA money out every year. When you do take it out for a bill you already paid, the receipt is what ties the withdrawal to that bill. You do not send the receipt in with your tax return. You keep it with your tax papers, because those papers are what show the withdrawal was for that bill, that nobody else had already paid you for it, and that you had not already claimed it as a tax write-off. A useful receipt shows the date, who was paid, what was done, and the amount you paid.

A workplace flexible spending account is a different account. The money there is usually tied to a deadline the job sets. An HSA is not built that way. Money you do not spend stays in the HSA from one year to the next, which is why a receipt can still be used long after the visit. The HSA is also your account. Leaving the job does not close it, and it does not erase a receipt for a bill that came after the account was opened.

Say the bill was $400 and you paid it with other money. Years later, the receipt lets you take $400 out of the HSA and pay yourself back. If the invested balance has grown past $400, you still take $400 for that bill. The growth can stay in the account. If you take out more than $400, the extra is no longer a payback for that bill, and the extra is the part that can be taxed. The $400 is an example, so the match is easy to see. Your bill will be a different number.

A $400 bill paid with other money, then the same $400 taken out later.
A receipt for $400 says it was paid with other money. Years can pass, and there is no deadline. An envelope brings that same $400 back to you. The growth can stay in the account.The receipt matches what you take outYears can pass. You take out the amount you paid.Receipt$400Date, provider,and what you paidOther moneyLaterNo deadlineon the waitTo you$400Same amountAs the receiptGrowth staysThe receipt is $400, so the payback is $400.The growth past that bill can stay in the account.

The bill has to be one the HSA is allowed to pay

A doctor visit can be that kind of bill. A dentist bill can be too, when it is treatment, such as a cleaning, a filling, or braces, because those dental bills count as medical bills for an HSA. Teeth whitening does not, because it is not treatment for dental disease. A normal health insurance premium usually does not count either. The bill can be for you, your spouse, or a dependent you claim on your tax return.

The payback stays free of federal income tax when the records hold

You do not owe federal income tax on that payback when the HSA is allowed to cover the bill, the bill came after you opened the HSA, and you still have the receipt. Nobody else can have already paid you for that same bill, which includes insurance and any other account that already paid it. You also cannot have already claimed that bill as a tax write-off. If insurance paid part of the bill, you pay yourself back only for the share that was left for you. The share insurance already paid does not come out of the HSA. You still report the withdrawal on Form 8889, the HSA form that goes with your federal return, even when you do not owe federal income tax on it.

You can still pay yourself back in a year when you can no longer add money to the HSA. The bill only has to come after the account was opened. State rules can set the exact day that opening happens. A bill from before that day does not qualify. Enrolling in Medicare generally stops new contributions. It does not stop a payback for a bill that already qualifies. After you turn 65, a Medicare premium can be a bill the HSA is allowed to pay. A Medigap premium cannot.

Bills an HSA can pay, and bills it cannot
The billCan the HSA pay it
A doctor visitYes. A doctor visit counts as a medical bill.
A cleaning, a filling, or bracesYes. Dental treatment counts as a medical bill.
Teeth whiteningNo. Whitening is not treatment for dental disease.
A normal health insurance premiumUsually no. A normal premium is not a bill the HSA is allowed to pay.
A Medicare premium after you turn 65Yes. After 65, that premium can qualify.
A Medigap premiumNo. A Medigap premium cannot, even after you turn 65.

The table covers the bills named in this post. A yes is about the kind of bill. The payback stays free of federal income tax when the receipt rules above are met.

Money from a paycheck is a different step

Putting money into an HSA from a paycheck changes what actually hits your bank account. That is the contribution. Paying yourself back years later is the withdrawal. The receipt rules in this post are about the withdrawal, and they do not change how the paycheck deduction was figured in the year the money went in.

A withdrawal that is not for a medical bill can be taxed

You can take money out of an HSA at any time. If that money is not used for a medical bill the HSA is allowed to pay, that part is included in your federal income. There can also be an extra 20% tax on that same part. People sometimes call the extra 20% an early withdrawal penalty. There is no separate fee by that name. The charge is the extra 20% tax.

The extra 20% tax does not apply after you turn 65. It also does not apply if the tax rules treat you as disabled, which is a strict test and not every illness. After 65, or in that disability case, a withdrawal that is not for a covered medical bill can still be taxed as income. The age, or the disability, removes the extra 20%. It does not remove the income tax on a non-medical withdrawal.

A withdrawal can also be only partly for a bill. The part that matches a bill you already paid can stay free of federal income tax when the receipt rules are met. The extra dollars, beyond that bill, are the part that can be taxed, and the extra 20% tax can apply to those dollars when you are under 65 and the disability test does not fit.

A medical payback, next to a non-medical withdrawal under age 65.
On the left, a kept receipt and an envelope pay you back for a medical bill. There is no extra 20 percent tax, and no federal income tax when the receipt rules are met. On the right, a suitcase stands for a withdrawal that is not for a medical bill. Under 65, that money can be taxed as income and can also get the extra 20 percent tax. After 65, the extra tax stops. It also stops if the tax rules treat you as disabled. A non-medical withdrawal can still be taxed as income.The extra 20% tax is for non-medical moneyIt applies when you are under 65.For a medical billNot a medical billReceiptkeptTo youNo extra 20% taxNo federal income taxwhen the receipt rules are metExtra20%Income tax + 20% taxUnder 65, and not for a billthe HSA is allowed to payAfter 65, the extra 20% tax stops.It also stops if the tax rules treat you as disabled.A non-medical withdrawal can still be taxed as income.

The picture puts the two withdrawals side by side. On the left, you already paid a medical bill with other money, you kept the receipt, and later you take out that same amount. That payback can stay free of federal income tax when the receipt rules are met. On the right, the money was not for a bill the HSA is allowed to pay. Under 65, that part can be taxed as income, and it can also get the extra 20% tax.

So the reason to pay with other money is that the HSA can stay invested until you pay yourself back. The money you take out then is the amount you paid for the bill, not whatever the balance has grown to. If the balance has grown past that bill, the growth can stay in the account.

Before you pay yourself back

  • You can pay a medical bill from the HSA the day it arrives, or pay with other money, such as a checking account, and leave the HSA money invested. Some companies require a set amount of cash to stay uninvested before the rest can be invested. That amount is a rule the company sets.
  • The reason to wait is that money left invested can keep growing. Money you take out today has left the account. Growth inside the HSA is not included in your federal income while it stays there. California and New Jersey do not follow that federal treatment, so the state tax there can come out differently.
  • Keep the receipt with your tax papers, and do not send it in with your tax return. A useful receipt shows the date, who was paid, what was done, and the amount you paid. Years later it lets you take out the same amount you paid, and the growth can stay in the account. There is no deadline on that wait.
  • You do not owe federal income tax on that payback when the HSA is allowed to cover the bill, the bill came after you opened the HSA, you still have the receipt, nobody else already paid you, and you did not already claim the bill as a tax write-off. If insurance paid part of the bill, the payback is the part you paid. You still report the withdrawal on Form 8889 even when you do not owe federal income tax on it.
  • If the HSA card already paid the bill, do not take that amount out again. An HSA is not a flexible spending account. Unused money stays, and the account stays yours if you leave the job.
  • A dentist bill for treatment can count. Teeth whitening does not. A normal health insurance premium usually does not. After 65, a Medicare premium can. A Medigap premium cannot. The bill can be for you, your spouse, or a dependent you claim.
  • You can still pay yourself back in a year when you can no longer add money to the HSA. Enrolling in Medicare generally stops new contributions. It does not stop a payback for a bill that already qualifies.
  • The payback is the amount you paid for a bill the HSA is allowed to pay, and that amount can stay free of federal income tax when the receipt rules above are met. Money taken out for something else can be taxed as income, and under 65 an extra 20% tax can apply to that part. After 65, or if the tax rules treat you as disabled, the extra 20% stops. Income tax on that part can remain. The disability test is strict, and it is not every illness.

Shaleen Shah is the Founder and Technical Product Manager of Definitive Calc™. He is also a Sr. Analyst of SEO Operations at JD Power, specializing in systems and data behind modern search and information discovery.

Driven by technical rigor, Shaleen breaks down the practical math of whatever life brings, from homeownership nuances to long-term wealth building. He has a decade of investing experience, and the calculators run on a stateless, database-free architecture anyone can use without an account.

Continue Reading

Explore more insights on health and wellness

This content is intended for informational purposes only and does not constitute medical advice, diagnosis, or treatment. Always seek the advice of a physician or other qualified health provider with any questions you may have regarding a medical condition or dietary change.